Skip to content

Commit 07b68c9

Browse files
Explicitly define methods for RBIs and ship combined RBI for Tapioca (stripe#1649)
1 parent 6ae1f4a commit 07b68c9

295 files changed

Lines changed: 267338 additions & 27435 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

rbi/stripe.rbi

Lines changed: 190503 additions & 0 deletions
Large diffs are not rendered by default.

rbi/stripe/resources/account.rbi

Lines changed: 3132 additions & 1116 deletions
Large diffs are not rendered by default.

rbi/stripe/resources/account_link.rbi

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,50 +10,70 @@ module Stripe
1010
class AccountLink < APIResource
1111
# Time at which the object was created. Measured in seconds since the Unix epoch.
1212
sig { returns(Integer) }
13-
attr_reader :created
13+
def created; end
1414
# The timestamp at which this account link will expire.
1515
sig { returns(Integer) }
16-
attr_reader :expires_at
16+
def expires_at; end
1717
# String representing the object's type. Objects of the same type share the same value.
1818
sig { returns(String) }
19-
attr_reader :object
19+
def object; end
2020
# The URL for the account link.
2121
sig { returns(String) }
22-
attr_reader :url
22+
def url; end
2323
class CreateParams < Stripe::RequestParams
2424
class CollectionOptions < Stripe::RequestParams
2525
# 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`.
2626
sig { returns(T.nilable(String)) }
27-
attr_accessor :fields
27+
def fields; end
28+
sig { params(_fields: T.nilable(String)).returns(T.nilable(String)) }
29+
def fields=(_fields); end
2830
# Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
2931
sig { returns(T.nilable(String)) }
30-
attr_accessor :future_requirements
32+
def future_requirements; end
33+
sig { params(_future_requirements: T.nilable(String)).returns(T.nilable(String)) }
34+
def future_requirements=(_future_requirements); end
3135
sig { params(fields: T.nilable(String), future_requirements: T.nilable(String)).void }
3236
def initialize(fields: nil, future_requirements: nil); end
3337
end
3438
# The identifier of the account to create an account link for.
3539
sig { returns(String) }
36-
attr_accessor :account
40+
def account; end
41+
sig { params(_account: String).returns(String) }
42+
def account=(_account); end
3743
# The collect parameter is deprecated. Use `collection_options` instead.
3844
sig { returns(T.nilable(String)) }
39-
attr_accessor :collect
45+
def collect; end
46+
sig { params(_collect: T.nilable(String)).returns(T.nilable(String)) }
47+
def collect=(_collect); end
4048
# Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
4149
sig { returns(T.nilable(::Stripe::AccountLink::CreateParams::CollectionOptions)) }
42-
attr_accessor :collection_options
50+
def collection_options; end
51+
sig {
52+
params(_collection_options: T.nilable(::Stripe::AccountLink::CreateParams::CollectionOptions)).returns(T.nilable(::Stripe::AccountLink::CreateParams::CollectionOptions))
53+
}
54+
def collection_options=(_collection_options); end
4355
# Specifies which fields in the response should be expanded.
4456
sig { returns(T.nilable(T::Array[String])) }
45-
attr_accessor :expand
57+
def expand; end
58+
sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
59+
def expand=(_expand); end
4660
# 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.
4761
sig { returns(T.nilable(String)) }
48-
attr_accessor :refresh_url
62+
def refresh_url; end
63+
sig { params(_refresh_url: T.nilable(String)).returns(T.nilable(String)) }
64+
def refresh_url=(_refresh_url); end
4965
# The URL that the user will be redirected to upon leaving or completing the linked flow.
5066
sig { returns(T.nilable(String)) }
51-
attr_accessor :return_url
67+
def return_url; end
68+
sig { params(_return_url: T.nilable(String)).returns(T.nilable(String)) }
69+
def return_url=(_return_url); end
5270
# The type of account link the user is requesting.
5371
#
5472
# 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.
5573
sig { returns(String) }
56-
attr_accessor :type
74+
def type; end
75+
sig { params(_type: String).returns(String) }
76+
def type=(_type); end
5777
sig {
5878
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
5979
}

0 commit comments

Comments
 (0)