Skip to content

Commit

Permalink
Update generated code for v1412
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Dec 16, 2024
1 parent 97c7a37 commit 325c688
Show file tree
Hide file tree
Showing 104 changed files with 205 additions and 215 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1411
v1412
4 changes: 2 additions & 2 deletions lib/stripe/resources/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ def delete(params = {}, opts = {})
end

# 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.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/accounts", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/accounts", params: params, opts: opts)
end

# 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.
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/account_notice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class LinkedObjects < Stripe::StripeObject
attr_reader :sent_at

# Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/account_notices", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/account_notices", params: params, opts: opts)
end

# Updates an AccountNotice object.
Expand Down
9 changes: 2 additions & 7 deletions lib/stripe/resources/apple_pay_domain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,8 @@ def delete(params = {}, opts = {})
end

# List apple pay domains.
def self.list(filters = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/apple_pay/domains",
params: filters,
opts: opts
)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/apple_pay/domains", params: params, opts: opts)
end

def self.resource_url
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/application_fee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class FeeSource < Stripe::StripeObject
attr_reader :refunds

# 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.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/application_fees", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/application_fees", params: params, opts: opts)
end
end
end
4 changes: 2 additions & 2 deletions lib/stripe/resources/apps/secret.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def self.find(params = {}, opts = {})
end

# List all secrets stored on the given scope.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/apps/secrets", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/apps/secrets", params: params, opts: opts)
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/balance_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ class FeeDetail < Stripe::StripeObject
# 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.
#
# Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
def self.list(filters = {}, opts = {})
def self.list(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/balance_transactions",
params: filters,
params: params,
opts: opts
)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/resources/bank_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def delete(params = {}, opts = {})
)
end

def self.list(filters = {}, opts = {})
def self.list(params = {}, opts = {})
raise NotImplementedError,
"Bank accounts cannot be listed without a customer ID or an " \
"account ID. List bank accounts using " \
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/billing/alert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def self.deactivate(id, params = {}, opts = {})
end

# Lists billing active and inactive alerts
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/billing/alerts", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/billing/alerts", params: params, opts: opts)
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/billing/credit_balance_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ class CreditsApplied < Stripe::StripeObject
attr_reader :type

# Retrieve a list of credit balance transactions.
def self.list(filters = {}, opts = {})
def self.list(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/billing/credit_balance_transactions",
params: filters,
params: params,
opts: opts
)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/billing/credit_grant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ def self.expire(id, params = {}, opts = {})
end

# Retrieve a list of credit grants.
def self.list(filters = {}, opts = {})
def self.list(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/billing/credit_grants",
params: filters,
params: params,
opts: opts
)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/billing/meter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def self.deactivate(id, params = {}, opts = {})
end

# Retrieve a list of billing meters.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/billing/meters", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/billing/meters", params: params, opts: opts)
end

# When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/billing_portal/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ def self.create(params = {}, opts = {})
end

# Returns a list of configurations that describe the functionality of the customer portal.
def self.list(filters = {}, opts = {})
def self.list(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/billing_portal/configurations",
params: filters,
params: params,
opts: opts
)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/capital/financing_offer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ class OfferedTerms < Stripe::StripeObject
attr_reader :type

# Retrieves the financing offers available for Connected accounts that belong to your platform.
def self.list(filters = {}, opts = {})
def self.list(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/capital/financing_offers",
params: filters,
params: params,
opts: opts
)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/capital/financing_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ class Transaction < Stripe::StripeObject

# Returns a list of financing transactions. The transactions are returned in sorted order,
# with the most recent transactions appearing first.
def self.list(filters = {}, opts = {})
def self.list(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/capital/financing_transactions",
params: filters,
params: params,
opts: opts
)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/resources/card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def delete(params = {}, opts = {})
)
end

def self.list(filters = {}, opts = {})
def self.list(params = {}, opts = {})
raise NotImplementedError,
"Cards cannot be listed without a customer ID or an account " \
"ID. List cards using `Customer.list_sources(" \
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/charge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ def self.create(params = {}, opts = {})
end

# Returns a list of charges you've previously created. The charges are returned in sorted order, with the most recent charges appearing first.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/charges", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/charges", params: params, opts: opts)
end

def self.search(params = {}, opts = {})
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/checkout/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -558,11 +558,11 @@ def self.expire(session, params = {}, opts = {})
end

# Returns a list of Checkout Sessions.
def self.list(filters = {}, opts = {})
def self.list(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/checkout/sessions",
params: filters,
params: params,
opts: opts
)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/climate/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def self.create(params = {}, opts = {})

# Lists all Climate order objects. The orders are returned sorted by creation date, with the
# most recently created orders appearing first.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/climate/orders", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/climate/orders", params: params, opts: opts)
end

# Updates the specified order by setting the values of the parameters passed.
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/climate/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ class CurrentPricesPerMetricTon < Stripe::StripeObject
attr_reader :suppliers

# Lists all available Climate product objects.
def self.list(filters = {}, opts = {})
def self.list(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/climate/products",
params: filters,
params: params,
opts: opts
)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/climate/supplier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ class Location < Stripe::StripeObject
attr_reader :removal_pathway

# Lists all available Climate supplier objects.
def self.list(filters = {}, opts = {})
def self.list(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/climate/suppliers",
params: filters,
params: params,
opts: opts
)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/country_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class Individual < Stripe::StripeObject
attr_reader :verification_fields

# Lists all Country Spec objects available in the API.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/country_specs", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/country_specs", params: params, opts: opts)
end
end
end
4 changes: 2 additions & 2 deletions lib/stripe/resources/coupon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def delete(params = {}, opts = {})
end

# Returns a list of your coupons.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/coupons", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/coupons", params: params, opts: opts)
end

# Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable.
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/credit_note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def self.create(params = {}, opts = {})
end

# Returns a list of credit notes.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/credit_notes", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/credit_notes", params: params, opts: opts)
end

# When retrieving a credit note preview, you'll get a lines property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items.
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/customer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ def self.delete_discount(customer, params = {}, opts = {})
end

# Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/customers", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/customers", params: params, opts: opts)
end

# Returns a list of PaymentMethods for a given Customer
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/dispute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ def self.close(dispute, params = {}, opts = {})
end

# Returns a list of your disputes.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/disputes", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/disputes", params: params, opts: opts)
end

# When you get a dispute, contacting your customer is always the best first step. If that doesn't work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your [dashboard](https://dashboard.stripe.com/disputes), but if you prefer, you can use the API to submit evidence programmatically.
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/entitlements/active_entitlement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ def self.object_name
attr_reader :object

# Retrieve a list of active entitlements for a customer
def self.list(filters = {}, opts = {})
def self.list(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/entitlements/active_entitlements",
params: filters,
params: params,
opts: opts
)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/entitlements/feature.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ def self.create(params = {}, opts = {})
end

# Retrieve a list of features
def self.list(filters = {}, opts = {})
def self.list(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/entitlements/features",
params: filters,
params: params,
opts: opts
)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ class Request < Stripe::StripeObject
attr_reader :type

# List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/events", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/events", params: params, opts: opts)
end
end
end
4 changes: 2 additions & 2 deletions lib/stripe/resources/exchange_rate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def self.object_name
attr_reader :rates

# Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/exchange_rates", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/exchange_rates", params: params, opts: opts)
end
end
end
4 changes: 2 additions & 2 deletions lib/stripe/resources/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def self.create(params = {}, opts = {})
end

# Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/files", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/files", params: params, opts: opts)
end

# This resource can have two different object names. In latter API
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/file_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def self.create(params = {}, opts = {})
end

# Returns a list of file links.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/file_links", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/file_links", params: params, opts: opts)
end

# Updates an existing file link object. Expired links can no longer be updated.
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/financial_connections/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ def self.disconnect(account, params = {}, opts = {})
end

# Returns a list of Financial Connections Account objects.
def self.list(filters = {}, opts = {})
def self.list(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/financial_connections/accounts",
params: filters,
params: params,
opts: opts
)
end
Expand Down
Loading

0 comments on commit 325c688

Please sign in to comment.