diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e41215744..bf0daa66a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1411 \ No newline at end of file +v1412 \ No newline at end of file diff --git a/lib/stripe/resources/account.rb b/lib/stripe/resources/account.rb index ada96dfee..f5608906e 100644 --- a/lib/stripe/resources/account.rb +++ b/lib/stripe/resources/account.rb @@ -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. diff --git a/lib/stripe/resources/account_notice.rb b/lib/stripe/resources/account_notice.rb index fe9061dd7..2b7b0324d 100644 --- a/lib/stripe/resources/account_notice.rb +++ b/lib/stripe/resources/account_notice.rb @@ -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. diff --git a/lib/stripe/resources/apple_pay_domain.rb b/lib/stripe/resources/apple_pay_domain.rb index 72e69dc1a..269825d33 100644 --- a/lib/stripe/resources/apple_pay_domain.rb +++ b/lib/stripe/resources/apple_pay_domain.rb @@ -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 diff --git a/lib/stripe/resources/application_fee.rb b/lib/stripe/resources/application_fee.rb index 1aeb9b833..cce00b42c 100644 --- a/lib/stripe/resources/application_fee.rb +++ b/lib/stripe/resources/application_fee.rb @@ -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 diff --git a/lib/stripe/resources/apps/secret.rb b/lib/stripe/resources/apps/secret.rb index 22c3c44fe..d0e99da1c 100644 --- a/lib/stripe/resources/apps/secret.rb +++ b/lib/stripe/resources/apps/secret.rb @@ -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 diff --git a/lib/stripe/resources/balance_transaction.rb b/lib/stripe/resources/balance_transaction.rb index ab3659ebc..8c5f93c60 100644 --- a/lib/stripe/resources/balance_transaction.rb +++ b/lib/stripe/resources/balance_transaction.rb @@ -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 diff --git a/lib/stripe/resources/bank_account.rb b/lib/stripe/resources/bank_account.rb index 180b1d218..7fa4daf75 100644 --- a/lib/stripe/resources/bank_account.rb +++ b/lib/stripe/resources/bank_account.rb @@ -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 " \ diff --git a/lib/stripe/resources/billing/alert.rb b/lib/stripe/resources/billing/alert.rb index e2e9a8b67..f16c7e13c 100644 --- a/lib/stripe/resources/billing/alert.rb +++ b/lib/stripe/resources/billing/alert.rb @@ -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 diff --git a/lib/stripe/resources/billing/credit_balance_transaction.rb b/lib/stripe/resources/billing/credit_balance_transaction.rb index ba740b821..9cf1d949a 100644 --- a/lib/stripe/resources/billing/credit_balance_transaction.rb +++ b/lib/stripe/resources/billing/credit_balance_transaction.rb @@ -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 diff --git a/lib/stripe/resources/billing/credit_grant.rb b/lib/stripe/resources/billing/credit_grant.rb index 19c831c36..80015efad 100644 --- a/lib/stripe/resources/billing/credit_grant.rb +++ b/lib/stripe/resources/billing/credit_grant.rb @@ -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 diff --git a/lib/stripe/resources/billing/meter.rb b/lib/stripe/resources/billing/meter.rb index 3a96a0013..b96d468a5 100644 --- a/lib/stripe/resources/billing/meter.rb +++ b/lib/stripe/resources/billing/meter.rb @@ -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. diff --git a/lib/stripe/resources/billing_portal/configuration.rb b/lib/stripe/resources/billing_portal/configuration.rb index 486fdcd23..12edd1dcf 100644 --- a/lib/stripe/resources/billing_portal/configuration.rb +++ b/lib/stripe/resources/billing_portal/configuration.rb @@ -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 diff --git a/lib/stripe/resources/capital/financing_offer.rb b/lib/stripe/resources/capital/financing_offer.rb index 28c5dee5c..adb7b8118 100644 --- a/lib/stripe/resources/capital/financing_offer.rb +++ b/lib/stripe/resources/capital/financing_offer.rb @@ -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 diff --git a/lib/stripe/resources/capital/financing_transaction.rb b/lib/stripe/resources/capital/financing_transaction.rb index 77a156cc4..f9ba76518 100644 --- a/lib/stripe/resources/capital/financing_transaction.rb +++ b/lib/stripe/resources/capital/financing_transaction.rb @@ -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 diff --git a/lib/stripe/resources/card.rb b/lib/stripe/resources/card.rb index 12e5ad8bb..df4f3805b 100644 --- a/lib/stripe/resources/card.rb +++ b/lib/stripe/resources/card.rb @@ -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(" \ diff --git a/lib/stripe/resources/charge.rb b/lib/stripe/resources/charge.rb index f1b512489..db021b883 100644 --- a/lib/stripe/resources/charge.rb +++ b/lib/stripe/resources/charge.rb @@ -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 = {}) diff --git a/lib/stripe/resources/checkout/session.rb b/lib/stripe/resources/checkout/session.rb index f33418237..9b5813dcf 100644 --- a/lib/stripe/resources/checkout/session.rb +++ b/lib/stripe/resources/checkout/session.rb @@ -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 diff --git a/lib/stripe/resources/climate/order.rb b/lib/stripe/resources/climate/order.rb index 3962cba81..a317a59e6 100644 --- a/lib/stripe/resources/climate/order.rb +++ b/lib/stripe/resources/climate/order.rb @@ -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. diff --git a/lib/stripe/resources/climate/product.rb b/lib/stripe/resources/climate/product.rb index e47af3f01..069f9a25a 100644 --- a/lib/stripe/resources/climate/product.rb +++ b/lib/stripe/resources/climate/product.rb @@ -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 diff --git a/lib/stripe/resources/climate/supplier.rb b/lib/stripe/resources/climate/supplier.rb index f48fdb10b..ad1dabd05 100644 --- a/lib/stripe/resources/climate/supplier.rb +++ b/lib/stripe/resources/climate/supplier.rb @@ -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 diff --git a/lib/stripe/resources/country_spec.rb b/lib/stripe/resources/country_spec.rb index 9b4aebadd..fefd143d7 100644 --- a/lib/stripe/resources/country_spec.rb +++ b/lib/stripe/resources/country_spec.rb @@ -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 diff --git a/lib/stripe/resources/coupon.rb b/lib/stripe/resources/coupon.rb index bef8d6eda..c118e8acd 100644 --- a/lib/stripe/resources/coupon.rb +++ b/lib/stripe/resources/coupon.rb @@ -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. diff --git a/lib/stripe/resources/credit_note.rb b/lib/stripe/resources/credit_note.rb index b2d1067b0..3e8d3c5c1 100644 --- a/lib/stripe/resources/credit_note.rb +++ b/lib/stripe/resources/credit_note.rb @@ -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. diff --git a/lib/stripe/resources/customer.rb b/lib/stripe/resources/customer.rb index 5cb98dde4..d9f1a16e7 100644 --- a/lib/stripe/resources/customer.rb +++ b/lib/stripe/resources/customer.rb @@ -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 diff --git a/lib/stripe/resources/dispute.rb b/lib/stripe/resources/dispute.rb index 2bfc63802..1e26ed0c3 100644 --- a/lib/stripe/resources/dispute.rb +++ b/lib/stripe/resources/dispute.rb @@ -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. diff --git a/lib/stripe/resources/entitlements/active_entitlement.rb b/lib/stripe/resources/entitlements/active_entitlement.rb index 76dd2e814..c8627ecd6 100644 --- a/lib/stripe/resources/entitlements/active_entitlement.rb +++ b/lib/stripe/resources/entitlements/active_entitlement.rb @@ -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 diff --git a/lib/stripe/resources/entitlements/feature.rb b/lib/stripe/resources/entitlements/feature.rb index 818f93eda..4238b0361 100644 --- a/lib/stripe/resources/entitlements/feature.rb +++ b/lib/stripe/resources/entitlements/feature.rb @@ -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 diff --git a/lib/stripe/resources/event.rb b/lib/stripe/resources/event.rb index 881dd9a7e..3034e487c 100644 --- a/lib/stripe/resources/event.rb +++ b/lib/stripe/resources/event.rb @@ -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 diff --git a/lib/stripe/resources/exchange_rate.rb b/lib/stripe/resources/exchange_rate.rb index cf00aa263..66185d82b 100644 --- a/lib/stripe/resources/exchange_rate.rb +++ b/lib/stripe/resources/exchange_rate.rb @@ -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 diff --git a/lib/stripe/resources/file.rb b/lib/stripe/resources/file.rb index 0f490f61a..4992db6c8 100644 --- a/lib/stripe/resources/file.rb +++ b/lib/stripe/resources/file.rb @@ -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 diff --git a/lib/stripe/resources/file_link.rb b/lib/stripe/resources/file_link.rb index 52b89a9c1..5e689f3fc 100644 --- a/lib/stripe/resources/file_link.rb +++ b/lib/stripe/resources/file_link.rb @@ -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. diff --git a/lib/stripe/resources/financial_connections/account.rb b/lib/stripe/resources/financial_connections/account.rb index ecd842c08..3b0608f18 100644 --- a/lib/stripe/resources/financial_connections/account.rb +++ b/lib/stripe/resources/financial_connections/account.rb @@ -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 diff --git a/lib/stripe/resources/financial_connections/institution.rb b/lib/stripe/resources/financial_connections/institution.rb index 8bf8f0b03..5432ec320 100644 --- a/lib/stripe/resources/financial_connections/institution.rb +++ b/lib/stripe/resources/financial_connections/institution.rb @@ -48,11 +48,11 @@ class Transactions < Stripe::StripeObject attr_reader :url # Returns a list of Financial Connections Institution objects. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/financial_connections/institutions", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/financial_connections/transaction.rb b/lib/stripe/resources/financial_connections/transaction.rb index 1bf15f3cb..bebac6d4f 100644 --- a/lib/stripe/resources/financial_connections/transaction.rb +++ b/lib/stripe/resources/financial_connections/transaction.rb @@ -41,11 +41,11 @@ class StatusTransitions < Stripe::StripeObject attr_reader :updated # Returns a list of Financial Connections Transaction objects. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/financial_connections/transactions", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/forwarding/request.rb b/lib/stripe/resources/forwarding/request.rb index c66e94fdc..da71c975f 100644 --- a/lib/stripe/resources/forwarding/request.rb +++ b/lib/stripe/resources/forwarding/request.rb @@ -79,11 +79,11 @@ def self.create(params = {}, opts = {}) end # Lists all ForwardingRequest objects. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/forwarding/requests", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/gift_cards/card.rb b/lib/stripe/resources/gift_cards/card.rb index b8fd8e4cd..6de6e9c2f 100644 --- a/lib/stripe/resources/gift_cards/card.rb +++ b/lib/stripe/resources/gift_cards/card.rb @@ -63,11 +63,11 @@ def self.create(params = {}, opts = {}) end # List gift cards for an account - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/gift_cards/cards", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/gift_cards/transaction.rb b/lib/stripe/resources/gift_cards/transaction.rb index 88b538ce2..ffde53df6 100644 --- a/lib/stripe/resources/gift_cards/transaction.rb +++ b/lib/stripe/resources/gift_cards/transaction.rb @@ -109,11 +109,11 @@ def self.create(params = {}, opts = {}) end # List gift card transactions for a gift card - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/gift_cards/transactions", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/identity/verification_report.rb b/lib/stripe/resources/identity/verification_report.rb index 37f4a6a73..f87515e2a 100644 --- a/lib/stripe/resources/identity/verification_report.rb +++ b/lib/stripe/resources/identity/verification_report.rb @@ -115,11 +115,11 @@ class Error < Stripe::StripeObject attr_reader :verification_session # List all verification reports. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/identity/verification_reports", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/identity/verification_session.rb b/lib/stripe/resources/identity/verification_session.rb index dc8ce7ece..6d0563ca6 100644 --- a/lib/stripe/resources/identity/verification_session.rb +++ b/lib/stripe/resources/identity/verification_session.rb @@ -141,11 +141,11 @@ def self.create(params = {}, opts = {}) end # Returns a list of VerificationSessions - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/identity/verification_sessions", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/invoice.rb b/lib/stripe/resources/invoice.rb index 70c715bb5..3845ee419 100644 --- a/lib/stripe/resources/invoice.rb +++ b/lib/stripe/resources/invoice.rb @@ -549,8 +549,8 @@ def self.finalize_invoice(invoice, params = {}, opts = {}) end # You can list all invoices, or list the invoices for a specific customer. The invoices are returned sorted by creation date, with the most recently created invoices appearing first. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/invoices", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/invoices", params: params, opts: opts) end # When retrieving an upcoming invoice, you'll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. diff --git a/lib/stripe/resources/invoice_item.rb b/lib/stripe/resources/invoice_item.rb index 156c10f52..58644091f 100644 --- a/lib/stripe/resources/invoice_item.rb +++ b/lib/stripe/resources/invoice_item.rb @@ -104,8 +104,8 @@ def delete(params = {}, opts = {}) end # Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/invoiceitems", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/invoiceitems", params: params, opts: opts) end # Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it's attached to is closed. diff --git a/lib/stripe/resources/invoice_rendering_template.rb b/lib/stripe/resources/invoice_rendering_template.rb index 9f033c1a3..45c782694 100644 --- a/lib/stripe/resources/invoice_rendering_template.rb +++ b/lib/stripe/resources/invoice_rendering_template.rb @@ -50,11 +50,11 @@ def self.archive(template, params = {}, opts = {}) end # List all templates, ordered by creation date, with the most recently created template appearing first. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/invoice_rendering_templates", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/issuing/authorization.rb b/lib/stripe/resources/issuing/authorization.rb index 7d3d01242..0e5fc9215 100644 --- a/lib/stripe/resources/issuing/authorization.rb +++ b/lib/stripe/resources/issuing/authorization.rb @@ -202,11 +202,11 @@ class << self end # Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/issuing/authorizations", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/issuing/card.rb b/lib/stripe/resources/issuing/card.rb index aa8cd2bd0..131622a7c 100644 --- a/lib/stripe/resources/issuing/card.rb +++ b/lib/stripe/resources/issuing/card.rb @@ -106,8 +106,8 @@ def self.create(params = {}, opts = {}) end # Returns a list of Issuing Card 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/issuing/cards", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/issuing/cards", params: params, opts: opts) end # Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. diff --git a/lib/stripe/resources/issuing/cardholder.rb b/lib/stripe/resources/issuing/cardholder.rb index ac9a686d2..45edbae33 100644 --- a/lib/stripe/resources/issuing/cardholder.rb +++ b/lib/stripe/resources/issuing/cardholder.rb @@ -103,11 +103,11 @@ def self.create(params = {}, opts = {}) end # Returns a list of Issuing Cardholder objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/issuing/cardholders", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/issuing/credit_underwriting_record.rb b/lib/stripe/resources/issuing/credit_underwriting_record.rb index d5f51d632..3b6c879fe 100644 --- a/lib/stripe/resources/issuing/credit_underwriting_record.rb +++ b/lib/stripe/resources/issuing/credit_underwriting_record.rb @@ -112,11 +112,11 @@ def self.create_from_proactive_review(params = {}, opts = {}) end # Retrieves a list of CreditUnderwritingRecord objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/issuing/credit_underwriting_records", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/issuing/dispute.rb b/lib/stripe/resources/issuing/dispute.rb index fc2cf4e2f..a5fbf3a88 100644 --- a/lib/stripe/resources/issuing/dispute.rb +++ b/lib/stripe/resources/issuing/dispute.rb @@ -92,11 +92,11 @@ def self.create(params = {}, opts = {}) end # Returns a list of Issuing Dispute objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/issuing/disputes", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/issuing/dispute_settlement_detail.rb b/lib/stripe/resources/issuing/dispute_settlement_detail.rb index c94ed93cd..0ca55005e 100644 --- a/lib/stripe/resources/issuing/dispute_settlement_detail.rb +++ b/lib/stripe/resources/issuing/dispute_settlement_detail.rb @@ -36,11 +36,11 @@ def self.object_name attr_reader :settlement # Returns a list of Issuing DisputeSettlementDetail objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/issuing/dispute_settlement_details", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/issuing/fraud_liability_debit.rb b/lib/stripe/resources/issuing/fraud_liability_debit.rb index 19872b9fb..b5671ba94 100644 --- a/lib/stripe/resources/issuing/fraud_liability_debit.rb +++ b/lib/stripe/resources/issuing/fraud_liability_debit.rb @@ -30,11 +30,11 @@ def self.object_name attr_reader :object # Returns a list of Issuing FraudLiabilityDebit objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/issuing/fraud_liability_debits", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/issuing/personalization_design.rb b/lib/stripe/resources/issuing/personalization_design.rb index 06387b16d..8a31ff369 100644 --- a/lib/stripe/resources/issuing/personalization_design.rb +++ b/lib/stripe/resources/issuing/personalization_design.rb @@ -63,11 +63,11 @@ def self.create(params = {}, opts = {}) end # Returns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/issuing/personalization_designs", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/issuing/physical_bundle.rb b/lib/stripe/resources/issuing/physical_bundle.rb index 2914698ba..109e85fee 100644 --- a/lib/stripe/resources/issuing/physical_bundle.rb +++ b/lib/stripe/resources/issuing/physical_bundle.rb @@ -31,11 +31,11 @@ class Features < Stripe::StripeObject attr_reader :type # Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/issuing/physical_bundles", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/issuing/token.rb b/lib/stripe/resources/issuing/token.rb index 22d116c94..d89046e8f 100644 --- a/lib/stripe/resources/issuing/token.rb +++ b/lib/stripe/resources/issuing/token.rb @@ -60,8 +60,8 @@ class CardholderAddress < Stripe::StripeObject attr_reader :wallet_provider # Lists all Issuing Token objects for a given card. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/issuing/tokens", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/issuing/tokens", params: params, opts: opts) end # Attempts to update the specified Issuing Token object to the status specified. diff --git a/lib/stripe/resources/issuing/transaction.rb b/lib/stripe/resources/issuing/transaction.rb index f59cbefc8..ebdfa31c4 100644 --- a/lib/stripe/resources/issuing/transaction.rb +++ b/lib/stripe/resources/issuing/transaction.rb @@ -124,11 +124,11 @@ class Treasury < Stripe::StripeObject attr_reader :wallet # Returns a list of Issuing Transaction objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/issuing/transactions", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/margin.rb b/lib/stripe/resources/margin.rb index 3724a5b7d..15c09ab57 100644 --- a/lib/stripe/resources/margin.rb +++ b/lib/stripe/resources/margin.rb @@ -39,8 +39,8 @@ def self.create(params = {}, opts = {}) end # Retrieve a list of your margins. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/billing/margins", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/billing/margins", params: params, opts: opts) end # Update the specified margin object. Certain fields of the margin object are not editable. diff --git a/lib/stripe/resources/order.rb b/lib/stripe/resources/order.rb index fad2e9ec0..8c0d45ede 100644 --- a/lib/stripe/resources/order.rb +++ b/lib/stripe/resources/order.rb @@ -245,8 +245,8 @@ def self.create(params = {}, opts = {}) end # Returns a list of your orders. 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/orders", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/orders", params: params, opts: opts) end # When retrieving an order, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. diff --git a/lib/stripe/resources/payment_attempt_record.rb b/lib/stripe/resources/payment_attempt_record.rb index 7b5bf5829..4775e7559 100644 --- a/lib/stripe/resources/payment_attempt_record.rb +++ b/lib/stripe/resources/payment_attempt_record.rb @@ -88,11 +88,11 @@ class Address < Stripe::StripeObject attr_reader :shipping_details # List all the Payment Attempt Records attached to the specified Payment Record. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/payment_attempt_records", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/payment_intent.rb b/lib/stripe/resources/payment_intent.rb index 8c158afc7..512ffeb87 100644 --- a/lib/stripe/resources/payment_intent.rb +++ b/lib/stripe/resources/payment_intent.rb @@ -941,8 +941,8 @@ def self.increment_authorization(intent, params = {}, opts = {}) end # Returns a list of PaymentIntents. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/payment_intents", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/payment_intents", params: params, opts: opts) end def self.search(params = {}, opts = {}) diff --git a/lib/stripe/resources/payment_link.rb b/lib/stripe/resources/payment_link.rb index b01ba8e39..95b093c64 100644 --- a/lib/stripe/resources/payment_link.rb +++ b/lib/stripe/resources/payment_link.rb @@ -221,8 +221,8 @@ def self.create(params = {}, opts = {}) end # Returns a list of your payment links. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/payment_links", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/payment_links", params: params, opts: opts) end # When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. diff --git a/lib/stripe/resources/payment_method.rb b/lib/stripe/resources/payment_method.rb index 4f47f1a86..8beb1f89d 100644 --- a/lib/stripe/resources/payment_method.rb +++ b/lib/stripe/resources/payment_method.rb @@ -457,8 +457,8 @@ def self.detach(payment_method, params = {}, opts = {}) end # Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list) API instead. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/payment_methods", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/payment_methods", params: params, opts: opts) end # Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. diff --git a/lib/stripe/resources/payment_method_configuration.rb b/lib/stripe/resources/payment_method_configuration.rb index fece78419..c8d6adebb 100644 --- a/lib/stripe/resources/payment_method_configuration.rb +++ b/lib/stripe/resources/payment_method_configuration.rb @@ -467,11 +467,11 @@ def self.create(params = {}, opts = {}) end # List payment method configurations - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/payment_method_configurations", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/payment_method_domain.rb b/lib/stripe/resources/payment_method_domain.rb index 5e16e18fd..6df3a2298 100644 --- a/lib/stripe/resources/payment_method_domain.rb +++ b/lib/stripe/resources/payment_method_domain.rb @@ -84,11 +84,11 @@ def self.create(params = {}, opts = {}) end # Lists the details of existing payment method domains. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/payment_method_domains", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/payout.rb b/lib/stripe/resources/payout.rb index dc6220842..4ca0a8aa9 100644 --- a/lib/stripe/resources/payout.rb +++ b/lib/stripe/resources/payout.rb @@ -106,8 +106,8 @@ def self.create(params = {}, opts = {}) end # Returns a list of existing payouts sent to third-party bank accounts or payouts that Stripe sent to you. The payouts return in sorted order, with the most recently created payouts appearing first. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/payouts", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/payouts", params: params, opts: opts) end # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. diff --git a/lib/stripe/resources/plan.rb b/lib/stripe/resources/plan.rb index c55fdceb1..5a511b26c 100644 --- a/lib/stripe/resources/plan.rb +++ b/lib/stripe/resources/plan.rb @@ -99,8 +99,8 @@ def delete(params = {}, opts = {}) end # Returns a list of your plans. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/plans", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/plans", params: params, opts: opts) end # Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan's ID, amount, currency, or billing cycle. diff --git a/lib/stripe/resources/price.rb b/lib/stripe/resources/price.rb index 2a10a85bd..c6b771cd6 100644 --- a/lib/stripe/resources/price.rb +++ b/lib/stripe/resources/price.rb @@ -102,8 +102,8 @@ def self.create(params = {}, opts = {}) end # Returns a list of your active prices, excluding [inline prices](https://stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/prices", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/prices", params: params, opts: opts) end def self.search(params = {}, opts = {}) diff --git a/lib/stripe/resources/product.rb b/lib/stripe/resources/product.rb index 85379e215..49e7400a6 100644 --- a/lib/stripe/resources/product.rb +++ b/lib/stripe/resources/product.rb @@ -111,8 +111,8 @@ def delete(params = {}, opts = {}) end # Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/products", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/products", params: params, opts: opts) end def self.search(params = {}, opts = {}) diff --git a/lib/stripe/resources/promotion_code.rb b/lib/stripe/resources/promotion_code.rb index 1339b7eb5..0a4059b60 100644 --- a/lib/stripe/resources/promotion_code.rb +++ b/lib/stripe/resources/promotion_code.rb @@ -55,8 +55,8 @@ def self.create(params = {}, opts = {}) end # Returns a list of your promotion codes. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/promotion_codes", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/promotion_codes", params: params, opts: opts) end # Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable. diff --git a/lib/stripe/resources/quote.rb b/lib/stripe/resources/quote.rb index a0844890d..644f26439 100644 --- a/lib/stripe/resources/quote.rb +++ b/lib/stripe/resources/quote.rb @@ -336,8 +336,8 @@ def self.finalize_quote(quote, params = {}, opts = {}) end # Returns a list of your quotes. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/quotes", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/quotes", params: params, opts: opts) end # When retrieving a quote, there is an includable [computed.upfront.line_items](https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items) property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items. diff --git a/lib/stripe/resources/radar/early_fraud_warning.rb b/lib/stripe/resources/radar/early_fraud_warning.rb index 04f91876b..d8179b712 100644 --- a/lib/stripe/resources/radar/early_fraud_warning.rb +++ b/lib/stripe/resources/radar/early_fraud_warning.rb @@ -33,11 +33,11 @@ def self.object_name attr_reader :payment_intent # Returns a list of early fraud warnings. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/radar/early_fraud_warnings", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/radar/value_list.rb b/lib/stripe/resources/radar/value_list.rb index bfe3302be..b3d851434 100644 --- a/lib/stripe/resources/radar/value_list.rb +++ b/lib/stripe/resources/radar/value_list.rb @@ -71,11 +71,11 @@ def delete(params = {}, opts = {}) end # Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/radar/value_lists", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/radar/value_list_item.rb b/lib/stripe/resources/radar/value_list_item.rb index e2871b7b3..ad0f3f050 100644 --- a/lib/stripe/resources/radar/value_list_item.rb +++ b/lib/stripe/resources/radar/value_list_item.rb @@ -64,11 +64,11 @@ def delete(params = {}, opts = {}) end # Returns a list of ValueListItem objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/radar/value_list_items", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/refund.rb b/lib/stripe/resources/refund.rb index 8e5e64856..0690f677d 100644 --- a/lib/stripe/resources/refund.rb +++ b/lib/stripe/resources/refund.rb @@ -187,8 +187,8 @@ def self.create(params = {}, opts = {}) end # Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first. The 10 most recent refunds are always available by default on the Charge object. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/refunds", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/refunds", params: params, opts: opts) end # Updates the refund that you specify by setting the values of the passed parameters. Any parameters that you don't provide remain unchanged. diff --git a/lib/stripe/resources/reporting/report_run.rb b/lib/stripe/resources/reporting/report_run.rb index b69c60b29..2107ed9cc 100644 --- a/lib/stripe/resources/reporting/report_run.rb +++ b/lib/stripe/resources/reporting/report_run.rb @@ -60,11 +60,11 @@ def self.create(params = {}, opts = {}) end # Returns a list of Report Runs, with the most recent appearing first. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/reporting/report_runs", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/reporting/report_type.rb b/lib/stripe/resources/reporting/report_type.rb index 65e2a9de2..66015ce00 100644 --- a/lib/stripe/resources/reporting/report_type.rb +++ b/lib/stripe/resources/reporting/report_type.rb @@ -39,11 +39,11 @@ def self.object_name attr_reader :version # Returns a full list of Report Types. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/reporting/report_types", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/review.rb b/lib/stripe/resources/review.rb index 239cad633..4f31f8ed4 100644 --- a/lib/stripe/resources/review.rb +++ b/lib/stripe/resources/review.rb @@ -71,8 +71,8 @@ def self.approve(review, params = {}, opts = {}) end # Returns a list of Review objects that have open set to true. 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/reviews", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/reviews", params: params, opts: opts) end end end diff --git a/lib/stripe/resources/setup_attempt.rb b/lib/stripe/resources/setup_attempt.rb index 53dd6e2bf..c42382893 100644 --- a/lib/stripe/resources/setup_attempt.rb +++ b/lib/stripe/resources/setup_attempt.rb @@ -116,8 +116,8 @@ class SetupError < Stripe::StripeObject attr_reader :usage # Returns a list of SetupAttempts that associate with a provided SetupIntent. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/setup_attempts", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/setup_attempts", params: params, opts: opts) end end end diff --git a/lib/stripe/resources/setup_intent.rb b/lib/stripe/resources/setup_intent.rb index 9bad042b4..79189edd3 100644 --- a/lib/stripe/resources/setup_intent.rb +++ b/lib/stripe/resources/setup_intent.rb @@ -270,8 +270,8 @@ def self.create(params = {}, opts = {}) end # Returns a list of SetupIntents. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/setup_intents", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/setup_intents", params: params, opts: opts) end # Updates a SetupIntent object. diff --git a/lib/stripe/resources/shipping_rate.rb b/lib/stripe/resources/shipping_rate.rb index d3d42f641..9d0b485b8 100644 --- a/lib/stripe/resources/shipping_rate.rb +++ b/lib/stripe/resources/shipping_rate.rb @@ -62,8 +62,8 @@ def self.create(params = {}, opts = {}) end # Returns a list of your shipping rates. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/shipping_rates", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/shipping_rates", params: params, opts: opts) end # Updates an existing shipping rate object. diff --git a/lib/stripe/resources/sigma/scheduled_query_run.rb b/lib/stripe/resources/sigma/scheduled_query_run.rb index 08cdacc6a..83c734101 100644 --- a/lib/stripe/resources/sigma/scheduled_query_run.rb +++ b/lib/stripe/resources/sigma/scheduled_query_run.rb @@ -42,11 +42,11 @@ class Error < Stripe::StripeObject attr_reader :title # Returns a list of scheduled query runs. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/sigma/scheduled_query_runs", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/subscription.rb b/lib/stripe/resources/subscription.rb index c883c940e..5c53ca63c 100644 --- a/lib/stripe/resources/subscription.rb +++ b/lib/stripe/resources/subscription.rb @@ -290,8 +290,8 @@ def self.delete_discount(subscription_exposed_id, params = {}, opts = {}) end # By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/subscriptions", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/subscriptions", params: params, opts: opts) end # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. diff --git a/lib/stripe/resources/subscription_item.rb b/lib/stripe/resources/subscription_item.rb index 053b0f159..96550033b 100644 --- a/lib/stripe/resources/subscription_item.rb +++ b/lib/stripe/resources/subscription_item.rb @@ -98,11 +98,11 @@ def delete(params = {}, opts = {}) end # Returns a list of your subscription items for a given subscription. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/subscription_items", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/subscription_schedule.rb b/lib/stripe/resources/subscription_schedule.rb index 5139ed7ae..4a570400e 100644 --- a/lib/stripe/resources/subscription_schedule.rb +++ b/lib/stripe/resources/subscription_schedule.rb @@ -219,11 +219,11 @@ def self.create(params = {}, opts = {}) end # Retrieves the list of your subscription schedules. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/subscription_schedules", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/tax/form.rb b/lib/stripe/resources/tax/form.rb index e519aff9f..937d783cf 100644 --- a/lib/stripe/resources/tax/form.rb +++ b/lib/stripe/resources/tax/form.rb @@ -90,8 +90,8 @@ class Us1099Nec < Stripe::StripeObject attr_reader :us_1099_nec # Returns a list of tax forms which were previously created. The tax forms are returned in sorted order, with the oldest tax forms appearing first. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/tax/forms", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/tax/forms", params: params, opts: opts) end # Download the PDF for a tax form. diff --git a/lib/stripe/resources/tax/registration.rb b/lib/stripe/resources/tax/registration.rb index 2e3cfddac..e3ff04817 100644 --- a/lib/stripe/resources/tax/registration.rb +++ b/lib/stripe/resources/tax/registration.rb @@ -492,11 +492,11 @@ def self.create(params = {}, opts = {}) end # Returns a list of Tax Registration objects. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/tax/registrations", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/tax_code.rb b/lib/stripe/resources/tax_code.rb index f8fcee6f6..acec3dcb6 100644 --- a/lib/stripe/resources/tax_code.rb +++ b/lib/stripe/resources/tax_code.rb @@ -21,8 +21,8 @@ def self.object_name attr_reader :object # A list of [all tax codes available](https://stripe.com/docs/tax/tax-categories) to add to Products in order to allow specific tax calculations. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/tax_codes", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/tax_codes", params: params, opts: opts) end end end diff --git a/lib/stripe/resources/tax_id.rb b/lib/stripe/resources/tax_id.rb index d72b63f62..cd78ae69f 100644 --- a/lib/stripe/resources/tax_id.rb +++ b/lib/stripe/resources/tax_id.rb @@ -72,8 +72,8 @@ def delete(params = {}, opts = {}) end # Returns a list of tax IDs. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/tax_ids", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/tax_ids", params: params, opts: opts) end end end diff --git a/lib/stripe/resources/tax_rate.rb b/lib/stripe/resources/tax_rate.rb index 6fbcbe304..c4365423f 100644 --- a/lib/stripe/resources/tax_rate.rb +++ b/lib/stripe/resources/tax_rate.rb @@ -63,8 +63,8 @@ def self.create(params = {}, opts = {}) end # Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/tax_rates", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/tax_rates", params: params, opts: opts) end # Updates an existing tax rate. diff --git a/lib/stripe/resources/terminal/configuration.rb b/lib/stripe/resources/terminal/configuration.rb index 1788977a8..a98359d19 100644 --- a/lib/stripe/resources/terminal/configuration.rb +++ b/lib/stripe/resources/terminal/configuration.rb @@ -153,11 +153,11 @@ def delete(params = {}, opts = {}) end # Returns a list of Configuration objects. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/terminal/configurations", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/terminal/location.rb b/lib/stripe/resources/terminal/location.rb index b6645ab85..d5824c716 100644 --- a/lib/stripe/resources/terminal/location.rb +++ b/lib/stripe/resources/terminal/location.rb @@ -69,11 +69,11 @@ def delete(params = {}, opts = {}) end # Returns a list of Location objects. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/terminal/locations", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/terminal/reader.rb b/lib/stripe/resources/terminal/reader.rb index fc6d5e0e4..981aa8c71 100644 --- a/lib/stripe/resources/terminal/reader.rb +++ b/lib/stripe/resources/terminal/reader.rb @@ -246,11 +246,11 @@ def delete(params = {}, opts = {}) end # Returns a list of Reader objects. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/terminal/readers", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/test_helpers/test_clock.rb b/lib/stripe/resources/test_helpers/test_clock.rb index 267261301..c020c4530 100644 --- a/lib/stripe/resources/test_helpers/test_clock.rb +++ b/lib/stripe/resources/test_helpers/test_clock.rb @@ -94,11 +94,11 @@ def delete(params = {}, opts = {}) end # Returns a list of your test clocks. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/test_helpers/test_clocks", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/topup.rb b/lib/stripe/resources/topup.rb index b3366fb3a..dd58dcb50 100644 --- a/lib/stripe/resources/topup.rb +++ b/lib/stripe/resources/topup.rb @@ -76,8 +76,8 @@ def self.create(params = {}, opts = {}) end # Returns a list of top-ups. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/topups", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/topups", params: params, opts: opts) end # Updates the metadata of a top-up. Other top-up details are not editable by design. diff --git a/lib/stripe/resources/transfer.rb b/lib/stripe/resources/transfer.rb index 2473544fa..5940dc20c 100644 --- a/lib/stripe/resources/transfer.rb +++ b/lib/stripe/resources/transfer.rb @@ -66,8 +66,8 @@ def self.create(params = {}, opts = {}) end # Returns a list of existing transfers sent to connected accounts. The transfers are returned in sorted order, with the most recently created transfers appearing first. - def self.list(filters = {}, opts = {}) - request_stripe_object(method: :get, path: "/v1/transfers", params: filters, opts: opts) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/transfers", params: params, opts: opts) end # Updates the specified transfer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. diff --git a/lib/stripe/resources/treasury/credit_reversal.rb b/lib/stripe/resources/treasury/credit_reversal.rb index c16a48a7b..f0c09f07e 100644 --- a/lib/stripe/resources/treasury/credit_reversal.rb +++ b/lib/stripe/resources/treasury/credit_reversal.rb @@ -56,11 +56,11 @@ def self.create(params = {}, opts = {}) end # Returns a list of CreditReversals. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/treasury/credit_reversals", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/treasury/debit_reversal.rb b/lib/stripe/resources/treasury/debit_reversal.rb index 394f649e1..e1c82a58c 100644 --- a/lib/stripe/resources/treasury/debit_reversal.rb +++ b/lib/stripe/resources/treasury/debit_reversal.rb @@ -62,11 +62,11 @@ def self.create(params = {}, opts = {}) end # Returns a list of DebitReversals. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/treasury/debit_reversals", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/treasury/financial_account.rb b/lib/stripe/resources/treasury/financial_account.rb index 9e1ba838a..18eabd667 100644 --- a/lib/stripe/resources/treasury/financial_account.rb +++ b/lib/stripe/resources/treasury/financial_account.rb @@ -83,11 +83,11 @@ def self.create(params = {}, opts = {}) end # Returns a list of FinancialAccounts. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/treasury/financial_accounts", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/treasury/inbound_transfer.rb b/lib/stripe/resources/treasury/inbound_transfer.rb index 8053b926c..3f94429a5 100644 --- a/lib/stripe/resources/treasury/inbound_transfer.rb +++ b/lib/stripe/resources/treasury/inbound_transfer.rb @@ -112,11 +112,11 @@ def self.create(params = {}, opts = {}) end # Returns a list of InboundTransfers sent from the specified FinancialAccount. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/treasury/inbound_transfers", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/treasury/outbound_payment.rb b/lib/stripe/resources/treasury/outbound_payment.rb index 9e62d2575..ab9dc82b2 100644 --- a/lib/stripe/resources/treasury/outbound_payment.rb +++ b/lib/stripe/resources/treasury/outbound_payment.rb @@ -133,11 +133,11 @@ def self.create(params = {}, opts = {}) end # Returns a list of OutboundPayments sent from the specified FinancialAccount. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/treasury/outbound_payments", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/treasury/outbound_transfer.rb b/lib/stripe/resources/treasury/outbound_transfer.rb index 96bbc7d31..cc0f6a3bd 100644 --- a/lib/stripe/resources/treasury/outbound_transfer.rb +++ b/lib/stripe/resources/treasury/outbound_transfer.rb @@ -130,11 +130,11 @@ def self.create(params = {}, opts = {}) end # Returns a list of OutboundTransfers sent from the specified FinancialAccount. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/treasury/outbound_transfers", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/treasury/received_credit.rb b/lib/stripe/resources/treasury/received_credit.rb index fe157d2c6..99ff78eba 100644 --- a/lib/stripe/resources/treasury/received_credit.rb +++ b/lib/stripe/resources/treasury/received_credit.rb @@ -83,11 +83,11 @@ class ReversalDetails < Stripe::StripeObject attr_reader :transaction # Returns a list of ReceivedCredits. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/treasury/received_credits", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/treasury/received_debit.rb b/lib/stripe/resources/treasury/received_debit.rb index 7fb18fa1a..eaeb52fad 100644 --- a/lib/stripe/resources/treasury/received_debit.rb +++ b/lib/stripe/resources/treasury/received_debit.rb @@ -80,11 +80,11 @@ class ReversalDetails < Stripe::StripeObject attr_reader :transaction # Returns a list of ReceivedDebits. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/treasury/received_debits", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/treasury/transaction.rb b/lib/stripe/resources/treasury/transaction.rb index 5ec9f7c4d..977072507 100644 --- a/lib/stripe/resources/treasury/transaction.rb +++ b/lib/stripe/resources/treasury/transaction.rb @@ -55,11 +55,11 @@ class StatusTransitions < Stripe::StripeObject attr_reader :status_transitions # Retrieves a list of Transaction objects. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/treasury/transactions", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/treasury/transaction_entry.rb b/lib/stripe/resources/treasury/transaction_entry.rb index a5d49a33c..005e4ded9 100644 --- a/lib/stripe/resources/treasury/transaction_entry.rb +++ b/lib/stripe/resources/treasury/transaction_entry.rb @@ -47,11 +47,11 @@ class FlowDetails < Stripe::StripeObject attr_reader :type # Retrieves a list of TransactionEntry objects. - def self.list(filters = {}, opts = {}) + def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/treasury/transaction_entries", - params: filters, + params: params, opts: opts ) end diff --git a/lib/stripe/resources/webhook_endpoint.rb b/lib/stripe/resources/webhook_endpoint.rb index ae594fb04..dea3e91da 100644 --- a/lib/stripe/resources/webhook_endpoint.rb +++ b/lib/stripe/resources/webhook_endpoint.rb @@ -78,13 +78,8 @@ def delete(params = {}, opts = {}) end # Returns a list of your webhook endpoints. - def self.list(filters = {}, opts = {}) - request_stripe_object( - method: :get, - path: "/v1/webhook_endpoints", - params: filters, - opts: opts - ) + def self.list(params = {}, opts = {}) + request_stripe_object(method: :get, path: "/v1/webhook_endpoints", params: params, opts: opts) end # Updates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint.