From 4c94e5f9101c14bfc5c6989d11ea6c855c809f0b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 14 Sep 2019 14:19:01 -0400 Subject: update openapi spec --- src/apis/months_api.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/apis/months_api.rs') diff --git a/src/apis/months_api.rs b/src/apis/months_api.rs index 3bee3fe..48d586b 100644 --- a/src/apis/months_api.rs +++ b/src/apis/months_api.rs @@ -13,7 +13,7 @@ use std::borrow::Borrow; use reqwest; -use super::{Error, configuration, urlencode}; +use super::{Error, configuration}; pub struct MonthsApiClient { configuration: Rc, @@ -28,16 +28,16 @@ impl MonthsApiClient { } pub trait MonthsApi { - fn get_budget_month(&self, budget_id: &str, month: String) -> Result<::models::MonthDetailResponse, Error>; - fn get_budget_months(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<::models::MonthSummariesResponse, Error>; + fn get_budget_month(&self, budget_id: &str, month: String) -> Result; + fn get_budget_months(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result; } impl MonthsApi for MonthsApiClient { - fn get_budget_month(&self, budget_id: &str, month: String) -> Result<::models::MonthDetailResponse, Error> { + fn get_budget_month(&self, budget_id: &str, month: String) -> Result { let configuration: &configuration::Configuration = self.configuration.borrow(); let client = &configuration.client; - let uri_str = format!("{}/budgets/{budget_id}/months/{month}", configuration.base_path, budget_id=urlencode(budget_id), month=month); + let uri_str = format!("{}/budgets/{budget_id}/months/{month}", configuration.base_path, budget_id=crate::apis::urlencode(budget_id), month=month); let mut req_builder = client.get(uri_str.as_str()); if let Some(ref user_agent) = configuration.user_agent { @@ -58,11 +58,11 @@ impl MonthsApi for MonthsApiClient { Ok(client.execute(req)?.error_for_status()?.json()?) } - fn get_budget_months(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<::models::MonthSummariesResponse, Error> { + fn get_budget_months(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result { let configuration: &configuration::Configuration = self.configuration.borrow(); let client = &configuration.client; - let uri_str = format!("{}/budgets/{budget_id}/months", configuration.base_path, budget_id=urlencode(budget_id)); + let uri_str = format!("{}/budgets/{budget_id}/months", configuration.base_path, budget_id=crate::apis::urlencode(budget_id)); let mut req_builder = client.get(uri_str.as_str()); req_builder = req_builder.query(&[("last_knowledge_of_server", &last_knowledge_of_server.to_string())]); -- cgit v1.2.3-54-g00ecf