Skip to content

Commit b7f503a

Browse files
Update generated code for v2152 and (#1768)
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent a992bec commit b7f503a

16 files changed

+2
-109
lines changed

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
61e410d24d6de541c86c48b265b7647c164457ee
1+
c250368ba89214c80bc8de3e4fc5d2094c5502cc

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2151
1+
v2152

lib/stripe/api_requestor.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,6 @@ def self.maybe_gc_connection_managers
853853
when "idempotency_error"
854854
IdempotencyError.new(error_data[:message], **opts)
855855
# switch cases: The beginning of the section generated from our OpenAPI spec
856-
when "rate_limit"
857-
RateLimitError.new(error_data[:message], **opts)
858856
when "temporary_session_expired"
859857
TemporarySessionExpiredError.new(error_data[:message], **opts)
860858
# switch cases: The end of the section generated from our OpenAPI spec

lib/stripe/errors.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,6 @@ class UnsupportedResponseTypeError < OAuthError
162162
end
163163

164164
# class definitions: The beginning of the section generated from our OpenAPI spec
165-
class RateLimitError < StripeError
166-
end
167-
168165
class TemporarySessionExpiredError < StripeError
169166
end
170167
# class definitions: The end of the section generated from our OpenAPI spec

lib/stripe/services/v2/core/account_link_service.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ module V2
66
module Core
77
class AccountLinkService < StripeService
88
# 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.
9-
#
10-
# ** raises RateLimitError
119
def create(params = {}, opts = {})
1210
request(
1311
method: :post,

lib/stripe/services/v2/core/account_service.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ def initialize(requestor)
1414
end
1515

1616
# 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.
17-
#
18-
# ** raises RateLimitError
1917
def close(id, params = {}, opts = {})
2018
request(
2119
method: :post,
@@ -27,8 +25,6 @@ def close(id, params = {}, opts = {})
2725
end
2826

2927
# 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.
30-
#
31-
# ** raises RateLimitError
3228
def create(params = {}, opts = {})
3329
request(
3430
method: :post,
@@ -40,8 +36,6 @@ def create(params = {}, opts = {})
4036
end
4137

4238
# Returns a list of Accounts.
43-
#
44-
# ** raises RateLimitError
4539
def list(params = {}, opts = {})
4640
request(
4741
method: :get,
@@ -53,8 +47,6 @@ def list(params = {}, opts = {})
5347
end
5448

5549
# Retrieves the details of an Account.
56-
#
57-
# ** raises RateLimitError
5850
def retrieve(id, params = {}, opts = {})
5951
request(
6052
method: :get,
@@ -66,8 +58,6 @@ def retrieve(id, params = {}, opts = {})
6658
end
6759

6860
# Updates the details of an Account.
69-
#
70-
# ** raises RateLimitError
7161
def update(id, params = {}, opts = {})
7262
request(
7363
method: :post,

lib/stripe/services/v2/core/account_token_service.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ module V2
66
module Core
77
class AccountTokenService < StripeService
88
# Creates an Account Token.
9-
#
10-
# ** raises RateLimitError
119
def create(params = {}, opts = {})
1210
request(
1311
method: :post,
@@ -19,8 +17,6 @@ def create(params = {}, opts = {})
1917
end
2018

2119
# Retrieves an Account Token.
22-
#
23-
# ** raises RateLimitError
2420
def retrieve(id, params = {}, opts = {})
2521
request(
2622
method: :get,

lib/stripe/services/v2/core/accounts/person_service.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ module Core
77
module Accounts
88
class PersonService < StripeService
99
# Create a Person. Adds an individual to an Account's identity. You can set relationship attributes and identity information at creation.
10-
#
11-
# ** raises RateLimitError
1210
def create(account_id, params = {}, opts = {})
1311
request(
1412
method: :post,
@@ -20,8 +18,6 @@ def create(account_id, params = {}, opts = {})
2018
end
2119

2220
# Delete a Person associated with an Account.
23-
#
24-
# ** raises RateLimitError
2521
def delete(account_id, id, params = {}, opts = {})
2622
request(
2723
method: :delete,
@@ -33,8 +29,6 @@ def delete(account_id, id, params = {}, opts = {})
3329
end
3430

3531
# Returns a paginated list of Persons associated with an Account.
36-
#
37-
# ** raises RateLimitError
3832
def list(account_id, params = {}, opts = {})
3933
request(
4034
method: :get,
@@ -46,8 +40,6 @@ def list(account_id, params = {}, opts = {})
4640
end
4741

4842
# Retrieves a Person associated with an Account.
49-
#
50-
# ** raises RateLimitError
5143
def retrieve(account_id, id, params = {}, opts = {})
5244
request(
5345
method: :get,
@@ -59,8 +51,6 @@ def retrieve(account_id, id, params = {}, opts = {})
5951
end
6052

6153
# Updates a Person associated with an Account.
62-
#
63-
# ** raises RateLimitError
6454
def update(account_id, id, params = {}, opts = {})
6555
request(
6656
method: :post,

lib/stripe/services/v2/core/accounts/person_token_service.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ module Core
77
module Accounts
88
class PersonTokenService < StripeService
99
# Creates a Person Token associated with an Account.
10-
#
11-
# ** raises RateLimitError
1210
def create(account_id, params = {}, opts = {})
1311
request(
1412
method: :post,
@@ -20,8 +18,6 @@ def create(account_id, params = {}, opts = {})
2018
end
2119

2220
# Retrieves a Person Token associated with an Account.
23-
#
24-
# ** raises RateLimitError
2521
def retrieve(account_id, id, params = {}, opts = {})
2622
request(
2723
method: :get,

rbi/stripe.rbi

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -57387,40 +57387,30 @@ module Stripe
5738757387
attr_reader :persons
5738857388
attr_reader :person_tokens
5738957389
# 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.
57390-
#
57391-
# ** raises RateLimitError
5739257390
sig {
5739357391
params(id: String, params: T.any(::Stripe::V2::Core::AccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
5739457392
}
5739557393
def close(id, params = {}, opts = {}); end
5739657394

5739757395
# 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.
57398-
#
57399-
# ** raises RateLimitError
5740057396
sig {
5740157397
params(params: T.any(::Stripe::V2::Core::AccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
5740257398
}
5740357399
def create(params = {}, opts = {}); end
5740457400

5740557401
# Returns a list of Accounts.
57406-
#
57407-
# ** raises RateLimitError
5740857402
sig {
5740957403
params(params: T.any(::Stripe::V2::Core::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject)
5741057404
}
5741157405
def list(params = {}, opts = {}); end
5741257406

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

5742157413
# Updates the details of an Account.
57422-
#
57423-
# ** raises RateLimitError
5742457414
sig {
5742557415
params(id: String, params: T.any(::Stripe::V2::Core::AccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
5742657416
}
@@ -57436,40 +57426,30 @@ module Stripe
5743657426
module Accounts
5743757427
class PersonService < StripeService
5743857428
# Create a Person. Adds an individual to an Account's identity. You can set relationship attributes and identity information at creation.
57439-
#
57440-
# ** raises RateLimitError
5744157429
sig {
5744257430
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)
5744357431
}
5744457432
def create(account_id, params = {}, opts = {}); end
5744557433

5744657434
# Delete a Person associated with an Account.
57447-
#
57448-
# ** raises RateLimitError
5744957435
sig {
5745057436
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)
5745157437
}
5745257438
def delete(account_id, id, params = {}, opts = {}); end
5745357439

5745457440
# Returns a paginated list of Persons associated with an Account.
57455-
#
57456-
# ** raises RateLimitError
5745757441
sig {
5745857442
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)
5745957443
}
5746057444
def list(account_id, params = {}, opts = {}); end
5746157445

5746257446
# Retrieves a Person associated with an Account.
57463-
#
57464-
# ** raises RateLimitError
5746557447
sig {
5746657448
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)
5746757449
}
5746857450
def retrieve(account_id, id, params = {}, opts = {}); end
5746957451

5747057452
# Updates a Person associated with an Account.
57471-
#
57472-
# ** raises RateLimitError
5747357453
sig {
5747457454
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)
5747557455
}
@@ -57486,16 +57466,12 @@ module Stripe
5748657466
module Accounts
5748757467
class PersonTokenService < StripeService
5748857468
# Creates a Person Token associated with an Account.
57489-
#
57490-
# ** raises RateLimitError
5749157469
sig {
5749257470
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)
5749357471
}
5749457472
def create(account_id, params = {}, opts = {}); end
5749557473

5749657474
# Retrieves a Person Token associated with an Account.
57497-
#
57498-
# ** raises RateLimitError
5749957475
sig {
5750057476
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)
5750157477
}
@@ -57511,8 +57487,6 @@ module Stripe
5751157487
module Core
5751257488
class AccountLinkService < StripeService
5751357489
# 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.
57514-
#
57515-
# ** raises RateLimitError
5751657490
sig {
5751757491
params(params: T.any(::Stripe::V2::Core::AccountLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountLink)
5751857492
}
@@ -57527,16 +57501,12 @@ module Stripe
5752757501
module Core
5752857502
class AccountTokenService < StripeService
5752957503
# Creates an Account Token.
57530-
#
57531-
# ** raises RateLimitError
5753257504
sig {
5753357505
params(params: T.any(::Stripe::V2::Core::AccountTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountToken)
5753457506
}
5753557507
def create(params = {}, opts = {}); end
5753657508

5753757509
# Retrieves an Account Token.
57538-
#
57539-
# ** raises RateLimitError
5754057510
sig {
5754157511
params(id: String, params: T.any(::Stripe::V2::Core::AccountTokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountToken)
5754257512
}

0 commit comments

Comments
 (0)