aboutsummaryrefslogtreecommitdiffstats
path: root/src/apis
diff options
context:
space:
mode:
Diffstat (limited to 'src/apis')
-rw-r--r--src/apis/accounts_api.rs14
-rw-r--r--src/apis/budgets_api.rs18
-rw-r--r--src/apis/categories_api.rs26
-rw-r--r--src/apis/client.rs62
-rw-r--r--src/apis/deprecated_api.rs8
-rw-r--r--src/apis/mod.rs2
-rw-r--r--src/apis/months_api.rs14
-rw-r--r--src/apis/payee_locations_api.rs20
-rw-r--r--src/apis/payees_api.rs14
-rw-r--r--src/apis/scheduled_transactions_api.rs14
-rw-r--r--src/apis/transactions_api.rs50
-rw-r--r--src/apis/user_api.rs6
12 files changed, 122 insertions, 126 deletions
diff --git a/src/apis/accounts_api.rs b/src/apis/accounts_api.rs
index 616476e..b536e89 100644
--- a/src/apis/accounts_api.rs
+++ b/src/apis/accounts_api.rs
@@ -13,7 +13,7 @@ use std::borrow::Borrow;
use reqwest;
-use super::{Error, configuration, urlencode};
+use super::{Error, configuration};
pub struct AccountsApiClient {
configuration: Rc<configuration::Configuration>,
@@ -28,16 +28,16 @@ impl AccountsApiClient {
}
pub trait AccountsApi {
- fn get_account_by_id(&self, budget_id: &str, account_id: &str) -> Result<::models::AccountResponse, Error>;
- fn get_accounts(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<::models::AccountsResponse, Error>;
+ fn get_account_by_id(&self, budget_id: &str, account_id: &str) -> Result<crate::models::AccountResponse, Error>;
+ fn get_accounts(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<crate::models::AccountsResponse, Error>;
}
impl AccountsApi for AccountsApiClient {
- fn get_account_by_id(&self, budget_id: &str, account_id: &str) -> Result<::models::AccountResponse, Error> {
+ fn get_account_by_id(&self, budget_id: &str, account_id: &str) -> Result<crate::models::AccountResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/accounts/{account_id}", configuration.base_path, budget_id=urlencode(budget_id), account_id=account_id);
+ let uri_str = format!("{}/budgets/{budget_id}/accounts/{account_id}", configuration.base_path, budget_id=crate::apis::urlencode(budget_id), account_id=account_id);
let mut req_builder = client.get(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
@@ -58,11 +58,11 @@ impl AccountsApi for AccountsApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn get_accounts(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<::models::AccountsResponse, Error> {
+ fn get_accounts(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<crate::models::AccountsResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/accounts", configuration.base_path, budget_id=urlencode(budget_id));
+ let uri_str = format!("{}/budgets/{budget_id}/accounts", 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())]);
diff --git a/src/apis/budgets_api.rs b/src/apis/budgets_api.rs
index 663dc59..e1002ed 100644
--- a/src/apis/budgets_api.rs
+++ b/src/apis/budgets_api.rs
@@ -13,7 +13,7 @@ use std::borrow::Borrow;
use reqwest;
-use super::{Error, configuration, urlencode};
+use super::{Error, configuration};
pub struct BudgetsApiClient {
configuration: Rc<configuration::Configuration>,
@@ -28,17 +28,17 @@ impl BudgetsApiClient {
}
pub trait BudgetsApi {
- fn get_budget_by_id(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<::models::BudgetDetailResponse, Error>;
- fn get_budget_settings_by_id(&self, budget_id: &str) -> Result<::models::BudgetSettingsResponse, Error>;
- fn get_budgets(&self, ) -> Result<::models::BudgetSummaryResponse, Error>;
+ fn get_budget_by_id(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<crate::models::BudgetDetailResponse, Error>;
+ fn get_budget_settings_by_id(&self, budget_id: &str) -> Result<crate::models::BudgetSettingsResponse, Error>;
+ fn get_budgets(&self, ) -> Result<crate::models::BudgetSummaryResponse, Error>;
}
impl BudgetsApi for BudgetsApiClient {
- fn get_budget_by_id(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<::models::BudgetDetailResponse, Error> {
+ fn get_budget_by_id(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<crate::models::BudgetDetailResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}", configuration.base_path, budget_id=urlencode(budget_id));
+ let uri_str = format!("{}/budgets/{budget_id}", 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())]);
@@ -60,11 +60,11 @@ impl BudgetsApi for BudgetsApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn get_budget_settings_by_id(&self, budget_id: &str) -> Result<::models::BudgetSettingsResponse, Error> {
+ fn get_budget_settings_by_id(&self, budget_id: &str) -> Result<crate::models::BudgetSettingsResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/settings", configuration.base_path, budget_id=urlencode(budget_id));
+ let uri_str = format!("{}/budgets/{budget_id}/settings", configuration.base_path, budget_id=crate::apis::urlencode(budget_id));
let mut req_builder = client.get(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
@@ -85,7 +85,7 @@ impl BudgetsApi for BudgetsApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn get_budgets(&self, ) -> Result<::models::BudgetSummaryResponse, Error> {
+ fn get_budgets(&self, ) -> Result<crate::models::BudgetSummaryResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
diff --git a/src/apis/categories_api.rs b/src/apis/categories_api.rs
index 417a2d9..f57d38b 100644
--- a/src/apis/categories_api.rs
+++ b/src/apis/categories_api.rs
@@ -13,7 +13,7 @@ use std::borrow::Borrow;
use reqwest;
-use super::{Error, configuration, urlencode};
+use super::{Error, configuration};
pub struct CategoriesApiClient {
configuration: Rc<configuration::Configuration>,
@@ -28,18 +28,18 @@ impl CategoriesApiClient {
}
pub trait CategoriesApi {
- fn get_categories(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<::models::CategoriesResponse, Error>;
- fn get_category_by_id(&self, budget_id: &str, category_id: &str) -> Result<::models::CategoryResponse, Error>;
- fn get_month_category_by_id(&self, budget_id: &str, month: String, category_id: &str) -> Result<::models::CategoryResponse, Error>;
- fn update_month_category(&self, budget_id: &str, month: String, category_id: &str, data: ::models::SaveMonthCategoryWrapper) -> Result<::models::SaveCategoryResponse, Error>;
+ fn get_categories(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<crate::models::CategoriesResponse, Error>;
+ fn get_category_by_id(&self, budget_id: &str, category_id: &str) -> Result<crate::models::CategoryResponse, Error>;
+ fn get_month_category_by_id(&self, budget_id: &str, month: String, category_id: &str) -> Result<crate::models::CategoryResponse, Error>;
+ fn update_month_category(&self, budget_id: &str, month: String, category_id: &str, data: crate::models::SaveMonthCategoryWrapper) -> Result<crate::models::SaveCategoryResponse, Error>;
}
impl CategoriesApi for CategoriesApiClient {
- fn get_categories(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<::models::CategoriesResponse, Error> {
+ fn get_categories(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<crate::models::CategoriesResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/categories", configuration.base_path, budget_id=urlencode(budget_id));
+ let uri_str = format!("{}/budgets/{budget_id}/categories", 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())]);
@@ -61,11 +61,11 @@ impl CategoriesApi for CategoriesApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn get_category_by_id(&self, budget_id: &str, category_id: &str) -> Result<::models::CategoryResponse, Error> {
+ fn get_category_by_id(&self, budget_id: &str, category_id: &str) -> Result<crate::models::CategoryResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/categories/{category_id}", configuration.base_path, budget_id=urlencode(budget_id), category_id=urlencode(category_id));
+ let uri_str = format!("{}/budgets/{budget_id}/categories/{category_id}", configuration.base_path, budget_id=crate::apis::urlencode(budget_id), category_id=crate::apis::urlencode(category_id));
let mut req_builder = client.get(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
@@ -86,11 +86,11 @@ impl CategoriesApi for CategoriesApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn get_month_category_by_id(&self, budget_id: &str, month: String, category_id: &str) -> Result<::models::CategoryResponse, Error> {
+ fn get_month_category_by_id(&self, budget_id: &str, month: String, category_id: &str) -> Result<crate::models::CategoryResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/months/{month}/categories/{category_id}", configuration.base_path, budget_id=urlencode(budget_id), month=month, category_id=urlencode(category_id));
+ let uri_str = format!("{}/budgets/{budget_id}/months/{month}/categories/{category_id}", configuration.base_path, budget_id=crate::apis::urlencode(budget_id), month=month, category_id=crate::apis::urlencode(category_id));
let mut req_builder = client.get(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
@@ -111,11 +111,11 @@ impl CategoriesApi for CategoriesApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn update_month_category(&self, budget_id: &str, month: String, category_id: &str, data: ::models::SaveMonthCategoryWrapper) -> Result<::models::SaveCategoryResponse, Error> {
+ fn update_month_category(&self, budget_id: &str, month: String, category_id: &str, data: crate::models::SaveMonthCategoryWrapper) -> Result<crate::models::SaveCategoryResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/months/{month}/categories/{category_id}", configuration.base_path, budget_id=urlencode(budget_id), month=month, category_id=urlencode(category_id));
+ let uri_str = format!("{}/budgets/{budget_id}/months/{month}/categories/{category_id}", configuration.base_path, budget_id=crate::apis::urlencode(budget_id), month=month, category_id=crate::apis::urlencode(category_id));
let mut req_builder = client.patch(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
diff --git a/src/apis/client.rs b/src/apis/client.rs
index 2776f11..387df63 100644
--- a/src/apis/client.rs
+++ b/src/apis/client.rs
@@ -3,17 +3,16 @@ use std::rc::Rc;
use super::configuration::Configuration;
pub struct APIClient {
- configuration: Rc<Configuration>,
- accounts_api: Box<::apis::AccountsApi>,
- budgets_api: Box<::apis::BudgetsApi>,
- categories_api: Box<::apis::CategoriesApi>,
- deprecated_api: Box<::apis::DeprecatedApi>,
- months_api: Box<::apis::MonthsApi>,
- payee_locations_api: Box<::apis::PayeeLocationsApi>,
- payees_api: Box<::apis::PayeesApi>,
- scheduled_transactions_api: Box<::apis::ScheduledTransactionsApi>,
- transactions_api: Box<::apis::TransactionsApi>,
- user_api: Box<::apis::UserApi>,
+ accounts_api: Box<crate::apis::AccountsApi>,
+ budgets_api: Box<crate::apis::BudgetsApi>,
+ categories_api: Box<crate::apis::CategoriesApi>,
+ deprecated_api: Box<crate::apis::DeprecatedApi>,
+ months_api: Box<crate::apis::MonthsApi>,
+ payee_locations_api: Box<crate::apis::PayeeLocationsApi>,
+ payees_api: Box<crate::apis::PayeesApi>,
+ scheduled_transactions_api: Box<crate::apis::ScheduledTransactionsApi>,
+ transactions_api: Box<crate::apis::TransactionsApi>,
+ user_api: Box<crate::apis::UserApi>,
}
impl APIClient {
@@ -21,57 +20,56 @@ impl APIClient {
let rc = Rc::new(configuration);
APIClient {
- configuration: rc.clone(),
- accounts_api: Box::new(::apis::AccountsApiClient::new(rc.clone())),
- budgets_api: Box::new(::apis::BudgetsApiClient::new(rc.clone())),
- categories_api: Box::new(::apis::CategoriesApiClient::new(rc.clone())),
- deprecated_api: Box::new(::apis::DeprecatedApiClient::new(rc.clone())),
- months_api: Box::new(::apis::MonthsApiClient::new(rc.clone())),
- payee_locations_api: Box::new(::apis::PayeeLocationsApiClient::new(rc.clone())),
- payees_api: Box::new(::apis::PayeesApiClient::new(rc.clone())),
- scheduled_transactions_api: Box::new(::apis::ScheduledTransactionsApiClient::new(rc.clone())),
- transactions_api: Box::new(::apis::TransactionsApiClient::new(rc.clone())),
- user_api: Box::new(::apis::UserApiClient::new(rc.clone())),
+ accounts_api: Box::new(crate::apis::AccountsApiClient::new(rc.clone())),
+ budgets_api: Box::new(crate::apis::BudgetsApiClient::new(rc.clone())),
+ categories_api: Box::new(crate::apis::CategoriesApiClient::new(rc.clone())),
+ deprecated_api: Box::new(crate::apis::DeprecatedApiClient::new(rc.clone())),
+ months_api: Box::new(crate::apis::MonthsApiClient::new(rc.clone())),
+ payee_locations_api: Box::new(crate::apis::PayeeLocationsApiClient::new(rc.clone())),
+ payees_api: Box::new(crate::apis::PayeesApiClient::new(rc.clone())),
+ scheduled_transactions_api: Box::new(crate::apis::ScheduledTransactionsApiClient::new(rc.clone())),
+ transactions_api: Box::new(crate::apis::TransactionsApiClient::new(rc.clone())),
+ user_api: Box::new(crate::apis::UserApiClient::new(rc.clone())),
}
}
- pub fn accounts_api(&self) -> &::apis::AccountsApi{
+ pub fn accounts_api(&self) -> &crate::apis::AccountsApi{
self.accounts_api.as_ref()
}
- pub fn budgets_api(&self) -> &::apis::BudgetsApi{
+ pub fn budgets_api(&self) -> &crate::apis::BudgetsApi{
self.budgets_api.as_ref()
}
- pub fn categories_api(&self) -> &::apis::CategoriesApi{
+ pub fn categories_api(&self) -> &crate::apis::CategoriesApi{
self.categories_api.as_ref()
}
- pub fn deprecated_api(&self) -> &::apis::DeprecatedApi{
+ pub fn deprecated_api(&self) -> &crate::apis::DeprecatedApi{
self.deprecated_api.as_ref()
}
- pub fn months_api(&self) -> &::apis::MonthsApi{
+ pub fn months_api(&self) -> &crate::apis::MonthsApi{
self.months_api.as_ref()
}
- pub fn payee_locations_api(&self) -> &::apis::PayeeLocationsApi{
+ pub fn payee_locations_api(&self) -> &crate::apis::PayeeLocationsApi{
self.payee_locations_api.as_ref()
}
- pub fn payees_api(&self) -> &::apis::PayeesApi{
+ pub fn payees_api(&self) -> &crate::apis::PayeesApi{
self.payees_api.as_ref()
}
- pub fn scheduled_transactions_api(&self) -> &::apis::ScheduledTransactionsApi{
+ pub fn scheduled_transactions_api(&self) -> &crate::apis::ScheduledTransactionsApi{
self.scheduled_transactions_api.as_ref()
}
- pub fn transactions_api(&self) -> &::apis::TransactionsApi{
+ pub fn transactions_api(&self) -> &crate::apis::TransactionsApi{
self.transactions_api.as_ref()
}
- pub fn user_api(&self) -> &::apis::UserApi{
+ pub fn user_api(&self) -> &crate::apis::UserApi{
self.user_api.as_ref()
}
diff --git a/src/apis/deprecated_api.rs b/src/apis/deprecated_api.rs
index a148248..aab34ff 100644
--- a/src/apis/deprecated_api.rs
+++ b/src/apis/deprecated_api.rs
@@ -13,7 +13,7 @@ use std::borrow::Borrow;
use reqwest;
-use super::{Error, configuration, urlencode};
+use super::{Error, configuration};
pub struct DeprecatedApiClient {
configuration: Rc<configuration::Configuration>,
@@ -28,15 +28,15 @@ impl DeprecatedApiClient {
}
pub trait DeprecatedApi {
- fn bulk_create_transactions(&self, budget_id: &str, transactions: ::models::BulkTransactions) -> Result<::models::BulkResponse, Error>;
+ fn bulk_create_transactions(&self, budget_id: &str, transactions: crate::models::BulkTransactions) -> Result<crate::models::BulkResponse, Error>;
}
impl DeprecatedApi for DeprecatedApiClient {
- fn bulk_create_transactions(&self, budget_id: &str, transactions: ::models::BulkTransactions) -> Result<::models::BulkResponse, Error> {
+ fn bulk_create_transactions(&self, budget_id: &str, transactions: crate::models::BulkTransactions) -> Result<crate::models::BulkResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/transactions/bulk", configuration.base_path, budget_id=urlencode(budget_id));
+ let uri_str = format!("{}/budgets/{budget_id}/transactions/bulk", configuration.base_path, budget_id=crate::apis::urlencode(budget_id));
let mut req_builder = client.post(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
diff --git a/src/apis/mod.rs b/src/apis/mod.rs
index 910bd7e..b71d970 100644
--- a/src/apis/mod.rs
+++ b/src/apis/mod.rs
@@ -30,8 +30,6 @@ pub fn urlencode<T: AsRef<str>>(s: T) -> String {
::url::form_urlencoded::byte_serialize(s.as_ref().as_bytes()).collect()
}
-use super::models::*;
-
mod accounts_api;
pub use self::accounts_api::{ AccountsApi, AccountsApiClient };
mod budgets_api;
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<configuration::Configuration>,
@@ -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<crate::models::MonthDetailResponse, Error>;
+ fn get_budget_months(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<crate::models::MonthSummariesResponse, Error>;
}
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<crate::models::MonthDetailResponse, Error> {
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<crate::models::MonthSummariesResponse, Error> {
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())]);
diff --git a/src/apis/payee_locations_api.rs b/src/apis/payee_locations_api.rs
index 88f12e1..823dea4 100644
--- a/src/apis/payee_locations_api.rs
+++ b/src/apis/payee_locations_api.rs
@@ -13,7 +13,7 @@ use std::borrow::Borrow;
use reqwest;
-use super::{Error, configuration, urlencode};
+use super::{Error, configuration};
pub struct PayeeLocationsApiClient {
configuration: Rc<configuration::Configuration>,
@@ -28,17 +28,17 @@ impl PayeeLocationsApiClient {
}
pub trait PayeeLocationsApi {
- fn get_payee_location_by_id(&self, budget_id: &str, payee_location_id: &str) -> Result<::models::PayeeLocationResponse, Error>;
- fn get_payee_locations(&self, budget_id: &str) -> Result<::models::PayeeLocationsResponse, Error>;
- fn get_payee_locations_by_payee(&self, budget_id: &str, payee_id: &str) -> Result<::models::PayeeLocationsResponse, Error>;
+ fn get_payee_location_by_id(&self, budget_id: &str, payee_location_id: &str) -> Result<crate::models::PayeeLocationResponse, Error>;
+ fn get_payee_locations(&self, budget_id: &str) -> Result<crate::models::PayeeLocationsResponse, Error>;
+ fn get_payee_locations_by_payee(&self, budget_id: &str, payee_id: &str) -> Result<crate::models::PayeeLocationsResponse, Error>;
}
impl PayeeLocationsApi for PayeeLocationsApiClient {
- fn get_payee_location_by_id(&self, budget_id: &str, payee_location_id: &str) -> Result<::models::PayeeLocationResponse, Error> {
+ fn get_payee_location_by_id(&self, budget_id: &str, payee_location_id: &str) -> Result<crate::models::PayeeLocationResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/payee_locations/{payee_location_id}", configuration.base_path, budget_id=urlencode(budget_id), payee_location_id=urlencode(payee_location_id));
+ let uri_str = format!("{}/budgets/{budget_id}/payee_locations/{payee_location_id}", configuration.base_path, budget_id=crate::apis::urlencode(budget_id), payee_location_id=crate::apis::urlencode(payee_location_id));
let mut req_builder = client.get(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
@@ -59,11 +59,11 @@ impl PayeeLocationsApi for PayeeLocationsApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn get_payee_locations(&self, budget_id: &str) -> Result<::models::PayeeLocationsResponse, Error> {
+ fn get_payee_locations(&self, budget_id: &str) -> Result<crate::models::PayeeLocationsResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/payee_locations", configuration.base_path, budget_id=urlencode(budget_id));
+ let uri_str = format!("{}/budgets/{budget_id}/payee_locations", configuration.base_path, budget_id=crate::apis::urlencode(budget_id));
let mut req_builder = client.get(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
@@ -84,11 +84,11 @@ impl PayeeLocationsApi for PayeeLocationsApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn get_payee_locations_by_payee(&self, budget_id: &str, payee_id: &str) -> Result<::models::PayeeLocationsResponse, Error> {
+ fn get_payee_locations_by_payee(&self, budget_id: &str, payee_id: &str) -> Result<crate::models::PayeeLocationsResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/payees/{payee_id}/payee_locations", configuration.base_path, budget_id=urlencode(budget_id), payee_id=urlencode(payee_id));
+ let uri_str = format!("{}/budgets/{budget_id}/payees/{payee_id}/payee_locations", configuration.base_path, budget_id=crate::apis::urlencode(budget_id), payee_id=crate::apis::urlencode(payee_id));
let mut req_builder = client.get(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
diff --git a/src/apis/payees_api.rs b/src/apis/payees_api.rs
index 77db5bb..890920c 100644
--- a/src/apis/payees_api.rs
+++ b/src/apis/payees_api.rs
@@ -13,7 +13,7 @@ use std::borrow::Borrow;
use reqwest;
-use super::{Error, configuration, urlencode};
+use super::{Error, configuration};
pub struct PayeesApiClient {
configuration: Rc<configuration::Configuration>,
@@ -28,16 +28,16 @@ impl PayeesApiClient {
}
pub trait PayeesApi {
- fn get_payee_by_id(&self, budget_id: &str, payee_id: &str) -> Result<::models::PayeeResponse, Error>;
- fn get_payees(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<::models::PayeesResponse, Error>;
+ fn get_payee_by_id(&self, budget_id: &str, payee_id: &str) -> Result<crate::models::PayeeResponse, Error>;
+ fn get_payees(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<crate::models::PayeesResponse, Error>;
}
impl PayeesApi for PayeesApiClient {
- fn get_payee_by_id(&self, budget_id: &str, payee_id: &str) -> Result<::models::PayeeResponse, Error> {
+ fn get_payee_by_id(&self, budget_id: &str, payee_id: &str) -> Result<crate::models::PayeeResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/payees/{payee_id}", configuration.base_path, budget_id=urlencode(budget_id), payee_id=urlencode(payee_id));
+ let uri_str = format!("{}/budgets/{budget_id}/payees/{payee_id}", configuration.base_path, budget_id=crate::apis::urlencode(budget_id), payee_id=crate::apis::urlencode(payee_id));
let mut req_builder = client.get(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
@@ -58,11 +58,11 @@ impl PayeesApi for PayeesApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn get_payees(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<::models::PayeesResponse, Error> {
+ fn get_payees(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<crate::models::PayeesResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/payees", configuration.base_path, budget_id=urlencode(budget_id));
+ let uri_str = format!("{}/budgets/{budget_id}/payees", 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())]);
diff --git a/src/apis/scheduled_transactions_api.rs b/src/apis/scheduled_transactions_api.rs
index 8ab30a8..fe8c959 100644
--- a/src/apis/scheduled_transactions_api.rs
+++ b/src/apis/scheduled_transactions_api.rs
@@ -13,7 +13,7 @@ use std::borrow::Borrow;
use reqwest;
-use super::{Error, configuration, urlencode};
+use super::{Error, configuration};
pub struct ScheduledTransactionsApiClient {
configuration: Rc<configuration::Configuration>,
@@ -28,16 +28,16 @@ impl ScheduledTransactionsApiClient {
}
pub trait ScheduledTransactionsApi {
- fn get_scheduled_transaction_by_id(&self, budget_id: &str, scheduled_transaction_id: &str) -> Result<::models::ScheduledTransactionResponse, Error>;
- fn get_scheduled_transactions(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<::models::ScheduledTransactionsResponse, Error>;
+ fn get_scheduled_transaction_by_id(&self, budget_id: &str, scheduled_transaction_id: &str) -> Result<crate::models::ScheduledTransactionResponse, Error>;
+ fn get_scheduled_transactions(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<crate::models::ScheduledTransactionsResponse, Error>;
}
impl ScheduledTransactionsApi for ScheduledTransactionsApiClient {
- fn get_scheduled_transaction_by_id(&self, budget_id: &str, scheduled_transaction_id: &str) -> Result<::models::ScheduledTransactionResponse, Error> {
+ fn get_scheduled_transaction_by_id(&self, budget_id: &str, scheduled_transaction_id: &str) -> Result<crate::models::ScheduledTransactionResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}", configuration.base_path, budget_id=urlencode(budget_id), scheduled_transaction_id=urlencode(scheduled_transaction_id));
+ let uri_str = format!("{}/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}", configuration.base_path, budget_id=crate::apis::urlencode(budget_id), scheduled_transaction_id=crate::apis::urlencode(scheduled_transaction_id));
let mut req_builder = client.get(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
@@ -58,11 +58,11 @@ impl ScheduledTransactionsApi for ScheduledTransactionsApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn get_scheduled_transactions(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<::models::ScheduledTransactionsResponse, Error> {
+ fn get_scheduled_transactions(&self, budget_id: &str, last_knowledge_of_server: i64) -> Result<crate::models::ScheduledTransactionsResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/scheduled_transactions", configuration.base_path, budget_id=urlencode(budget_id));
+ let uri_str = format!("{}/budgets/{budget_id}/scheduled_transactions", 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())]);
diff --git a/src/apis/transactions_api.rs b/src/apis/transactions_api.rs
index a6386a0..9b3fcb4 100644
--- a/src/apis/transactions_api.rs
+++ b/src/apis/transactions_api.rs
@@ -13,7 +13,7 @@ use std::borrow::Borrow;
use reqwest;
-use super::{Error, configuration, urlencode};
+use super::{Error, configuration};
pub struct TransactionsApiClient {
configuration: Rc<configuration::Configuration>,
@@ -28,22 +28,22 @@ impl TransactionsApiClient {
}
pub trait TransactionsApi {
- fn create_transaction(&self, budget_id: &str, data: ::models::SaveTransactionsWrapper) -> Result<::models::SaveTransactionsResponse, Error>;
- fn get_transaction_by_id(&self, budget_id: &str, transaction_id: &str) -> Result<::models::TransactionResponse, Error>;
- fn get_transactions(&self, budget_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<::models::TransactionsResponse, Error>;
- fn get_transactions_by_account(&self, budget_id: &str, account_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<::models::TransactionsResponse, Error>;
- fn get_transactions_by_category(&self, budget_id: &str, category_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<::models::HybridTransactionsResponse, Error>;
- fn get_transactions_by_payee(&self, budget_id: &str, payee_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<::models::HybridTransactionsResponse, Error>;
- fn update_transaction(&self, budget_id: &str, transaction_id: &str, data: ::models::UpdateTransactionWrapper) -> Result<::models::TransactionResponse, Error>;
- fn update_transactions(&self, budget_id: &str, data: ::models::UpdateTransactionsWrapper) -> Result<::models::UpdateTransactionsResponse, Error>;
+ fn create_transaction(&self, budget_id: &str, data: crate::models::SaveTransactionsWrapper) -> Result<crate::models::SaveTransactionsResponse, Error>;
+ fn get_transaction_by_id(&self, budget_id: &str, transaction_id: &str) -> Result<crate::models::TransactionResponse, Error>;
+ fn get_transactions(&self, budget_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<crate::models::TransactionsResponse, Error>;
+ fn get_transactions_by_account(&self, budget_id: &str, account_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<crate::models::TransactionsResponse, Error>;
+ fn get_transactions_by_category(&self, budget_id: &str, category_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<crate::models::HybridTransactionsResponse, Error>;
+ fn get_transactions_by_payee(&self, budget_id: &str, payee_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<crate::models::HybridTransactionsResponse, Error>;
+ fn update_transaction(&self, budget_id: &str, transaction_id: &str, data: crate::models::SaveTransactionWrapper) -> Result<crate::models::TransactionResponse, Error>;
+ fn update_transactions(&self, budget_id: &str, data: crate::models::UpdateTransactionsWrapper) -> Result<crate::models::SaveTransactionsResponse, Error>;
}
impl TransactionsApi for TransactionsApiClient {
- fn create_transaction(&self, budget_id: &str, data: ::models::SaveTransactionsWrapper) -> Result<::models::SaveTransactionsResponse, Error> {
+ fn create_transaction(&self, budget_id: &str, data: crate::models::SaveTransactionsWrapper) -> Result<crate::models::SaveTransactionsResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/transactions", configuration.base_path, budget_id=urlencode(budget_id));
+ let uri_str = format!("{}/budgets/{budget_id}/transactions", configuration.base_path, budget_id=crate::apis::urlencode(budget_id));
let mut req_builder = client.post(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
@@ -65,11 +65,11 @@ impl TransactionsApi for TransactionsApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn get_transaction_by_id(&self, budget_id: &str, transaction_id: &str) -> Result<::models::TransactionResponse, Error> {
+ fn get_transaction_by_id(&self, budget_id: &str, transaction_id: &str) -> Result<crate::models::TransactionResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/transactions/{transaction_id}", configuration.base_path, budget_id=urlencode(budget_id), transaction_id=urlencode(transaction_id));
+ let uri_str = format!("{}/budgets/{budget_id}/transactions/{transaction_id}", configuration.base_path, budget_id=crate::apis::urlencode(budget_id), transaction_id=crate::apis::urlencode(transaction_id));
let mut req_builder = client.get(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
@@ -90,11 +90,11 @@ impl TransactionsApi for TransactionsApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn get_transactions(&self, budget_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<::models::TransactionsResponse, Error> {
+ fn get_transactions(&self, budget_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<crate::models::TransactionsResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/transactions", configuration.base_path, budget_id=urlencode(budget_id));
+ let uri_str = format!("{}/budgets/{budget_id}/transactions", 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(&[("since_date", &since_date.to_string())]);
@@ -118,11 +118,11 @@ impl TransactionsApi for TransactionsApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn get_transactions_by_account(&self, budget_id: &str, account_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<::models::TransactionsResponse, Error> {
+ fn get_transactions_by_account(&self, budget_id: &str, account_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<crate::models::TransactionsResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/accounts/{account_id}/transactions", configuration.base_path, budget_id=urlencode(budget_id), account_id=urlencode(account_id));
+ let uri_str = format!("{}/budgets/{budget_id}/accounts/{account_id}/transactions", configuration.base_path, budget_id=crate::apis::urlencode(budget_id), account_id=crate::apis::urlencode(account_id));
let mut req_builder = client.get(uri_str.as_str());
req_builder = req_builder.query(&[("since_date", &since_date.to_string())]);
@@ -146,11 +146,11 @@ impl TransactionsApi for TransactionsApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn get_transactions_by_category(&self, budget_id: &str, category_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<::models::HybridTransactionsResponse, Error> {
+ fn get_transactions_by_category(&self, budget_id: &str, category_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<crate::models::HybridTransactionsResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/categories/{category_id}/transactions", configuration.base_path, budget_id=urlencode(budget_id), category_id=urlencode(category_id));
+ let uri_str = format!("{}/budgets/{budget_id}/categories/{category_id}/transactions", configuration.base_path, budget_id=crate::apis::urlencode(budget_id), category_id=crate::apis::urlencode(category_id));
let mut req_builder = client.get(uri_str.as_str());
req_builder = req_builder.query(&[("since_date", &since_date.to_string())]);
@@ -174,11 +174,11 @@ impl TransactionsApi for TransactionsApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn get_transactions_by_payee(&self, budget_id: &str, payee_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<::models::HybridTransactionsResponse, Error> {
+ fn get_transactions_by_payee(&self, budget_id: &str, payee_id: &str, since_date: String, _type: &str, last_knowledge_of_server: i64) -> Result<crate::models::HybridTransactionsResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/payees/{payee_id}/transactions", configuration.base_path, budget_id=urlencode(budget_id), payee_id=urlencode(payee_id));
+ let uri_str = format!("{}/budgets/{budget_id}/payees/{payee_id}/transactions", configuration.base_path, budget_id=crate::apis::urlencode(budget_id), payee_id=crate::apis::urlencode(payee_id));
let mut req_builder = client.get(uri_str.as_str());
req_builder = req_builder.query(&[("since_date", &since_date.to_string())]);
@@ -202,11 +202,11 @@ impl TransactionsApi for TransactionsApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn update_transaction(&self, budget_id: &str, transaction_id: &str, data: ::models::UpdateTransactionWrapper) -> Result<::models::TransactionResponse, Error> {
+ fn update_transaction(&self, budget_id: &str, transaction_id: &str, data: crate::models::SaveTransactionWrapper) -> Result<crate::models::TransactionResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/transactions/{transaction_id}", configuration.base_path, budget_id=urlencode(budget_id), transaction_id=urlencode(transaction_id));
+ let uri_str = format!("{}/budgets/{budget_id}/transactions/{transaction_id}", configuration.base_path, budget_id=crate::apis::urlencode(budget_id), transaction_id=crate::apis::urlencode(transaction_id));
let mut req_builder = client.put(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
@@ -228,11 +228,11 @@ impl TransactionsApi for TransactionsApiClient {
Ok(client.execute(req)?.error_for_status()?.json()?)
}
- fn update_transactions(&self, budget_id: &str, data: ::models::UpdateTransactionsWrapper) -> Result<::models::UpdateTransactionsResponse, Error> {
+ fn update_transactions(&self, budget_id: &str, data: crate::models::UpdateTransactionsWrapper) -> Result<crate::models::SaveTransactionsResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;
- let uri_str = format!("{}/budgets/{budget_id}/transactions", configuration.base_path, budget_id=urlencode(budget_id));
+ let uri_str = format!("{}/budgets/{budget_id}/transactions", configuration.base_path, budget_id=crate::apis::urlencode(budget_id));
let mut req_builder = client.patch(uri_str.as_str());
if let Some(ref user_agent) = configuration.user_agent {
diff --git a/src/apis/user_api.rs b/src/apis/user_api.rs
index 50c243e..870ecc4 100644
--- a/src/apis/user_api.rs
+++ b/src/apis/user_api.rs
@@ -13,7 +13,7 @@ use std::borrow::Borrow;
use reqwest;
-use super::{Error, configuration, urlencode};
+use super::{Error, configuration};
pub struct UserApiClient {
configuration: Rc<configuration::Configuration>,
@@ -28,11 +28,11 @@ impl UserApiClient {
}
pub trait UserApi {
- fn get_user(&self, ) -> Result<::models::UserResponse, Error>;
+ fn get_user(&self, ) -> Result<crate::models::UserResponse, Error>;
}
impl UserApi for UserApiClient {
- fn get_user(&self, ) -> Result<::models::UserResponse, Error> {
+ fn get_user(&self, ) -> Result<crate::models::UserResponse, Error> {
let configuration: &configuration::Configuration = self.configuration.borrow();
let client = &configuration.client;