mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-11-19 00:01:13 -05:00
Merge upstream and update generated code for v2103 and
This commit is contained in:
commit
88f945a8f1
@ -1 +1 @@
|
|||||||
b7d9dec4da43fdbe727b3b4d8007a7099aa61beb
|
8b9ebc471599fa8287b507df4a0e686cae2455cd
|
||||||
@ -1 +1 @@
|
|||||||
v2101
|
v2103
|
||||||
@ -4,51 +4,14 @@
|
|||||||
module Stripe
|
module Stripe
|
||||||
module DelegatedCheckout
|
module DelegatedCheckout
|
||||||
class RequestedSessionConfirmParams < ::Stripe::RequestParams
|
class RequestedSessionConfirmParams < ::Stripe::RequestParams
|
||||||
class RiskDetails < ::Stripe::RequestParams
|
|
||||||
class ClientDeviceMetadataDetails < ::Stripe::RequestParams
|
|
||||||
# The radar session.
|
|
||||||
attr_accessor :radar_session
|
|
||||||
# The referrer of the client device.
|
|
||||||
attr_accessor :referrer
|
|
||||||
# The remote IP address of the client device.
|
|
||||||
attr_accessor :remote_ip
|
|
||||||
# The time on page in milliseconds.
|
|
||||||
attr_accessor :time_on_page_ms
|
|
||||||
# The user agent of the client device.
|
|
||||||
attr_accessor :user_agent
|
|
||||||
|
|
||||||
def initialize(
|
|
||||||
radar_session: nil,
|
|
||||||
referrer: nil,
|
|
||||||
remote_ip: nil,
|
|
||||||
time_on_page_ms: nil,
|
|
||||||
user_agent: nil
|
|
||||||
)
|
|
||||||
@radar_session = radar_session
|
|
||||||
@referrer = referrer
|
|
||||||
@remote_ip = remote_ip
|
|
||||||
@time_on_page_ms = time_on_page_ms
|
|
||||||
@user_agent = user_agent
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# The client device metadata details for this requested session.
|
|
||||||
attr_accessor :client_device_metadata_details
|
|
||||||
|
|
||||||
def initialize(client_device_metadata_details: nil)
|
|
||||||
@client_device_metadata_details = client_device_metadata_details
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Specifies which fields in the response should be expanded.
|
# Specifies which fields in the response should be expanded.
|
||||||
attr_accessor :expand
|
attr_accessor :expand
|
||||||
# The PaymentMethod to use with the requested session.
|
# The PaymentMethod to use with the requested session.
|
||||||
attr_accessor :payment_method
|
attr_accessor :payment_method
|
||||||
# Risk details/signals associated with the requested session
|
|
||||||
attr_accessor :risk_details
|
|
||||||
|
|
||||||
def initialize(expand: nil, payment_method: nil, risk_details: nil)
|
def initialize(expand: nil, payment_method: nil)
|
||||||
@expand = expand
|
@expand = expand
|
||||||
@payment_method = payment_method
|
@payment_method = payment_method
|
||||||
@risk_details = risk_details
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -144,6 +144,41 @@ module Stripe
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class RiskDetails < ::Stripe::RequestParams
|
||||||
|
class ClientDeviceMetadataDetails < ::Stripe::RequestParams
|
||||||
|
# The radar session.
|
||||||
|
attr_accessor :radar_session
|
||||||
|
# The referrer of the client device.
|
||||||
|
attr_accessor :referrer
|
||||||
|
# The remote IP address of the client device.
|
||||||
|
attr_accessor :remote_ip
|
||||||
|
# The time on page in seconds.
|
||||||
|
attr_accessor :time_on_page
|
||||||
|
# The user agent of the client device.
|
||||||
|
attr_accessor :user_agent
|
||||||
|
|
||||||
|
def initialize(
|
||||||
|
radar_session: nil,
|
||||||
|
referrer: nil,
|
||||||
|
remote_ip: nil,
|
||||||
|
time_on_page: nil,
|
||||||
|
user_agent: nil
|
||||||
|
)
|
||||||
|
@radar_session = radar_session
|
||||||
|
@referrer = referrer
|
||||||
|
@remote_ip = remote_ip
|
||||||
|
@time_on_page = time_on_page
|
||||||
|
@user_agent = user_agent
|
||||||
|
end
|
||||||
|
end
|
||||||
|
# The client device metadata details for this requested session.
|
||||||
|
attr_accessor :client_device_metadata_details
|
||||||
|
|
||||||
|
def initialize(client_device_metadata_details: nil)
|
||||||
|
@client_device_metadata_details = client_device_metadata_details
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class SellerDetails < ::Stripe::RequestParams
|
class SellerDetails < ::Stripe::RequestParams
|
||||||
# The network profile for the seller.
|
# The network profile for the seller.
|
||||||
attr_accessor :network_profile
|
attr_accessor :network_profile
|
||||||
@ -168,6 +203,8 @@ module Stripe
|
|||||||
attr_accessor :payment_method
|
attr_accessor :payment_method
|
||||||
# The payment method data for this requested session.
|
# The payment method data for this requested session.
|
||||||
attr_accessor :payment_method_data
|
attr_accessor :payment_method_data
|
||||||
|
# The risk details for this requested session.
|
||||||
|
attr_accessor :risk_details
|
||||||
# The details of the seller.
|
# The details of the seller.
|
||||||
attr_accessor :seller_details
|
attr_accessor :seller_details
|
||||||
# The setup future usage for this requested session.
|
# The setup future usage for this requested session.
|
||||||
@ -184,6 +221,7 @@ module Stripe
|
|||||||
metadata: nil,
|
metadata: nil,
|
||||||
payment_method: nil,
|
payment_method: nil,
|
||||||
payment_method_data: nil,
|
payment_method_data: nil,
|
||||||
|
risk_details: nil,
|
||||||
seller_details: nil,
|
seller_details: nil,
|
||||||
setup_future_usage: nil,
|
setup_future_usage: nil,
|
||||||
shared_metadata: nil
|
shared_metadata: nil
|
||||||
@ -196,6 +234,7 @@ module Stripe
|
|||||||
@metadata = metadata
|
@metadata = metadata
|
||||||
@payment_method = payment_method
|
@payment_method = payment_method
|
||||||
@payment_method_data = payment_method_data
|
@payment_method_data = payment_method_data
|
||||||
|
@risk_details = risk_details
|
||||||
@seller_details = seller_details
|
@seller_details = seller_details
|
||||||
@setup_future_usage = setup_future_usage
|
@setup_future_usage = setup_future_usage
|
||||||
@shared_metadata = shared_metadata
|
@shared_metadata = shared_metadata
|
||||||
|
|||||||
@ -23,8 +23,6 @@ module Stripe
|
|||||||
attr_accessor :source_type
|
attr_accessor :source_type
|
||||||
# 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.
|
# 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_accessor :transfer_group
|
attr_accessor :transfer_group
|
||||||
# Attribute for param field application_fee_amount
|
|
||||||
attr_accessor :application_fee_amount
|
|
||||||
|
|
||||||
def initialize(
|
def initialize(
|
||||||
amount: nil,
|
amount: nil,
|
||||||
@ -36,8 +34,7 @@ module Stripe
|
|||||||
metadata: nil,
|
metadata: nil,
|
||||||
source_transaction: nil,
|
source_transaction: nil,
|
||||||
source_type: nil,
|
source_type: nil,
|
||||||
transfer_group: nil,
|
transfer_group: nil
|
||||||
application_fee_amount: nil
|
|
||||||
)
|
)
|
||||||
@amount = amount
|
@amount = amount
|
||||||
@currency = currency
|
@currency = currency
|
||||||
@ -49,7 +46,6 @@ module Stripe
|
|||||||
@source_transaction = source_transaction
|
@source_transaction = source_transaction
|
||||||
@source_type = source_type
|
@source_type = source_type
|
||||||
@transfer_group = transfer_group
|
@transfer_group = transfer_group
|
||||||
@application_fee_amount = application_fee_amount
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -20,8 +20,6 @@ module Stripe
|
|||||||
attr_reader :payout
|
attr_reader :payout
|
||||||
# Type of object that created the application fee.
|
# Type of object that created the application fee.
|
||||||
attr_reader :type
|
attr_reader :type
|
||||||
# Transfer ID that created this application fee.
|
|
||||||
attr_reader :transfer
|
|
||||||
|
|
||||||
def self.inner_class_types
|
def self.inner_class_types
|
||||||
@inner_class_types = {}
|
@inner_class_types = {}
|
||||||
|
|||||||
@ -305,86 +305,6 @@ module Stripe
|
|||||||
@field_remappings = {}
|
@field_remappings = {}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class TransitBalancesTotal < ::Stripe::StripeObject
|
|
||||||
class Available < ::Stripe::StripeObject
|
|
||||||
class SourceTypes < ::Stripe::StripeObject
|
|
||||||
# Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
||||||
attr_reader :bank_account
|
|
||||||
# Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
||||||
attr_reader :card
|
|
||||||
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
||||||
attr_reader :fpx
|
|
||||||
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {}
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Balance amount.
|
|
||||||
attr_reader :amount
|
|
||||||
# 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
|
|
||||||
# Attribute for field source_types
|
|
||||||
attr_reader :source_types
|
|
||||||
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = { source_types: SourceTypes }
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Pending < ::Stripe::StripeObject
|
|
||||||
class SourceTypes < ::Stripe::StripeObject
|
|
||||||
# Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
||||||
attr_reader :bank_account
|
|
||||||
# Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
||||||
attr_reader :card
|
|
||||||
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
||||||
attr_reader :fpx
|
|
||||||
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {}
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Balance amount.
|
|
||||||
attr_reader :amount
|
|
||||||
# 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
|
|
||||||
# Attribute for field source_types
|
|
||||||
attr_reader :source_types
|
|
||||||
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = { source_types: SourceTypes }
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Funds that are available for use.
|
|
||||||
attr_reader :available
|
|
||||||
# Funds that are pending
|
|
||||||
attr_reader :pending
|
|
||||||
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = { available: Available, pending: Pending }
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
|
# Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
|
||||||
attr_reader :available
|
attr_reader :available
|
||||||
# Funds held due to negative balances on connected accounts where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property.
|
# Funds held due to negative balances on connected accounts where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property.
|
||||||
@ -401,8 +321,6 @@ module Stripe
|
|||||||
attr_reader :pending
|
attr_reader :pending
|
||||||
# Attribute for field refund_and_dispute_prefunding
|
# Attribute for field refund_and_dispute_prefunding
|
||||||
attr_reader :refund_and_dispute_prefunding
|
attr_reader :refund_and_dispute_prefunding
|
||||||
# Attribute for field transit_balances_total
|
|
||||||
attr_reader :transit_balances_total
|
|
||||||
|
|
||||||
def self.inner_class_types
|
def self.inner_class_types
|
||||||
@inner_class_types = {
|
@inner_class_types = {
|
||||||
@ -412,7 +330,6 @@ module Stripe
|
|||||||
issuing: Issuing,
|
issuing: Issuing,
|
||||||
pending: Pending,
|
pending: Pending,
|
||||||
refund_and_dispute_prefunding: RefundAndDisputePrefunding,
|
refund_and_dispute_prefunding: RefundAndDisputePrefunding,
|
||||||
transit_balances_total: TransitBalancesTotal,
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -3434,19 +3434,6 @@ module Stripe
|
|||||||
@field_remappings = {}
|
@field_remappings = {}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class AllocatedFunds < ::Stripe::StripeObject
|
|
||||||
# Allocated Funds configuration for this PaymentIntent.
|
|
||||||
attr_reader :enabled
|
|
||||||
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {}
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
||||||
attr_reader :amount
|
attr_reader :amount
|
||||||
# Amount that can be captured from this PaymentIntent.
|
# Amount that can be captured from this PaymentIntent.
|
||||||
@ -3559,8 +3546,6 @@ module Stripe
|
|||||||
attr_reader :transfer_data
|
attr_reader :transfer_data
|
||||||
# A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).
|
# A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).
|
||||||
attr_reader :transfer_group
|
attr_reader :transfer_group
|
||||||
# Allocated Funds configuration for this PaymentIntent.
|
|
||||||
attr_reader :allocated_funds
|
|
||||||
|
|
||||||
# Manually reconcile the remaining amount for a customer_balance PaymentIntent.
|
# Manually reconcile the remaining amount for a customer_balance PaymentIntent.
|
||||||
def apply_customer_balance(params = {}, opts = {})
|
def apply_customer_balance(params = {}, opts = {})
|
||||||
@ -3934,7 +3919,6 @@ module Stripe
|
|||||||
processing: Processing,
|
processing: Processing,
|
||||||
shipping: Shipping,
|
shipping: Shipping,
|
||||||
transfer_data: TransferData,
|
transfer_data: TransferData,
|
||||||
allocated_funds: AllocatedFunds,
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -61,10 +61,6 @@ module Stripe
|
|||||||
attr_reader :source_type
|
attr_reader :source_type
|
||||||
# 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.
|
# 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
|
attr_reader :transfer_group
|
||||||
# Attribute for field application_fee
|
|
||||||
attr_reader :application_fee
|
|
||||||
# Attribute for field application_fee_amount
|
|
||||||
attr_reader :application_fee_amount
|
|
||||||
|
|
||||||
# To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
|
# To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
|
||||||
def self.create(params = {}, opts = {})
|
def self.create(params = {}, opts = {})
|
||||||
|
|||||||
245
rbi/stripe.rbi
245
rbi/stripe.rbi
@ -5742,9 +5742,6 @@ module Stripe
|
|||||||
# Type of object that created the application fee.
|
# Type of object that created the application fee.
|
||||||
sig { returns(String) }
|
sig { returns(String) }
|
||||||
def type; end
|
def type; end
|
||||||
# Transfer ID that created this application fee.
|
|
||||||
sig { returns(T.nilable(String)) }
|
|
||||||
def transfer; end
|
|
||||||
def self.inner_class_types
|
def self.inner_class_types
|
||||||
@inner_class_types = {}
|
@inner_class_types = {}
|
||||||
end
|
end
|
||||||
@ -6227,88 +6224,6 @@ module Stripe
|
|||||||
@field_remappings = {}
|
@field_remappings = {}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
class TransitBalancesTotal < ::Stripe::StripeObject
|
|
||||||
class Available < ::Stripe::StripeObject
|
|
||||||
class SourceTypes < ::Stripe::StripeObject
|
|
||||||
# Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def bank_account; end
|
|
||||||
# Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def card; end
|
|
||||||
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def fpx; end
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {}
|
|
||||||
end
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Balance amount.
|
|
||||||
sig { returns(Integer) }
|
|
||||||
def amount; 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
|
|
||||||
# Attribute for field source_types
|
|
||||||
sig { returns(T.nilable(SourceTypes)) }
|
|
||||||
def source_types; end
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {source_types: SourceTypes}
|
|
||||||
end
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
class Pending < ::Stripe::StripeObject
|
|
||||||
class SourceTypes < ::Stripe::StripeObject
|
|
||||||
# Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def bank_account; end
|
|
||||||
# Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def card; end
|
|
||||||
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def fpx; end
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {}
|
|
||||||
end
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Balance amount.
|
|
||||||
sig { returns(Integer) }
|
|
||||||
def amount; 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
|
|
||||||
# Attribute for field source_types
|
|
||||||
sig { returns(T.nilable(SourceTypes)) }
|
|
||||||
def source_types; end
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {source_types: SourceTypes}
|
|
||||||
end
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Funds that are available for use.
|
|
||||||
sig { returns(T::Array[Available]) }
|
|
||||||
def available; end
|
|
||||||
# Funds that are pending
|
|
||||||
sig { returns(T::Array[Pending]) }
|
|
||||||
def pending; end
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {available: Available, pending: Pending}
|
|
||||||
end
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
|
# Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
|
||||||
sig { returns(T::Array[Available]) }
|
sig { returns(T::Array[Available]) }
|
||||||
def available; end
|
def available; end
|
||||||
@ -6333,9 +6248,6 @@ module Stripe
|
|||||||
# Attribute for field refund_and_dispute_prefunding
|
# Attribute for field refund_and_dispute_prefunding
|
||||||
sig { returns(T.nilable(RefundAndDisputePrefunding)) }
|
sig { returns(T.nilable(RefundAndDisputePrefunding)) }
|
||||||
def refund_and_dispute_prefunding; end
|
def refund_and_dispute_prefunding; end
|
||||||
# Attribute for field transit_balances_total
|
|
||||||
sig { returns(T.nilable(TransitBalancesTotal)) }
|
|
||||||
def transit_balances_total; end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# typed: true
|
# typed: true
|
||||||
@ -32817,17 +32729,6 @@ module Stripe
|
|||||||
@field_remappings = {}
|
@field_remappings = {}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
class AllocatedFunds < ::Stripe::StripeObject
|
|
||||||
# Allocated Funds configuration for this PaymentIntent.
|
|
||||||
sig { returns(T.nilable(T::Boolean)) }
|
|
||||||
def enabled; end
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {}
|
|
||||||
end
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
||||||
sig { returns(Integer) }
|
sig { returns(Integer) }
|
||||||
def amount; end
|
def amount; end
|
||||||
@ -32988,9 +32889,6 @@ module Stripe
|
|||||||
# A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).
|
# A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).
|
||||||
sig { returns(T.nilable(String)) }
|
sig { returns(T.nilable(String)) }
|
||||||
def transfer_group; end
|
def transfer_group; end
|
||||||
# Allocated Funds configuration for this PaymentIntent.
|
|
||||||
sig { returns(T.nilable(AllocatedFunds)) }
|
|
||||||
def allocated_funds; end
|
|
||||||
# Manually reconcile the remaining amount for a customer_balance PaymentIntent.
|
# Manually reconcile the remaining amount for a customer_balance PaymentIntent.
|
||||||
sig {
|
sig {
|
||||||
params(params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent)
|
params(params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent)
|
||||||
@ -56131,12 +56029,6 @@ 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.
|
# 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)) }
|
sig { returns(T.nilable(String)) }
|
||||||
def transfer_group; end
|
def transfer_group; end
|
||||||
# Attribute for field application_fee
|
|
||||||
sig { returns(T.nilable(T.any(String, ::Stripe::ApplicationFee))) }
|
|
||||||
def application_fee; end
|
|
||||||
# Attribute for field application_fee_amount
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def application_fee_amount; end
|
|
||||||
# To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
|
# To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
|
||||||
sig {
|
sig {
|
||||||
params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer)
|
params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer)
|
||||||
@ -99670,6 +99562,58 @@ module Stripe
|
|||||||
}
|
}
|
||||||
def initialize(billing_details: nil, card: nil, type: nil); end
|
def initialize(billing_details: nil, card: nil, type: nil); end
|
||||||
end
|
end
|
||||||
|
class RiskDetails < ::Stripe::RequestParams
|
||||||
|
class ClientDeviceMetadataDetails < ::Stripe::RequestParams
|
||||||
|
# The radar session.
|
||||||
|
sig { returns(T.nilable(String)) }
|
||||||
|
def radar_session; end
|
||||||
|
sig { params(_radar_session: T.nilable(String)).returns(T.nilable(String)) }
|
||||||
|
def radar_session=(_radar_session); end
|
||||||
|
# The referrer of the client device.
|
||||||
|
sig { returns(T.nilable(String)) }
|
||||||
|
def referrer; end
|
||||||
|
sig { params(_referrer: T.nilable(String)).returns(T.nilable(String)) }
|
||||||
|
def referrer=(_referrer); end
|
||||||
|
# The remote IP address of the client device.
|
||||||
|
sig { returns(T.nilable(String)) }
|
||||||
|
def remote_ip; end
|
||||||
|
sig { params(_remote_ip: T.nilable(String)).returns(T.nilable(String)) }
|
||||||
|
def remote_ip=(_remote_ip); end
|
||||||
|
# The time on page in seconds.
|
||||||
|
sig { returns(T.nilable(Integer)) }
|
||||||
|
def time_on_page; end
|
||||||
|
sig { params(_time_on_page: T.nilable(Integer)).returns(T.nilable(Integer)) }
|
||||||
|
def time_on_page=(_time_on_page); end
|
||||||
|
# The user agent of the client device.
|
||||||
|
sig { returns(T.nilable(String)) }
|
||||||
|
def user_agent; end
|
||||||
|
sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) }
|
||||||
|
def user_agent=(_user_agent); end
|
||||||
|
sig {
|
||||||
|
params(radar_session: T.nilable(String), referrer: T.nilable(String), remote_ip: T.nilable(String), time_on_page: T.nilable(Integer), user_agent: T.nilable(String)).void
|
||||||
|
}
|
||||||
|
def initialize(
|
||||||
|
radar_session: nil,
|
||||||
|
referrer: nil,
|
||||||
|
remote_ip: nil,
|
||||||
|
time_on_page: nil,
|
||||||
|
user_agent: nil
|
||||||
|
); end
|
||||||
|
end
|
||||||
|
# The client device metadata details for this requested session.
|
||||||
|
sig {
|
||||||
|
returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails))
|
||||||
|
}
|
||||||
|
def client_device_metadata_details; end
|
||||||
|
sig {
|
||||||
|
params(_client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails))
|
||||||
|
}
|
||||||
|
def client_device_metadata_details=(_client_device_metadata_details); end
|
||||||
|
sig {
|
||||||
|
params(client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails)).void
|
||||||
|
}
|
||||||
|
def initialize(client_device_metadata_details: nil); end
|
||||||
|
end
|
||||||
class SellerDetails < ::Stripe::RequestParams
|
class SellerDetails < ::Stripe::RequestParams
|
||||||
# The network profile for the seller.
|
# The network profile for the seller.
|
||||||
sig { returns(String) }
|
sig { returns(String) }
|
||||||
@ -99729,6 +99673,13 @@ module Stripe
|
|||||||
params(_payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData))
|
params(_payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData))
|
||||||
}
|
}
|
||||||
def payment_method_data=(_payment_method_data); end
|
def payment_method_data=(_payment_method_data); end
|
||||||
|
# The risk details for this requested session.
|
||||||
|
sig { returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails)) }
|
||||||
|
def risk_details; end
|
||||||
|
sig {
|
||||||
|
params(_risk_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails))
|
||||||
|
}
|
||||||
|
def risk_details=(_risk_details); end
|
||||||
# The details of the seller.
|
# The details of the seller.
|
||||||
sig { returns(DelegatedCheckout::RequestedSessionCreateParams::SellerDetails) }
|
sig { returns(DelegatedCheckout::RequestedSessionCreateParams::SellerDetails) }
|
||||||
def seller_details; end
|
def seller_details; end
|
||||||
@ -99749,7 +99700,7 @@ module Stripe
|
|||||||
}
|
}
|
||||||
def shared_metadata=(_shared_metadata); end
|
def shared_metadata=(_shared_metadata); end
|
||||||
sig {
|
sig {
|
||||||
params(currency: String, customer: T.nilable(String), expand: T.nilable(T::Array[String]), fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails), line_item_details: T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail], metadata: T.nilable(T::Hash[String, String]), payment_method: T.nilable(String), payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData), seller_details: DelegatedCheckout::RequestedSessionCreateParams::SellerDetails, setup_future_usage: T.nilable(String), shared_metadata: T.nilable(T::Hash[String, String])).void
|
params(currency: String, customer: T.nilable(String), expand: T.nilable(T::Array[String]), fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails), line_item_details: T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail], metadata: T.nilable(T::Hash[String, String]), payment_method: T.nilable(String), payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData), risk_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails), seller_details: DelegatedCheckout::RequestedSessionCreateParams::SellerDetails, setup_future_usage: T.nilable(String), shared_metadata: T.nilable(T::Hash[String, String])).void
|
||||||
}
|
}
|
||||||
def initialize(
|
def initialize(
|
||||||
currency: nil,
|
currency: nil,
|
||||||
@ -99760,6 +99711,7 @@ module Stripe
|
|||||||
metadata: nil,
|
metadata: nil,
|
||||||
payment_method: nil,
|
payment_method: nil,
|
||||||
payment_method_data: nil,
|
payment_method_data: nil,
|
||||||
|
risk_details: nil,
|
||||||
seller_details: nil,
|
seller_details: nil,
|
||||||
setup_future_usage: nil,
|
setup_future_usage: nil,
|
||||||
shared_metadata: nil
|
shared_metadata: nil
|
||||||
@ -99771,58 +99723,6 @@ end
|
|||||||
module Stripe
|
module Stripe
|
||||||
module DelegatedCheckout
|
module DelegatedCheckout
|
||||||
class RequestedSessionConfirmParams < ::Stripe::RequestParams
|
class RequestedSessionConfirmParams < ::Stripe::RequestParams
|
||||||
class RiskDetails < ::Stripe::RequestParams
|
|
||||||
class ClientDeviceMetadataDetails < ::Stripe::RequestParams
|
|
||||||
# The radar session.
|
|
||||||
sig { returns(T.nilable(String)) }
|
|
||||||
def radar_session; end
|
|
||||||
sig { params(_radar_session: T.nilable(String)).returns(T.nilable(String)) }
|
|
||||||
def radar_session=(_radar_session); end
|
|
||||||
# The referrer of the client device.
|
|
||||||
sig { returns(T.nilable(String)) }
|
|
||||||
def referrer; end
|
|
||||||
sig { params(_referrer: T.nilable(String)).returns(T.nilable(String)) }
|
|
||||||
def referrer=(_referrer); end
|
|
||||||
# The remote IP address of the client device.
|
|
||||||
sig { returns(T.nilable(String)) }
|
|
||||||
def remote_ip; end
|
|
||||||
sig { params(_remote_ip: T.nilable(String)).returns(T.nilable(String)) }
|
|
||||||
def remote_ip=(_remote_ip); end
|
|
||||||
# The time on page in milliseconds.
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def time_on_page_ms; end
|
|
||||||
sig { params(_time_on_page_ms: T.nilable(Integer)).returns(T.nilable(Integer)) }
|
|
||||||
def time_on_page_ms=(_time_on_page_ms); end
|
|
||||||
# The user agent of the client device.
|
|
||||||
sig { returns(T.nilable(String)) }
|
|
||||||
def user_agent; end
|
|
||||||
sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) }
|
|
||||||
def user_agent=(_user_agent); end
|
|
||||||
sig {
|
|
||||||
params(radar_session: T.nilable(String), referrer: T.nilable(String), remote_ip: T.nilable(String), time_on_page_ms: T.nilable(Integer), user_agent: T.nilable(String)).void
|
|
||||||
}
|
|
||||||
def initialize(
|
|
||||||
radar_session: nil,
|
|
||||||
referrer: nil,
|
|
||||||
remote_ip: nil,
|
|
||||||
time_on_page_ms: nil,
|
|
||||||
user_agent: nil
|
|
||||||
); end
|
|
||||||
end
|
|
||||||
# The client device metadata details for this requested session.
|
|
||||||
sig {
|
|
||||||
returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails))
|
|
||||||
}
|
|
||||||
def client_device_metadata_details; end
|
|
||||||
sig {
|
|
||||||
params(_client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails))
|
|
||||||
}
|
|
||||||
def client_device_metadata_details=(_client_device_metadata_details); end
|
|
||||||
sig {
|
|
||||||
params(client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails)).void
|
|
||||||
}
|
|
||||||
def initialize(client_device_metadata_details: nil); end
|
|
||||||
end
|
|
||||||
# Specifies which fields in the response should be expanded.
|
# Specifies which fields in the response should be expanded.
|
||||||
sig { returns(T.nilable(T::Array[String])) }
|
sig { returns(T.nilable(T::Array[String])) }
|
||||||
def expand; end
|
def expand; end
|
||||||
@ -99833,17 +99733,8 @@ module Stripe
|
|||||||
def payment_method; end
|
def payment_method; end
|
||||||
sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) }
|
sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) }
|
||||||
def payment_method=(_payment_method); end
|
def payment_method=(_payment_method); end
|
||||||
# Risk details/signals associated with the requested session
|
sig { params(expand: T.nilable(T::Array[String]), payment_method: T.nilable(String)).void }
|
||||||
sig { returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)) }
|
def initialize(expand: nil, payment_method: nil); end
|
||||||
def risk_details; end
|
|
||||||
sig {
|
|
||||||
params(_risk_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails))
|
|
||||||
}
|
|
||||||
def risk_details=(_risk_details); end
|
|
||||||
sig {
|
|
||||||
params(expand: T.nilable(T::Array[String]), payment_method: T.nilable(String), risk_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)).void
|
|
||||||
}
|
|
||||||
def initialize(expand: nil, payment_method: nil, risk_details: nil); end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -178823,13 +178714,8 @@ module Stripe
|
|||||||
def transfer_group; end
|
def transfer_group; end
|
||||||
sig { params(_transfer_group: T.nilable(String)).returns(T.nilable(String)) }
|
sig { params(_transfer_group: T.nilable(String)).returns(T.nilable(String)) }
|
||||||
def transfer_group=(_transfer_group); end
|
def transfer_group=(_transfer_group); end
|
||||||
# Attribute for param field application_fee_amount
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def application_fee_amount; end
|
|
||||||
sig { params(_application_fee_amount: T.nilable(Integer)).returns(T.nilable(Integer)) }
|
|
||||||
def application_fee_amount=(_application_fee_amount); end
|
|
||||||
sig {
|
sig {
|
||||||
params(amount: T.nilable(Integer), currency: String, description: T.nilable(String), destination: String, expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), source_transaction: T.nilable(String), source_type: T.nilable(String), transfer_group: T.nilable(String), application_fee_amount: T.nilable(Integer)).void
|
params(amount: T.nilable(Integer), currency: String, description: T.nilable(String), destination: String, expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), source_transaction: T.nilable(String), source_type: T.nilable(String), transfer_group: T.nilable(String)).void
|
||||||
}
|
}
|
||||||
def initialize(
|
def initialize(
|
||||||
amount: nil,
|
amount: nil,
|
||||||
@ -178841,8 +178727,7 @@ module Stripe
|
|||||||
metadata: nil,
|
metadata: nil,
|
||||||
source_transaction: nil,
|
source_transaction: nil,
|
||||||
source_type: nil,
|
source_type: nil,
|
||||||
transfer_group: nil,
|
transfer_group: nil
|
||||||
application_fee_amount: nil
|
|
||||||
); end
|
); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -5,58 +5,6 @@
|
|||||||
module Stripe
|
module Stripe
|
||||||
module DelegatedCheckout
|
module DelegatedCheckout
|
||||||
class RequestedSessionConfirmParams < ::Stripe::RequestParams
|
class RequestedSessionConfirmParams < ::Stripe::RequestParams
|
||||||
class RiskDetails < ::Stripe::RequestParams
|
|
||||||
class ClientDeviceMetadataDetails < ::Stripe::RequestParams
|
|
||||||
# The radar session.
|
|
||||||
sig { returns(T.nilable(String)) }
|
|
||||||
def radar_session; end
|
|
||||||
sig { params(_radar_session: T.nilable(String)).returns(T.nilable(String)) }
|
|
||||||
def radar_session=(_radar_session); end
|
|
||||||
# The referrer of the client device.
|
|
||||||
sig { returns(T.nilable(String)) }
|
|
||||||
def referrer; end
|
|
||||||
sig { params(_referrer: T.nilable(String)).returns(T.nilable(String)) }
|
|
||||||
def referrer=(_referrer); end
|
|
||||||
# The remote IP address of the client device.
|
|
||||||
sig { returns(T.nilable(String)) }
|
|
||||||
def remote_ip; end
|
|
||||||
sig { params(_remote_ip: T.nilable(String)).returns(T.nilable(String)) }
|
|
||||||
def remote_ip=(_remote_ip); end
|
|
||||||
# The time on page in milliseconds.
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def time_on_page_ms; end
|
|
||||||
sig { params(_time_on_page_ms: T.nilable(Integer)).returns(T.nilable(Integer)) }
|
|
||||||
def time_on_page_ms=(_time_on_page_ms); end
|
|
||||||
# The user agent of the client device.
|
|
||||||
sig { returns(T.nilable(String)) }
|
|
||||||
def user_agent; end
|
|
||||||
sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) }
|
|
||||||
def user_agent=(_user_agent); end
|
|
||||||
sig {
|
|
||||||
params(radar_session: T.nilable(String), referrer: T.nilable(String), remote_ip: T.nilable(String), time_on_page_ms: T.nilable(Integer), user_agent: T.nilable(String)).void
|
|
||||||
}
|
|
||||||
def initialize(
|
|
||||||
radar_session: nil,
|
|
||||||
referrer: nil,
|
|
||||||
remote_ip: nil,
|
|
||||||
time_on_page_ms: nil,
|
|
||||||
user_agent: nil
|
|
||||||
); end
|
|
||||||
end
|
|
||||||
# The client device metadata details for this requested session.
|
|
||||||
sig {
|
|
||||||
returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails))
|
|
||||||
}
|
|
||||||
def client_device_metadata_details; end
|
|
||||||
sig {
|
|
||||||
params(_client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails))
|
|
||||||
}
|
|
||||||
def client_device_metadata_details=(_client_device_metadata_details); end
|
|
||||||
sig {
|
|
||||||
params(client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails)).void
|
|
||||||
}
|
|
||||||
def initialize(client_device_metadata_details: nil); end
|
|
||||||
end
|
|
||||||
# Specifies which fields in the response should be expanded.
|
# Specifies which fields in the response should be expanded.
|
||||||
sig { returns(T.nilable(T::Array[String])) }
|
sig { returns(T.nilable(T::Array[String])) }
|
||||||
def expand; end
|
def expand; end
|
||||||
@ -67,17 +15,8 @@ module Stripe
|
|||||||
def payment_method; end
|
def payment_method; end
|
||||||
sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) }
|
sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) }
|
||||||
def payment_method=(_payment_method); end
|
def payment_method=(_payment_method); end
|
||||||
# Risk details/signals associated with the requested session
|
sig { params(expand: T.nilable(T::Array[String]), payment_method: T.nilable(String)).void }
|
||||||
sig { returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)) }
|
def initialize(expand: nil, payment_method: nil); end
|
||||||
def risk_details; end
|
|
||||||
sig {
|
|
||||||
params(_risk_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails))
|
|
||||||
}
|
|
||||||
def risk_details=(_risk_details); end
|
|
||||||
sig {
|
|
||||||
params(expand: T.nilable(T::Array[String]), payment_method: T.nilable(String), risk_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)).void
|
|
||||||
}
|
|
||||||
def initialize(expand: nil, payment_method: nil, risk_details: nil); end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -220,6 +220,58 @@ module Stripe
|
|||||||
}
|
}
|
||||||
def initialize(billing_details: nil, card: nil, type: nil); end
|
def initialize(billing_details: nil, card: nil, type: nil); end
|
||||||
end
|
end
|
||||||
|
class RiskDetails < ::Stripe::RequestParams
|
||||||
|
class ClientDeviceMetadataDetails < ::Stripe::RequestParams
|
||||||
|
# The radar session.
|
||||||
|
sig { returns(T.nilable(String)) }
|
||||||
|
def radar_session; end
|
||||||
|
sig { params(_radar_session: T.nilable(String)).returns(T.nilable(String)) }
|
||||||
|
def radar_session=(_radar_session); end
|
||||||
|
# The referrer of the client device.
|
||||||
|
sig { returns(T.nilable(String)) }
|
||||||
|
def referrer; end
|
||||||
|
sig { params(_referrer: T.nilable(String)).returns(T.nilable(String)) }
|
||||||
|
def referrer=(_referrer); end
|
||||||
|
# The remote IP address of the client device.
|
||||||
|
sig { returns(T.nilable(String)) }
|
||||||
|
def remote_ip; end
|
||||||
|
sig { params(_remote_ip: T.nilable(String)).returns(T.nilable(String)) }
|
||||||
|
def remote_ip=(_remote_ip); end
|
||||||
|
# The time on page in seconds.
|
||||||
|
sig { returns(T.nilable(Integer)) }
|
||||||
|
def time_on_page; end
|
||||||
|
sig { params(_time_on_page: T.nilable(Integer)).returns(T.nilable(Integer)) }
|
||||||
|
def time_on_page=(_time_on_page); end
|
||||||
|
# The user agent of the client device.
|
||||||
|
sig { returns(T.nilable(String)) }
|
||||||
|
def user_agent; end
|
||||||
|
sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) }
|
||||||
|
def user_agent=(_user_agent); end
|
||||||
|
sig {
|
||||||
|
params(radar_session: T.nilable(String), referrer: T.nilable(String), remote_ip: T.nilable(String), time_on_page: T.nilable(Integer), user_agent: T.nilable(String)).void
|
||||||
|
}
|
||||||
|
def initialize(
|
||||||
|
radar_session: nil,
|
||||||
|
referrer: nil,
|
||||||
|
remote_ip: nil,
|
||||||
|
time_on_page: nil,
|
||||||
|
user_agent: nil
|
||||||
|
); end
|
||||||
|
end
|
||||||
|
# The client device metadata details for this requested session.
|
||||||
|
sig {
|
||||||
|
returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails))
|
||||||
|
}
|
||||||
|
def client_device_metadata_details; end
|
||||||
|
sig {
|
||||||
|
params(_client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails))
|
||||||
|
}
|
||||||
|
def client_device_metadata_details=(_client_device_metadata_details); end
|
||||||
|
sig {
|
||||||
|
params(client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails)).void
|
||||||
|
}
|
||||||
|
def initialize(client_device_metadata_details: nil); end
|
||||||
|
end
|
||||||
class SellerDetails < ::Stripe::RequestParams
|
class SellerDetails < ::Stripe::RequestParams
|
||||||
# The network profile for the seller.
|
# The network profile for the seller.
|
||||||
sig { returns(String) }
|
sig { returns(String) }
|
||||||
@ -279,6 +331,13 @@ module Stripe
|
|||||||
params(_payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData))
|
params(_payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData))
|
||||||
}
|
}
|
||||||
def payment_method_data=(_payment_method_data); end
|
def payment_method_data=(_payment_method_data); end
|
||||||
|
# The risk details for this requested session.
|
||||||
|
sig { returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails)) }
|
||||||
|
def risk_details; end
|
||||||
|
sig {
|
||||||
|
params(_risk_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails))
|
||||||
|
}
|
||||||
|
def risk_details=(_risk_details); end
|
||||||
# The details of the seller.
|
# The details of the seller.
|
||||||
sig { returns(DelegatedCheckout::RequestedSessionCreateParams::SellerDetails) }
|
sig { returns(DelegatedCheckout::RequestedSessionCreateParams::SellerDetails) }
|
||||||
def seller_details; end
|
def seller_details; end
|
||||||
@ -299,7 +358,7 @@ module Stripe
|
|||||||
}
|
}
|
||||||
def shared_metadata=(_shared_metadata); end
|
def shared_metadata=(_shared_metadata); end
|
||||||
sig {
|
sig {
|
||||||
params(currency: String, customer: T.nilable(String), expand: T.nilable(T::Array[String]), fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails), line_item_details: T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail], metadata: T.nilable(T::Hash[String, String]), payment_method: T.nilable(String), payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData), seller_details: DelegatedCheckout::RequestedSessionCreateParams::SellerDetails, setup_future_usage: T.nilable(String), shared_metadata: T.nilable(T::Hash[String, String])).void
|
params(currency: String, customer: T.nilable(String), expand: T.nilable(T::Array[String]), fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails), line_item_details: T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail], metadata: T.nilable(T::Hash[String, String]), payment_method: T.nilable(String), payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData), risk_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails), seller_details: DelegatedCheckout::RequestedSessionCreateParams::SellerDetails, setup_future_usage: T.nilable(String), shared_metadata: T.nilable(T::Hash[String, String])).void
|
||||||
}
|
}
|
||||||
def initialize(
|
def initialize(
|
||||||
currency: nil,
|
currency: nil,
|
||||||
@ -310,6 +369,7 @@ module Stripe
|
|||||||
metadata: nil,
|
metadata: nil,
|
||||||
payment_method: nil,
|
payment_method: nil,
|
||||||
payment_method_data: nil,
|
payment_method_data: nil,
|
||||||
|
risk_details: nil,
|
||||||
seller_details: nil,
|
seller_details: nil,
|
||||||
setup_future_usage: nil,
|
setup_future_usage: nil,
|
||||||
shared_metadata: nil
|
shared_metadata: nil
|
||||||
|
|||||||
@ -56,13 +56,8 @@ module Stripe
|
|||||||
def transfer_group; end
|
def transfer_group; end
|
||||||
sig { params(_transfer_group: T.nilable(String)).returns(T.nilable(String)) }
|
sig { params(_transfer_group: T.nilable(String)).returns(T.nilable(String)) }
|
||||||
def transfer_group=(_transfer_group); end
|
def transfer_group=(_transfer_group); end
|
||||||
# Attribute for param field application_fee_amount
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def application_fee_amount; end
|
|
||||||
sig { params(_application_fee_amount: T.nilable(Integer)).returns(T.nilable(Integer)) }
|
|
||||||
def application_fee_amount=(_application_fee_amount); end
|
|
||||||
sig {
|
sig {
|
||||||
params(amount: T.nilable(Integer), currency: String, description: T.nilable(String), destination: String, expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), source_transaction: T.nilable(String), source_type: T.nilable(String), transfer_group: T.nilable(String), application_fee_amount: T.nilable(Integer)).void
|
params(amount: T.nilable(Integer), currency: String, description: T.nilable(String), destination: String, expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), source_transaction: T.nilable(String), source_type: T.nilable(String), transfer_group: T.nilable(String)).void
|
||||||
}
|
}
|
||||||
def initialize(
|
def initialize(
|
||||||
amount: nil,
|
amount: nil,
|
||||||
@ -74,8 +69,7 @@ module Stripe
|
|||||||
metadata: nil,
|
metadata: nil,
|
||||||
source_transaction: nil,
|
source_transaction: nil,
|
||||||
source_type: nil,
|
source_type: nil,
|
||||||
transfer_group: nil,
|
transfer_group: nil
|
||||||
application_fee_amount: nil
|
|
||||||
); end
|
); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -14,9 +14,6 @@ module Stripe
|
|||||||
# Type of object that created the application fee.
|
# Type of object that created the application fee.
|
||||||
sig { returns(String) }
|
sig { returns(String) }
|
||||||
def type; end
|
def type; end
|
||||||
# Transfer ID that created this application fee.
|
|
||||||
sig { returns(T.nilable(String)) }
|
|
||||||
def transfer; end
|
|
||||||
def self.inner_class_types
|
def self.inner_class_types
|
||||||
@inner_class_types = {}
|
@inner_class_types = {}
|
||||||
end
|
end
|
||||||
|
|||||||
@ -310,88 +310,6 @@ module Stripe
|
|||||||
@field_remappings = {}
|
@field_remappings = {}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
class TransitBalancesTotal < ::Stripe::StripeObject
|
|
||||||
class Available < ::Stripe::StripeObject
|
|
||||||
class SourceTypes < ::Stripe::StripeObject
|
|
||||||
# Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def bank_account; end
|
|
||||||
# Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def card; end
|
|
||||||
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def fpx; end
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {}
|
|
||||||
end
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Balance amount.
|
|
||||||
sig { returns(Integer) }
|
|
||||||
def amount; 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
|
|
||||||
# Attribute for field source_types
|
|
||||||
sig { returns(T.nilable(SourceTypes)) }
|
|
||||||
def source_types; end
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {source_types: SourceTypes}
|
|
||||||
end
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
class Pending < ::Stripe::StripeObject
|
|
||||||
class SourceTypes < ::Stripe::StripeObject
|
|
||||||
# Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def bank_account; end
|
|
||||||
# Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def card; end
|
|
||||||
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def fpx; end
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {}
|
|
||||||
end
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Balance amount.
|
|
||||||
sig { returns(Integer) }
|
|
||||||
def amount; 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
|
|
||||||
# Attribute for field source_types
|
|
||||||
sig { returns(T.nilable(SourceTypes)) }
|
|
||||||
def source_types; end
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {source_types: SourceTypes}
|
|
||||||
end
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Funds that are available for use.
|
|
||||||
sig { returns(T::Array[Available]) }
|
|
||||||
def available; end
|
|
||||||
# Funds that are pending
|
|
||||||
sig { returns(T::Array[Pending]) }
|
|
||||||
def pending; end
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {available: Available, pending: Pending}
|
|
||||||
end
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
|
# Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
|
||||||
sig { returns(T::Array[Available]) }
|
sig { returns(T::Array[Available]) }
|
||||||
def available; end
|
def available; end
|
||||||
@ -416,8 +334,5 @@ module Stripe
|
|||||||
# Attribute for field refund_and_dispute_prefunding
|
# Attribute for field refund_and_dispute_prefunding
|
||||||
sig { returns(T.nilable(RefundAndDisputePrefunding)) }
|
sig { returns(T.nilable(RefundAndDisputePrefunding)) }
|
||||||
def refund_and_dispute_prefunding; end
|
def refund_and_dispute_prefunding; end
|
||||||
# Attribute for field transit_balances_total
|
|
||||||
sig { returns(T.nilable(TransitBalancesTotal)) }
|
|
||||||
def transit_balances_total; end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -3605,17 +3605,6 @@ module Stripe
|
|||||||
@field_remappings = {}
|
@field_remappings = {}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
class AllocatedFunds < ::Stripe::StripeObject
|
|
||||||
# Allocated Funds configuration for this PaymentIntent.
|
|
||||||
sig { returns(T.nilable(T::Boolean)) }
|
|
||||||
def enabled; end
|
|
||||||
def self.inner_class_types
|
|
||||||
@inner_class_types = {}
|
|
||||||
end
|
|
||||||
def self.field_remappings
|
|
||||||
@field_remappings = {}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
||||||
sig { returns(Integer) }
|
sig { returns(Integer) }
|
||||||
def amount; end
|
def amount; end
|
||||||
@ -3776,9 +3765,6 @@ module Stripe
|
|||||||
# A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).
|
# A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).
|
||||||
sig { returns(T.nilable(String)) }
|
sig { returns(T.nilable(String)) }
|
||||||
def transfer_group; end
|
def transfer_group; end
|
||||||
# Allocated Funds configuration for this PaymentIntent.
|
|
||||||
sig { returns(T.nilable(AllocatedFunds)) }
|
|
||||||
def allocated_funds; end
|
|
||||||
# Manually reconcile the remaining amount for a customer_balance PaymentIntent.
|
# Manually reconcile the remaining amount for a customer_balance PaymentIntent.
|
||||||
sig {
|
sig {
|
||||||
params(params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent)
|
params(params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent)
|
||||||
|
|||||||
@ -68,12 +68,6 @@ 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.
|
# 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)) }
|
sig { returns(T.nilable(String)) }
|
||||||
def transfer_group; end
|
def transfer_group; end
|
||||||
# Attribute for field application_fee
|
|
||||||
sig { returns(T.nilable(T.any(String, ::Stripe::ApplicationFee))) }
|
|
||||||
def application_fee; end
|
|
||||||
# Attribute for field application_fee_amount
|
|
||||||
sig { returns(T.nilable(Integer)) }
|
|
||||||
def application_fee_amount; end
|
|
||||||
# To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
|
# To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
|
||||||
sig {
|
sig {
|
||||||
params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer)
|
params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user