Skip to content

Commit 905531e

Browse files
Merge upstream and update generated code for 2d2c88d14fb41f422c7b827e23c76009a47fbfb9 and 2025-08-27.basil
2 parents 2f7c274 + b629896 commit 905531e

File tree

447 files changed

+390623
-38529
lines changed

Some content is hidden

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

447 files changed

+390623
-38529
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f4b80890ea17e89a543a77a389f29ca9be6fe615
1+
2d2c88d14fb41f422c7b827e23c76009a47fbfb9

rbi/stripe.rbi

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

rbi/stripe/resources/account.rbi

Lines changed: 3415 additions & 1127 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
}

rbi/stripe/resources/account_notice.rbi

Lines changed: 56 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,71 +10,81 @@ module Stripe
1010
class Email < Stripe::StripeObject
1111
# Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
1212
sig { returns(String) }
13-
attr_reader :plain_text
13+
def plain_text; end
1414
# Email address of the recipient.
1515
sig { returns(String) }
16-
attr_reader :recipient
16+
def recipient; end
1717
# Subject of the email.
1818
sig { returns(String) }
19-
attr_reader :subject
19+
def subject; end
2020
end
2121
class LinkedObjects < Stripe::StripeObject
2222
# Associated [Capability](https://stripe.com/docs/api/capabilities)
2323
sig { returns(T.nilable(String)) }
24-
attr_reader :capability
24+
def capability; end
2525
# Associated [Credit Underwriting Record](https://stripe.com/docs/api/issuing/credit_underwriting_record)
2626
sig { returns(T.nilable(String)) }
27-
attr_reader :issuing_credit_underwriting_record
27+
def issuing_credit_underwriting_record; end
2828
# Associated [Issuing Dispute](https://stripe.com/docs/api/issuing/disputes)
2929
sig { returns(T.nilable(String)) }
30-
attr_reader :issuing_dispute
30+
def issuing_dispute; end
3131
end
3232
# Time at which the object was created. Measured in seconds since the Unix epoch.
3333
sig { returns(Integer) }
34-
attr_reader :created
34+
def created; end
3535
# When present, the deadline for sending the notice to meet the relevant regulations.
3636
sig { returns(T.nilable(Integer)) }
37-
attr_reader :deadline
37+
def deadline; end
3838
# Information about the email when sent.
3939
sig { returns(T.nilable(Email)) }
40-
attr_reader :email
40+
def email; end
4141
# Unique identifier for the object.
4242
sig { returns(String) }
43-
attr_reader :id
43+
def id; end
4444
# Information about objects related to the notice.
4545
sig { returns(T.nilable(LinkedObjects)) }
46-
attr_reader :linked_objects
46+
def linked_objects; end
4747
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
4848
sig { returns(T::Boolean) }
49-
attr_reader :livemode
49+
def livemode; end
5050
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
5151
sig { returns(T.nilable(T::Hash[String, String])) }
52-
attr_reader :metadata
52+
def metadata; end
5353
# String representing the object's type. Objects of the same type share the same value.
5454
sig { returns(String) }
55-
attr_reader :object
55+
def object; end
5656
# Reason the notice is being sent. The reason determines what copy the notice must contain. See the [regulated customer notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason.
5757
sig { returns(String) }
58-
attr_reader :reason
58+
def reason; end
5959
# Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent.
6060
sig { returns(T.nilable(Integer)) }
61-
attr_reader :sent_at
61+
def sent_at; end
6262
class ListParams < Stripe::RequestParams
6363
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
6464
sig { returns(T.nilable(String)) }
65-
attr_accessor :ending_before
65+
def ending_before; end
66+
sig { params(_ending_before: T.nilable(String)).returns(T.nilable(String)) }
67+
def ending_before=(_ending_before); end
6668
# Specifies which fields in the response should be expanded.
6769
sig { returns(T.nilable(T::Array[String])) }
68-
attr_accessor :expand
70+
def expand; end
71+
sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
72+
def expand=(_expand); end
6973
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
7074
sig { returns(T.nilable(Integer)) }
71-
attr_accessor :limit
75+
def limit; end
76+
sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) }
77+
def limit=(_limit); end
7278
# Set to false to only return unsent AccountNotices.
7379
sig { returns(T.nilable(T::Boolean)) }
74-
attr_accessor :sent
80+
def sent; end
81+
sig { params(_sent: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
82+
def sent=(_sent); end
7583
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
7684
sig { returns(T.nilable(String)) }
77-
attr_accessor :starting_after
85+
def starting_after; end
86+
sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) }
87+
def starting_after=(_starting_after); end
7888
sig {
7989
params(ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), sent: T.nilable(T::Boolean), starting_after: T.nilable(String)).void
8090
}
@@ -90,28 +100,46 @@ module Stripe
90100
class Email < Stripe::RequestParams
91101
# Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
92102
sig { returns(String) }
93-
attr_accessor :plain_text
103+
def plain_text; end
104+
sig { params(_plain_text: String).returns(String) }
105+
def plain_text=(_plain_text); end
94106
# Email address of the recipient.
95107
sig { returns(String) }
96-
attr_accessor :recipient
108+
def recipient; end
109+
sig { params(_recipient: String).returns(String) }
110+
def recipient=(_recipient); end
97111
# Subject of the email.
98112
sig { returns(String) }
99-
attr_accessor :subject
113+
def subject; end
114+
sig { params(_subject: String).returns(String) }
115+
def subject=(_subject); end
100116
sig { params(plain_text: String, recipient: String, subject: String).void }
101117
def initialize(plain_text: nil, recipient: nil, subject: nil); end
102118
end
103119
# Information about the email you sent.
104120
sig { returns(::Stripe::AccountNotice::UpdateParams::Email) }
105-
attr_accessor :email
121+
def email; end
122+
sig {
123+
params(_email: ::Stripe::AccountNotice::UpdateParams::Email).returns(::Stripe::AccountNotice::UpdateParams::Email)
124+
}
125+
def email=(_email); end
106126
# Specifies which fields in the response should be expanded.
107127
sig { returns(T.nilable(T::Array[String])) }
108-
attr_accessor :expand
128+
def expand; end
129+
sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
130+
def expand=(_expand); end
109131
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
110132
sig { returns(T.nilable(T::Hash[String, String])) }
111-
attr_accessor :metadata
133+
def metadata; end
134+
sig {
135+
params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String]))
136+
}
137+
def metadata=(_metadata); end
112138
# Date when you sent the notice.
113139
sig { returns(Integer) }
114-
attr_accessor :sent_at
140+
def sent_at; end
141+
sig { params(_sent_at: Integer).returns(Integer) }
142+
def sent_at=(_sent_at); end
115143
sig {
116144
params(email: ::Stripe::AccountNotice::UpdateParams::Email, expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), sent_at: Integer).void
117145
}

0 commit comments

Comments
 (0)