Skip to content

Commit

Permalink
fix: Remove useless reference that causes clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiesler committed Apr 26, 2024
1 parent a94ffb4 commit 2fca98b
Show file tree
Hide file tree
Showing 46 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion openapi/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ pub fn gen_impl_requests(
let query_path = segments.join("/");
writedoc!(&mut out, r#"
pub fn list(client: &Client, params: &{params_name}<'_>) -> Response<List<{rust_struct}>> {{
client.get_query("/{query_path}", &params)
client.get_query("/{query_path}", params)
}}
"#).unwrap();
methods.insert(MethodTypes::List, out);
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl Account {
///
/// If you’re not a platform, the list is empty.
pub fn list(client: &Client, params: &ListAccounts<'_>) -> Response<List<Account>> {
client.get_query("/accounts", &params)
client.get_query("/accounts", params)
}

/// With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/application_fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl ApplicationFee {
client: &Client,
params: &ListApplicationFees<'_>,
) -> Response<List<ApplicationFee>> {
client.get_query("/application_fees", &params)
client.get_query("/application_fees", params)
}

/// Retrieves the details of an application fee that your account has collected.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/balance_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl BalanceTransaction {
client: &Client,
params: &ListBalanceTransactions<'_>,
) -> Response<List<BalanceTransaction>> {
client.get_query("/balance_transactions", &params)
client.get_query("/balance_transactions", params)
}

/// Retrieves the balance transaction with the given ID.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/charge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ impl Charge {
///
/// The charges are returned in sorted order, with the most recent charges appearing first.
pub fn list(client: &Client, params: &ListCharges<'_>) -> Response<List<Charge>> {
client.get_query("/charges", &params)
client.get_query("/charges", params)
}

/// This method is no longer recommended—use the [Payment Intents API](https://stripe.com/docs/api/payment_intents)
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/checkout_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ impl CheckoutSession {
client: &Client,
params: &ListCheckoutSessions<'_>,
) -> Response<List<CheckoutSession>> {
client.get_query("/checkout/sessions", &params)
client.get_query("/checkout/sessions", params)
}

/// Creates a Session object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/country_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl CountrySpec {

/// Lists all Country Spec objects available in the API.
pub fn list(client: &Client, params: &ListCountrySpecs<'_>) -> Response<List<CountrySpec>> {
client.get_query("/country_specs", &params)
client.get_query("/country_specs", params)
}


Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/coupon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub struct Coupon {
impl Coupon {
/// Returns a list of your coupons.
pub fn list(client: &Client, params: &ListCoupons<'_>) -> Response<List<Coupon>> {
client.get_query("/coupons", &params)
client.get_query("/coupons", params)
}

/// You can create coupons easily via the [coupon management](https://dashboard.stripe.com/coupons) page of the Stripe dashboard.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/credit_note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ pub struct CreditNote {
impl CreditNote {
/// Returns a list of credit notes.
pub fn list(client: &Client, params: &ListCreditNotes<'_>) -> Response<List<CreditNote>> {
client.get_query("/credit_notes", &params)
client.get_query("/credit_notes", params)
}

/// Issue a credit note to adjust the amount of a finalized invoice.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/customer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl Customer {
///
/// The customers are returned sorted by creation date, with the most recent customers appearing first.
pub fn list(client: &Client, params: &ListCustomers<'_>) -> Response<List<Customer>> {
client.get_query("/customers", &params)
client.get_query("/customers", params)
}

/// Creates a new customer object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/dispute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub struct Dispute {
impl Dispute {
/// Returns a list of your disputes.
pub fn list(client: &Client, params: &ListDisputes<'_>) -> Response<List<Dispute>> {
client.get_query("/disputes", &params)
client.get_query("/disputes", params)
}

/// Retrieves the dispute with the given ID.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl Event {
///
/// Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://stripe.com/docs/api/events/object) `api_version` attribute (not according to your current Stripe API version or `Stripe-Version` header).
pub fn list(client: &Client, params: &ListEvents<'_>) -> Response<List<Event>> {
client.get_query("/events", &params)
client.get_query("/events", params)
}

/// Retrieves the details of an event.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/exchange_rate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl ExchangeRate {
///
/// Only shows the currencies for which Stripe supports.
pub fn list(client: &Client, params: &ListExchangeRates<'_>) -> Response<List<ExchangeRate>> {
client.get_query("/exchange_rates", &params)
client.get_query("/exchange_rates", params)
}


Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl File {
///
/// Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.
pub fn list(client: &Client, params: &ListFiles<'_>) -> Response<List<File>> {
client.get_query("/files", &params)
client.get_query("/files", params)
}

/// Retrieves the details of an existing file object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/file_link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub struct FileLink {
impl FileLink {
/// Returns a list of file links.
pub fn list(client: &Client, params: &ListFileLinks<'_>) -> Response<List<FileLink>> {
client.get_query("/file_links", &params)
client.get_query("/file_links", params)
}

/// Creates a new file link object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/invoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ impl Invoice {
///
/// The invoices are returned sorted by creation date, with the most recently created invoices appearing first.
pub fn list(client: &Client, params: &ListInvoices<'_>) -> Response<List<Invoice>> {
client.get_query("/invoices", &params)
client.get_query("/invoices", params)
}

/// This endpoint creates a draft invoice for a given customer.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/invoiceitem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl InvoiceItem {
///
/// Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first.
pub fn list(client: &Client, params: &ListInvoiceItems<'_>) -> Response<List<InvoiceItem>> {
client.get_query("/invoiceitems", &params)
client.get_query("/invoiceitems", params)
}

/// Creates an item to be added to a draft invoice (up to 250 items per invoice).
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/payment_intent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ pub struct PaymentIntent {
impl PaymentIntent {
/// Returns a list of PaymentIntents.
pub fn list(client: &Client, params: &ListPaymentIntents<'_>) -> Response<List<PaymentIntent>> {
client.get_query("/payment_intents", &params)
client.get_query("/payment_intents", params)
}

/// Creates a PaymentIntent object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/payment_link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub struct PaymentLink {
impl PaymentLink {
/// Returns a list of your payment links.
pub fn list(client: &Client, params: &ListPaymentLinks<'_>) -> Response<List<PaymentLink>> {
client.get_query("/payment_links", &params)
client.get_query("/payment_links", params)
}

/// Creates a payment link.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/payment_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl PaymentMethod {
///
/// 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.
pub fn list(client: &Client, params: &ListPaymentMethods<'_>) -> Response<List<PaymentMethod>> {
client.get_query("/payment_methods", &params)
client.get_query("/payment_methods", params)
}

/// Creates a PaymentMethod object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/payment_method_configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl PaymentMethodConfiguration {

/// List payment method configurations.
pub fn list(client: &Client, params: &ListPaymentMethodConfigurations<'_>) -> Response<List<PaymentMethodConfiguration>> {
client.get_query("/payment_method_configurations", &params)
client.get_query("/payment_method_configurations", params)
}


Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/payment_method_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl PaymentMethodDomain {

/// Lists the details of existing payment method domains.
pub fn list(client: &Client, params: &ListPaymentMethodDomains<'_>) -> Response<List<PaymentMethodDomain>> {
client.get_query("/payment_method_domains", &params)
client.get_query("/payment_method_domains", params)
}


Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/payout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl Payout {
///
/// The payouts return in sorted order, with the most recently created payouts appearing first.
pub fn list(client: &Client, params: &ListPayouts<'_>) -> Response<List<Payout>> {
client.get_query("/payouts", &params)
client.get_query("/payouts", params)
}

/// To send funds to your own bank account, create a new payout object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pub struct Plan {
impl Plan {
/// Returns a list of your plans.
pub fn list(client: &Client, params: &ListPlans<'_>) -> Response<List<Plan>> {
client.get_query("/plans", &params)
client.get_query("/plans", params)
}

/// Retrieves the plan with the given ID.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/price.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl Price {
///
/// For the list of inactive prices, set `active` to false.
pub fn list(client: &Client, params: &ListPrices<'_>) -> Response<List<Price>> {
client.get_query("/prices", &params)
client.get_query("/prices", params)
}

/// Creates a new price for an existing product.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/product.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl Product {
///
/// The products are returned sorted by creation date, with the most recently created products appearing first.
pub fn list(client: &Client, params: &ListProducts<'_>) -> Response<List<Product>> {
client.get_query("/products", &params)
client.get_query("/products", params)
}

/// Creates a new product object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/promotion_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub struct PromotionCode {
impl PromotionCode {
/// Returns a list of your promotion codes.
pub fn list(client: &Client, params: &ListPromotionCodes<'_>) -> Response<List<PromotionCode>> {
client.get_query("/promotion_codes", &params)
client.get_query("/promotion_codes", params)
}

/// Retrieves the promotion code with the given ID.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/quote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ pub struct Quote {
impl Quote {
/// Returns a list of your quotes.
pub fn list(client: &Client, params: &ListQuotes<'_>) -> Response<List<Quote>> {
client.get_query("/quotes", &params)
client.get_query("/quotes", params)
}

/// Retrieves the quote with the given ID.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/refund.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Refund {
///
/// 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.
pub fn list(client: &Client, params: &ListRefunds<'_>) -> Response<List<Refund>> {
client.get_query("/refunds", &params)
client.get_query("/refunds", params)
}

/// When you create a new refund, you must specify a Charge or a PaymentIntent object on which to create it.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/review.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl Review {
///
/// The objects are sorted in descending order by creation date, with the most recently created object appearing first.
pub fn list(client: &Client, params: &ListReviews<'_>) -> Response<List<Review>> {
client.get_query("/reviews", &params)
client.get_query("/reviews", params)
}

/// Retrieves a `Review` object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/setup_attempt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub struct SetupAttempt {
impl SetupAttempt {
/// Returns a list of SetupAttempts that associate with a provided SetupIntent.
pub fn list(client: &Client, params: &ListSetupAttempts<'_>) -> Response<List<SetupAttempt>> {
client.get_query("/setup_attempts", &params)
client.get_query("/setup_attempts", params)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/setup_intent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub struct SetupIntent {
impl SetupIntent {
/// Returns a list of SetupIntents.
pub fn list(client: &Client, params: &ListSetupIntents<'_>) -> Response<List<SetupIntent>> {
client.get_query("/setup_intents", &params)
client.get_query("/setup_intents", params)
}

/// Creates a SetupIntent object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/shipping_rate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub struct ShippingRate {
impl ShippingRate {
/// Returns a list of your shipping rates.
pub fn list(client: &Client, params: &ListShippingRates<'_>) -> Response<List<ShippingRate>> {
client.get_query("/shipping_rates", &params)
client.get_query("/shipping_rates", params)
}

/// Creates a new shipping rate object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ pub struct Source {
impl Source {
/// List source transactions for a given source.
pub fn list(client: &Client, params: &ListSources<'_>) -> Response<List<Source>> {
client.get_query("/sources/{source}/source_transactions", &params)
client.get_query("/sources/{source}/source_transactions", params)
}

/// Creates a new source object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl Subscription {
///
/// In order to list canceled subscriptions, specify `status=canceled`.
pub fn list(client: &Client, params: &ListSubscriptions<'_>) -> Response<List<Subscription>> {
client.get_query("/subscriptions", &params)
client.get_query("/subscriptions", params)
}

/// Creates a new subscription on an existing customer.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/subscription_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl SubscriptionItem {
client: &Client,
params: &ListSubscriptionItems<'_>,
) -> Response<List<SubscriptionItem>> {
client.get_query("/subscription_items", &params)
client.get_query("/subscription_items", params)
}

/// Adds a new item to an existing subscription.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/subscription_schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl SubscriptionSchedule {
client: &Client,
params: &ListSubscriptionSchedules<'_>,
) -> Response<List<SubscriptionSchedule>> {
client.get_query("/subscription_schedules", &params)
client.get_query("/subscription_schedules", params)
}

/// Creates a new subscription schedule object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/tax_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct TaxCode {
impl TaxCode {
/// 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.
pub fn list(client: &Client, params: &ListTaxCodes<'_>) -> Response<List<TaxCode>> {
client.get_query("/tax_codes", &params)
client.get_query("/tax_codes", params)
}

/// Retrieves the details of an existing tax code.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/tax_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub struct TaxId {
impl TaxId {
/// Returns a list of tax IDs.
pub fn list(client: &Client, params: &ListTaxIds<'_>) -> Response<List<TaxId>> {
client.get_query("/tax_ids", &params)
client.get_query("/tax_ids", params)
}

/// Creates a new account or customer `tax_id` object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/tax_rate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl TaxRate {
///
/// Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first.
pub fn list(client: &Client, params: &ListTaxRates<'_>) -> Response<List<TaxRate>> {
client.get_query("/tax_rates", &params)
client.get_query("/tax_rates", params)
}

/// Creates a new tax rate.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/terminal_configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl TerminalConfiguration {
client: &Client,
params: &ListTerminalConfigurations<'_>,
) -> Response<List<TerminalConfiguration>> {
client.get_query("/terminal/configurations", &params)
client.get_query("/terminal/configurations", params)
}

/// Creates a new `Configuration` object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/terminal_location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl TerminalLocation {
client: &Client,
params: &ListTerminalLocations<'_>,
) -> Response<List<TerminalLocation>> {
client.get_query("/terminal/locations", &params)
client.get_query("/terminal/locations", params)
}

/// Creates a new `Location` object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/terminal_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl TerminalReader {
client: &Client,
params: &ListTerminalReaders<'_>,
) -> Response<List<TerminalReader>> {
client.get_query("/terminal/readers", &params)
client.get_query("/terminal/readers", params)
}

/// Creates a new `Reader` object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/topup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub struct Topup {
impl Topup {
/// Returns a list of top-ups.
pub fn list(client: &Client, params: &ListTopups<'_>) -> Response<List<Topup>> {
client.get_query("/topups", &params)
client.get_query("/topups", params)
}

/// Retrieves the details of a top-up that has previously been created.
Expand Down
Loading

0 comments on commit 2fca98b

Please sign in to comment.