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
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
61e410d24d6de541c86c48b265b7647c164457ee
c250368ba89214c80bc8de3e4fc5d2094c5502cc
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2151
v2152
2 changes: 0 additions & 2 deletions lib/stripe/api_requestor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -853,8 +853,6 @@ def self.maybe_gc_connection_managers
when "idempotency_error"
IdempotencyError.new(error_data[:message], **opts)
# switch cases: The beginning of the section generated from our OpenAPI spec
when "rate_limit"
RateLimitError.new(error_data[:message], **opts)
when "temporary_session_expired"
TemporarySessionExpiredError.new(error_data[:message], **opts)
# switch cases: The end of the section generated from our OpenAPI spec
Expand Down
3 changes: 0 additions & 3 deletions lib/stripe/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ class UnsupportedResponseTypeError < OAuthError
end

# class definitions: The beginning of the section generated from our OpenAPI spec
class RateLimitError < StripeError
end

class TemporarySessionExpiredError < StripeError
end
# class definitions: The end of the section generated from our OpenAPI spec
Expand Down
2 changes: 0 additions & 2 deletions lib/stripe/services/v2/core/account_link_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ module V2
module Core
class AccountLinkService < StripeService
# Creates an AccountLink object that includes a single-use URL that an account can use to access a Stripe-hosted flow for collecting or updating required information.
#
# ** raises RateLimitError
def create(params = {}, opts = {})
request(
method: :post,
Expand Down
10 changes: 0 additions & 10 deletions lib/stripe/services/v2/core/account_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ def initialize(requestor)
end

# Removes access to the Account and its associated resources. Closed Accounts can no longer be operated on, but limited information can still be retrieved through the API in order to be able to track their history.
#
# ** raises RateLimitError
def close(id, params = {}, opts = {})
request(
method: :post,
Expand All @@ -27,8 +25,6 @@ def close(id, params = {}, opts = {})
end

# An Account is a representation of a company, individual or other entity that a user interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient.
#
# ** raises RateLimitError
def create(params = {}, opts = {})
request(
method: :post,
Expand All @@ -40,8 +36,6 @@ def create(params = {}, opts = {})
end

# Returns a list of Accounts.
#
# ** raises RateLimitError
def list(params = {}, opts = {})
request(
method: :get,
Expand All @@ -53,8 +47,6 @@ def list(params = {}, opts = {})
end

# Retrieves the details of an Account.
#
# ** raises RateLimitError
def retrieve(id, params = {}, opts = {})
request(
method: :get,
Expand All @@ -66,8 +58,6 @@ def retrieve(id, params = {}, opts = {})
end

# Updates the details of an Account.
#
# ** raises RateLimitError
def update(id, params = {}, opts = {})
request(
method: :post,
Expand Down
4 changes: 0 additions & 4 deletions lib/stripe/services/v2/core/account_token_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ module V2
module Core
class AccountTokenService < StripeService
# Creates an Account Token.
#
# ** raises RateLimitError
def create(params = {}, opts = {})
request(
method: :post,
Expand All @@ -19,8 +17,6 @@ def create(params = {}, opts = {})
end

# Retrieves an Account Token.
#
# ** raises RateLimitError
def retrieve(id, params = {}, opts = {})
request(
method: :get,
Expand Down
10 changes: 0 additions & 10 deletions lib/stripe/services/v2/core/accounts/person_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ module Core
module Accounts
class PersonService < StripeService
# Create a Person. Adds an individual to an Account's identity. You can set relationship attributes and identity information at creation.
#
# ** raises RateLimitError
def create(account_id, params = {}, opts = {})
request(
method: :post,
Expand All @@ -20,8 +18,6 @@ def create(account_id, params = {}, opts = {})
end

# Delete a Person associated with an Account.
#
# ** raises RateLimitError
def delete(account_id, id, params = {}, opts = {})
request(
method: :delete,
Expand All @@ -33,8 +29,6 @@ def delete(account_id, id, params = {}, opts = {})
end

# Returns a paginated list of Persons associated with an Account.
#
# ** raises RateLimitError
def list(account_id, params = {}, opts = {})
request(
method: :get,
Expand All @@ -46,8 +40,6 @@ def list(account_id, params = {}, opts = {})
end

# Retrieves a Person associated with an Account.
#
# ** raises RateLimitError
def retrieve(account_id, id, params = {}, opts = {})
request(
method: :get,
Expand All @@ -59,8 +51,6 @@ def retrieve(account_id, id, params = {}, opts = {})
end

# Updates a Person associated with an Account.
#
# ** raises RateLimitError
def update(account_id, id, params = {}, opts = {})
request(
method: :post,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ module Core
module Accounts
class PersonTokenService < StripeService
# Creates a Person Token associated with an Account.
#
# ** raises RateLimitError
def create(account_id, params = {}, opts = {})
request(
method: :post,
Expand All @@ -20,8 +18,6 @@ def create(account_id, params = {}, opts = {})
end

# Retrieves a Person Token associated with an Account.
#
# ** raises RateLimitError
def retrieve(account_id, id, params = {}, opts = {})
request(
method: :get,
Expand Down
30 changes: 0 additions & 30 deletions rbi/stripe.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -57387,40 +57387,30 @@ module Stripe
attr_reader :persons
attr_reader :person_tokens
# Removes access to the Account and its associated resources. Closed Accounts can no longer be operated on, but limited information can still be retrieved through the API in order to be able to track their history.
#
# ** raises RateLimitError
sig {
params(id: String, params: T.any(::Stripe::V2::Core::AccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
}
def close(id, params = {}, opts = {}); end

# An Account is a representation of a company, individual or other entity that a user interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient.
#
# ** raises RateLimitError
sig {
params(params: T.any(::Stripe::V2::Core::AccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
}
def create(params = {}, opts = {}); end

# Returns a list of Accounts.
#
# ** raises RateLimitError
sig {
params(params: T.any(::Stripe::V2::Core::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject)
}
def list(params = {}, opts = {}); end

# Retrieves the details of an Account.
#
# ** raises RateLimitError
sig {
params(id: String, params: T.any(::Stripe::V2::Core::AccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
}
def retrieve(id, params = {}, opts = {}); end

# Updates the details of an Account.
#
# ** raises RateLimitError
sig {
params(id: String, params: T.any(::Stripe::V2::Core::AccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
}
Expand All @@ -57436,40 +57426,30 @@ module Stripe
module Accounts
class PersonService < StripeService
# Create a Person. Adds an individual to an Account's identity. You can set relationship attributes and identity information at creation.
#
# ** raises RateLimitError
sig {
params(account_id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPerson)
}
def create(account_id, params = {}, opts = {}); end

# Delete a Person associated with an Account.
#
# ** raises RateLimitError
sig {
params(account_id: String, id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::DeletedObject)
}
def delete(account_id, id, params = {}, opts = {}); end

# Returns a paginated list of Persons associated with an Account.
#
# ** raises RateLimitError
sig {
params(account_id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject)
}
def list(account_id, params = {}, opts = {}); end

# Retrieves a Person associated with an Account.
#
# ** raises RateLimitError
sig {
params(account_id: String, id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPerson)
}
def retrieve(account_id, id, params = {}, opts = {}); end

# Updates a Person associated with an Account.
#
# ** raises RateLimitError
sig {
params(account_id: String, id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPerson)
}
Expand All @@ -57486,16 +57466,12 @@ module Stripe
module Accounts
class PersonTokenService < StripeService
# Creates a Person Token associated with an Account.
#
# ** raises RateLimitError
sig {
params(account_id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPersonToken)
}
def create(account_id, params = {}, opts = {}); end

# Retrieves a Person Token associated with an Account.
#
# ** raises RateLimitError
sig {
params(account_id: String, id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonTokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPersonToken)
}
Expand All @@ -57511,8 +57487,6 @@ module Stripe
module Core
class AccountLinkService < StripeService
# Creates an AccountLink object that includes a single-use URL that an account can use to access a Stripe-hosted flow for collecting or updating required information.
#
# ** raises RateLimitError
sig {
params(params: T.any(::Stripe::V2::Core::AccountLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountLink)
}
Expand All @@ -57527,16 +57501,12 @@ module Stripe
module Core
class AccountTokenService < StripeService
# Creates an Account Token.
#
# ** raises RateLimitError
sig {
params(params: T.any(::Stripe::V2::Core::AccountTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountToken)
}
def create(params = {}, opts = {}); end

# Retrieves an Account Token.
#
# ** raises RateLimitError
sig {
params(id: String, params: T.any(::Stripe::V2::Core::AccountTokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountToken)
}
Expand Down
2 changes: 0 additions & 2 deletions rbi/stripe/services/v2/core/account_link_service.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ module Stripe
module Core
class AccountLinkService < StripeService
# Creates an AccountLink object that includes a single-use URL that an account can use to access a Stripe-hosted flow for collecting or updating required information.
#
# ** raises RateLimitError
sig {
params(params: T.any(::Stripe::V2::Core::AccountLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountLink)
}
Expand Down
10 changes: 0 additions & 10 deletions rbi/stripe/services/v2/core/account_service.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,30 @@ module Stripe
attr_reader :persons
attr_reader :person_tokens
# Removes access to the Account and its associated resources. Closed Accounts can no longer be operated on, but limited information can still be retrieved through the API in order to be able to track their history.
#
# ** raises RateLimitError
sig {
params(id: String, params: T.any(::Stripe::V2::Core::AccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
}
def close(id, params = {}, opts = {}); end

# An Account is a representation of a company, individual or other entity that a user interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient.
#
# ** raises RateLimitError
sig {
params(params: T.any(::Stripe::V2::Core::AccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
}
def create(params = {}, opts = {}); end

# Returns a list of Accounts.
#
# ** raises RateLimitError
sig {
params(params: T.any(::Stripe::V2::Core::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject)
}
def list(params = {}, opts = {}); end

# Retrieves the details of an Account.
#
# ** raises RateLimitError
sig {
params(id: String, params: T.any(::Stripe::V2::Core::AccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
}
def retrieve(id, params = {}, opts = {}); end

# Updates the details of an Account.
#
# ** raises RateLimitError
sig {
params(id: String, params: T.any(::Stripe::V2::Core::AccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
}
Expand Down
4 changes: 0 additions & 4 deletions rbi/stripe/services/v2/core/account_token_service.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@ module Stripe
module Core
class AccountTokenService < StripeService
# Creates an Account Token.
#
# ** raises RateLimitError
sig {
params(params: T.any(::Stripe::V2::Core::AccountTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountToken)
}
def create(params = {}, opts = {}); end

# Retrieves an Account Token.
#
# ** raises RateLimitError
sig {
params(id: String, params: T.any(::Stripe::V2::Core::AccountTokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountToken)
}
Expand Down
10 changes: 0 additions & 10 deletions rbi/stripe/services/v2/core/accounts/person_service.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,30 @@ module Stripe
module Accounts
class PersonService < StripeService
# Create a Person. Adds an individual to an Account's identity. You can set relationship attributes and identity information at creation.
#
# ** raises RateLimitError
sig {
params(account_id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPerson)
}
def create(account_id, params = {}, opts = {}); end

# Delete a Person associated with an Account.
#
# ** raises RateLimitError
sig {
params(account_id: String, id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::DeletedObject)
}
def delete(account_id, id, params = {}, opts = {}); end

# Returns a paginated list of Persons associated with an Account.
#
# ** raises RateLimitError
sig {
params(account_id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject)
}
def list(account_id, params = {}, opts = {}); end

# Retrieves a Person associated with an Account.
#
# ** raises RateLimitError
sig {
params(account_id: String, id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPerson)
}
def retrieve(account_id, id, params = {}, opts = {}); end

# Updates a Person associated with an Account.
#
# ** raises RateLimitError
sig {
params(account_id: String, id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPerson)
}
Expand Down
Loading