Skip to content

Commit

Permalink
Adding in missing get_list
Browse files Browse the repository at this point in the history
  • Loading branch information
phayes committed Oct 28, 2021
1 parent 97cae19 commit bc9b0eb
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/resources/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,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_list("/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/application_fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl ApplicationFee {
client: &Client,
params: ListApplicationFees<'_>,
) -> Response<List<ApplicationFee>> {
client.get_query("/application_fees", &params)
client.get_list("/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/balance_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl BalanceTransaction {
client: &Client,
params: ListBalanceTransactions<'_>,
) -> Response<List<BalanceTransaction>> {
client.get_query("/balance_transactions", &params)
client.get_list("/balance_transactions", &params)
}

/// Retrieves the balance transaction with the given ID.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/charge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,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_list("/charges", &params)
}

/// To charge a credit card or other payment source, you create a `Charge` object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/coupon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,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_list("/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/customer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,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_list("/customers", &params)
}

/// Creates a new customer object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/dispute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,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_list("/disputes", &params)
}

/// Retrieves the dispute with the given ID.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl File {
///
/// The files are returned sorted by creation date, with the most recently created files appearing first.
pub fn list(client: &Client, params: ListFiles<'_>) -> Response<List<File>> {
client.get_query("/files", &params)
client.get_list("/files", &params)
}

/// Retrieves the details of an existing file object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/payment_intent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl PaymentIntent {
///
/// For more details see [https://stripe.com/docs/api/payment_intents/list](https://stripe.com/docs/api/payment_intents/list).
pub fn list(client: &Client, params: ListPaymentIntents) -> Response<List<PaymentIntent>> {
client.get_query("/payment_intents", &params)
client.get_list("/payment_intents", &params)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/resources/subscription_item_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl UsageRecordSummary {
// This is a bit of a strange API since params.subscription_item needs to go into the URL,
// but the rest of the parameters (except subscription_item) need to be passed via query params.
let url = format!("/subscription_items/{}/usage_record_summaries", &id);
client.get_query(&url, &params)
client.get_list(&url, &params)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/resources/subscription_schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl SubscriptionSchedule {
client: &Client,
params: ListSubscriptionSchedules<'_>,
) -> Response<List<SubscriptionSchedule>> {
client.get_query("/subscription_schedules", &params)
client.get_list("/subscription_schedules", &params)
}

/// Creates a new subscription schedule object.
Expand Down

0 comments on commit bc9b0eb

Please sign in to comment.