Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
190,503 changes: 190,503 additions & 0 deletions rbi/stripe.rbi

Large diffs are not rendered by default.

4,248 changes: 3,132 additions & 1,116 deletions rbi/stripe/resources/account.rbi

Large diffs are not rendered by default.

46 changes: 33 additions & 13 deletions rbi/stripe/resources/account_link.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,70 @@ module Stripe
class AccountLink < APIResource
# Time at which the object was created. Measured in seconds since the Unix epoch.
sig { returns(Integer) }
attr_reader :created
def created; end
# The timestamp at which this account link will expire.
sig { returns(Integer) }
attr_reader :expires_at
def expires_at; end
# String representing the object's type. Objects of the same type share the same value.
sig { returns(String) }
attr_reader :object
def object; end
# The URL for the account link.
sig { returns(String) }
attr_reader :url
def url; end
class CreateParams < Stripe::RequestParams
class CollectionOptions < Stripe::RequestParams
# Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`.
sig { returns(T.nilable(String)) }
attr_accessor :fields
def fields; end
sig { params(_fields: T.nilable(String)).returns(T.nilable(String)) }
def fields=(_fields); end
# Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
sig { returns(T.nilable(String)) }
attr_accessor :future_requirements
def future_requirements; end
sig { params(_future_requirements: T.nilable(String)).returns(T.nilable(String)) }
def future_requirements=(_future_requirements); end
sig { params(fields: T.nilable(String), future_requirements: T.nilable(String)).void }
def initialize(fields: nil, future_requirements: nil); end
end
# The identifier of the account to create an account link for.
sig { returns(String) }
attr_accessor :account
def account; end
sig { params(_account: String).returns(String) }
def account=(_account); end
# The collect parameter is deprecated. Use `collection_options` instead.
sig { returns(T.nilable(String)) }
attr_accessor :collect
def collect; end
sig { params(_collect: T.nilable(String)).returns(T.nilable(String)) }
def collect=(_collect); end
# Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
sig { returns(T.nilable(::Stripe::AccountLink::CreateParams::CollectionOptions)) }
attr_accessor :collection_options
def collection_options; end
sig {
params(_collection_options: T.nilable(::Stripe::AccountLink::CreateParams::CollectionOptions)).returns(T.nilable(::Stripe::AccountLink::CreateParams::CollectionOptions))
}
def collection_options=(_collection_options); end
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
def expand; end
sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
def expand=(_expand); end
# The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid. The URL you specify should attempt to generate a new account link with the same parameters used to create the original account link, then redirect the user to the new account link's URL so they can continue with Connect Onboarding. If a new account link cannot be generated or the redirect fails you should display a useful error to the user.
sig { returns(T.nilable(String)) }
attr_accessor :refresh_url
def refresh_url; end
sig { params(_refresh_url: T.nilable(String)).returns(T.nilable(String)) }
def refresh_url=(_refresh_url); end
# The URL that the user will be redirected to upon leaving or completing the linked flow.
sig { returns(T.nilable(String)) }
attr_accessor :return_url
def return_url; end
sig { params(_return_url: T.nilable(String)).returns(T.nilable(String)) }
def return_url=(_return_url); end
# The type of account link the user is requesting.
#
# You can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components.
sig { returns(String) }
attr_accessor :type
def type; end
sig { params(_type: String).returns(String) }
def type=(_type); end
sig {
params(account: String, collect: T.nilable(String), collection_options: T.nilable(::Stripe::AccountLink::CreateParams::CollectionOptions), expand: T.nilable(T::Array[String]), refresh_url: T.nilable(String), return_url: T.nilable(String), type: String).void
}
Expand Down
Loading