Skip to content

Commit d2c09c3

Browse files
Update generated code (#1500)
* Update generated code for v1399 * Update generated code for v1409 * Update generated code for v1412 * Update generated code for v1412 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: jar-stripe <jar@stripe.com>
1 parent 8aec85f commit d2c09c3

File tree

100 files changed

+206
-217
lines changed

Some content is hidden

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

100 files changed

+206
-217
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1347
1+
v1412

lib/stripe/api_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
module Stripe
55
module ApiVersion
6-
CURRENT = "2024-11-20.acacia"
6+
CURRENT = "2024-12-18.acacia"
77
end
88
end

lib/stripe/resources/account.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def delete(params = {}, opts = {})
7777
end
7878

7979
# Returns a list of accounts connected to your platform via [Connect](https://stripe.com/docs/connect). If you're not a platform, the list is empty.
80-
def self.list(filters = {}, opts = {})
81-
request_stripe_object(method: :get, path: "/v1/accounts", params: filters, opts: opts)
80+
def self.list(params = {}, opts = {})
81+
request_stripe_object(method: :get, path: "/v1/accounts", params: params, opts: opts)
8282
end
8383

8484
# Returns a list of people associated with the account's legal entity. The people are returned sorted by creation date, with the most recent people appearing first.

lib/stripe/resources/apple_pay_domain.rb

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,8 @@ def delete(params = {}, opts = {})
4444
end
4545

4646
# List apple pay domains.
47-
def self.list(filters = {}, opts = {})
48-
request_stripe_object(
49-
method: :get,
50-
path: "/v1/apple_pay/domains",
51-
params: filters,
52-
opts: opts
53-
)
47+
def self.list(params = {}, opts = {})
48+
request_stripe_object(method: :get, path: "/v1/apple_pay/domains", params: params, opts: opts)
5449
end
5550

5651
def self.resource_url

lib/stripe/resources/application_fee.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def self.object_name
1414
nested_resource_class_methods :refund, operations: %i[create retrieve update list]
1515

1616
# Returns a list of application fees you've previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.
17-
def self.list(filters = {}, opts = {})
18-
request_stripe_object(method: :get, path: "/v1/application_fees", params: filters, opts: opts)
17+
def self.list(params = {}, opts = {})
18+
request_stripe_object(method: :get, path: "/v1/application_fees", params: params, opts: opts)
1919
end
2020
end
2121
end

lib/stripe/resources/apps/secret.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def self.find(params = {}, opts = {})
4747
end
4848

4949
# List all secrets stored on the given scope.
50-
def self.list(filters = {}, opts = {})
51-
request_stripe_object(method: :get, path: "/v1/apps/secrets", params: filters, opts: opts)
50+
def self.list(params = {}, opts = {})
51+
request_stripe_object(method: :get, path: "/v1/apps/secrets", params: params, opts: opts)
5252
end
5353
end
5454
end

lib/stripe/resources/balance_transaction.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ def self.object_name
1717
# Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.
1818
#
1919
# Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
20-
def self.list(filters = {}, opts = {})
20+
def self.list(params = {}, opts = {})
2121
request_stripe_object(
2222
method: :get,
2323
path: "/v1/balance_transactions",
24-
params: filters,
24+
params: params,
2525
opts: opts
2626
)
2727
end

lib/stripe/resources/bank_account.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def delete(params = {}, opts = {})
8181
)
8282
end
8383

84-
def self.list(filters = {}, opts = {})
84+
def self.list(params = {}, opts = {})
8585
raise NotImplementedError,
8686
"Bank accounts cannot be listed without a customer ID or an " \
8787
"account ID. List bank accounts using " \

lib/stripe/resources/billing/alert.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def self.deactivate(id, params = {}, opts = {})
7979
end
8080

8181
# Lists billing active and inactive alerts
82-
def self.list(filters = {}, opts = {})
83-
request_stripe_object(method: :get, path: "/v1/billing/alerts", params: filters, opts: opts)
82+
def self.list(params = {}, opts = {})
83+
request_stripe_object(method: :get, path: "/v1/billing/alerts", params: params, opts: opts)
8484
end
8585
end
8686
end

lib/stripe/resources/billing/credit_balance_transaction.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ def self.object_name
1212
"billing.credit_balance_transaction"
1313
end
1414

15-
# Retrieve a list of credit balance transactions
16-
def self.list(filters = {}, opts = {})
15+
# Retrieve a list of credit balance transactions.
16+
def self.list(params = {}, opts = {})
1717
request_stripe_object(
1818
method: :get,
1919
path: "/v1/billing/credit_balance_transactions",
20-
params: filters,
20+
params: params,
2121
opts: opts
2222
)
2323
end

0 commit comments

Comments
 (0)