From 3e50575b367300358882dde45b4e9642d428f1f2 Mon Sep 17 00:00:00 2001 From: Brady Holt Date: Thu, 5 Mar 2026 15:24:19 -0600 Subject: [PATCH] Generate from server spec 1.79.0 Server spec 1.79.0 changes the path from /budget[s] to /plan[s] and also a few of the member names in the response from 'budget[s]' to 'plan[s]' and 'default_budget' to 'default_plan'. Backwards compatibility is maintained for the member names. The member names are only changed if /budgets is used in URL rather than /plans. --- docs/AccountsApi.md | 6 +- docs/CategoriesApi.md | 16 ++--- docs/MoneyMovementsApi.md | 8 +-- docs/MonthsApi.md | 4 +- docs/PayeeLocationsApi.md | 6 +- docs/PayeesApi.md | 6 +- docs/PlanDetailResponseData.md | 2 +- docs/PlanSummaryResponseData.md | 4 +- docs/PlansApi.md | 6 +- docs/ScheduledTransactionsApi.md | 10 +-- docs/TransactionsApi.md | 22 +++--- lib/ynab/api/accounts_api.rb | 6 +- lib/ynab/api/categories_api.rb | 16 ++--- lib/ynab/api/deprecated_api.rb | 6 +- lib/ynab/api/money_movements_api.rb | 8 +-- lib/ynab/api/months_api.rb | 4 +- lib/ynab/api/payee_locations_api.rb | 6 +- lib/ynab/api/payees_api.rb | 6 +- lib/ynab/api/plans_api.rb | 6 +- lib/ynab/api/scheduled_transactions_api.rb | 10 +-- lib/ynab/api/transactions_api.rb | 22 +++--- lib/ynab/models/plan_detail_response_data.rb | 16 ++--- lib/ynab/models/plan_summary_response_data.rb | 30 ++++---- open_api_spec.yaml | 72 +++++++++---------- spec/api/accounts_spec.rb | 6 +- spec/api/categories_spec.rb | 6 +- spec/api/months_spec.rb | 4 +- spec/api/payee_locations_spec.rb | 4 +- spec/api/payees_spec.rb | 4 +- spec/api/plans_spec.rb | 18 ++--- spec/api/scheduled_transactions_spec.rb | 6 +- spec/api/transactions_spec.rb | 22 +++--- spec/fixtures/vcr_cassettes/account.yml | 4 +- spec/fixtures/vcr_cassettes/accounts.yml | 4 +- .../vcr_cassettes/accounts_unauthorized.yml | 4 +- spec/fixtures/vcr_cassettes/budgets.yml | 49 ------------- .../vcr_cassettes/budgets_unauthorized.yml | 49 ------------- .../vcr_cassettes/bulk_transactions.yml | 4 +- spec/fixtures/vcr_cassettes/categories.yml | 4 +- .../vcr_cassettes/categories_unauthorized.yml | 4 +- spec/fixtures/vcr_cassettes/category.yml | 4 +- .../vcr_cassettes/category_transactions.yml | 4 +- .../fixtures/vcr_cassettes/create_account.yml | 4 +- .../create_scheduled_transaction.yml | 4 +- .../vcr_cassettes/create_transaction.yml | 4 +- .../vcr_cassettes/create_transactions.yml | 4 +- .../vcr_cassettes/import_transactions.yml | 4 +- spec/fixtures/vcr_cassettes/month.yml | 4 +- .../vcr_cassettes/month_transactions.yml | 4 +- spec/fixtures/vcr_cassettes/months.yml | 4 +- .../vcr_cassettes/months_unauthorized.yml | 4 +- .../vcr_cassettes/multiple_transactions.yml | 4 +- .../vcr_cassettes/patch_month_category.yml | 4 +- spec/fixtures/vcr_cassettes/payee.yml | 4 +- .../fixtures/vcr_cassettes/payee_location.yml | 4 +- .../vcr_cassettes/payee_locations.yml | 4 +- .../payee_locations_unauthorized.yml | 4 +- .../vcr_cassettes/payee_transactions.yml | 4 +- spec/fixtures/vcr_cassettes/payees.yml | 4 +- .../vcr_cassettes/payees_unauthorized.yml | 4 +- .../vcr_cassettes/{budget.yml => plan.yml} | 6 +- spec/fixtures/vcr_cassettes/plans.yml | 6 +- .../vcr_cassettes/plans_unauthorized.yml | 4 +- .../vcr_cassettes/scheduled_transaction.yml | 4 +- .../vcr_cassettes/scheduled_transactions.yml | 4 +- .../scheduled_transactions_unauthorized.yml | 4 +- spec/fixtures/vcr_cassettes/transaction.yml | 4 +- spec/fixtures/vcr_cassettes/transactions.yml | 4 +- .../transactions_invalid_flags.yml | 4 +- .../transactions_unauthorized.yml | 4 +- .../vcr_cassettes/update_transaction.yml | 4 +- .../vcr_cassettes/update_transactions.yml | 4 +- ynab.gemspec | 2 +- 73 files changed, 263 insertions(+), 361 deletions(-) delete mode 100644 spec/fixtures/vcr_cassettes/budgets.yml delete mode 100644 spec/fixtures/vcr_cassettes/budgets_unauthorized.yml rename spec/fixtures/vcr_cassettes/{budget.yml => plan.yml} (99%) diff --git a/docs/AccountsApi.md b/docs/AccountsApi.md index 713ff88..675cf69 100644 --- a/docs/AccountsApi.md +++ b/docs/AccountsApi.md @@ -4,9 +4,9 @@ All URIs are relative to *https://api.ynab.com/v1* | Method | HTTP request | Description | | ------ | ------------ | ----------- | -| [**create_account**](AccountsApi.md#create_account) | **POST** /budgets/{plan_id}/accounts | Create an account | -| [**get_account_by_id**](AccountsApi.md#get_account_by_id) | **GET** /budgets/{plan_id}/accounts/{account_id} | Get an account | -| [**get_accounts**](AccountsApi.md#get_accounts) | **GET** /budgets/{plan_id}/accounts | Get all accounts | +| [**create_account**](AccountsApi.md#create_account) | **POST** /plans/{plan_id}/accounts | Create an account | +| [**get_account_by_id**](AccountsApi.md#get_account_by_id) | **GET** /plans/{plan_id}/accounts/{account_id} | Get an account | +| [**get_accounts**](AccountsApi.md#get_accounts) | **GET** /plans/{plan_id}/accounts | Get all accounts | ## create_account diff --git a/docs/CategoriesApi.md b/docs/CategoriesApi.md index 3ccee49..46f933f 100644 --- a/docs/CategoriesApi.md +++ b/docs/CategoriesApi.md @@ -4,14 +4,14 @@ All URIs are relative to *https://api.ynab.com/v1* | Method | HTTP request | Description | | ------ | ------------ | ----------- | -| [**create_category**](CategoriesApi.md#create_category) | **POST** /budgets/{plan_id}/categories | Create a category | -| [**create_category_group**](CategoriesApi.md#create_category_group) | **POST** /budgets/{plan_id}/category_groups | Create a category group | -| [**get_categories**](CategoriesApi.md#get_categories) | **GET** /budgets/{plan_id}/categories | Get all categories | -| [**get_category_by_id**](CategoriesApi.md#get_category_by_id) | **GET** /budgets/{plan_id}/categories/{category_id} | Get a category | -| [**get_month_category_by_id**](CategoriesApi.md#get_month_category_by_id) | **GET** /budgets/{plan_id}/months/{month}/categories/{category_id} | Get a category for a specific plan month | -| [**update_category**](CategoriesApi.md#update_category) | **PATCH** /budgets/{plan_id}/categories/{category_id} | Update a category | -| [**update_category_group**](CategoriesApi.md#update_category_group) | **PATCH** /budgets/{plan_id}/category_groups/{category_group_id} | Update a category group | -| [**update_month_category**](CategoriesApi.md#update_month_category) | **PATCH** /budgets/{plan_id}/months/{month}/categories/{category_id} | Update a category for a specific month | +| [**create_category**](CategoriesApi.md#create_category) | **POST** /plans/{plan_id}/categories | Create a category | +| [**create_category_group**](CategoriesApi.md#create_category_group) | **POST** /plans/{plan_id}/category_groups | Create a category group | +| [**get_categories**](CategoriesApi.md#get_categories) | **GET** /plans/{plan_id}/categories | Get all categories | +| [**get_category_by_id**](CategoriesApi.md#get_category_by_id) | **GET** /plans/{plan_id}/categories/{category_id} | Get a category | +| [**get_month_category_by_id**](CategoriesApi.md#get_month_category_by_id) | **GET** /plans/{plan_id}/months/{month}/categories/{category_id} | Get a category for a specific plan month | +| [**update_category**](CategoriesApi.md#update_category) | **PATCH** /plans/{plan_id}/categories/{category_id} | Update a category | +| [**update_category_group**](CategoriesApi.md#update_category_group) | **PATCH** /plans/{plan_id}/category_groups/{category_group_id} | Update a category group | +| [**update_month_category**](CategoriesApi.md#update_month_category) | **PATCH** /plans/{plan_id}/months/{month}/categories/{category_id} | Update a category for a specific month | ## create_category diff --git a/docs/MoneyMovementsApi.md b/docs/MoneyMovementsApi.md index e969264..085bc47 100644 --- a/docs/MoneyMovementsApi.md +++ b/docs/MoneyMovementsApi.md @@ -4,10 +4,10 @@ All URIs are relative to *https://api.ynab.com/v1* | Method | HTTP request | Description | | ------ | ------------ | ----------- | -| [**get_money_movement_groups**](MoneyMovementsApi.md#get_money_movement_groups) | **GET** /budgets/{plan_id}/money_movement_groups | Get all money movement groups | -| [**get_money_movement_groups_by_month**](MoneyMovementsApi.md#get_money_movement_groups_by_month) | **GET** /budgets/{plan_id}/months/{month}/money_movement_groups | Get money movement groups for a plan month | -| [**get_money_movements**](MoneyMovementsApi.md#get_money_movements) | **GET** /budgets/{plan_id}/money_movements | Get all money movements | -| [**get_money_movements_by_month**](MoneyMovementsApi.md#get_money_movements_by_month) | **GET** /budgets/{plan_id}/months/{month}/money_movements | Get money movements for a plan month | +| [**get_money_movement_groups**](MoneyMovementsApi.md#get_money_movement_groups) | **GET** /plans/{plan_id}/money_movement_groups | Get all money movement groups | +| [**get_money_movement_groups_by_month**](MoneyMovementsApi.md#get_money_movement_groups_by_month) | **GET** /plans/{plan_id}/months/{month}/money_movement_groups | Get money movement groups for a plan month | +| [**get_money_movements**](MoneyMovementsApi.md#get_money_movements) | **GET** /plans/{plan_id}/money_movements | Get all money movements | +| [**get_money_movements_by_month**](MoneyMovementsApi.md#get_money_movements_by_month) | **GET** /plans/{plan_id}/months/{month}/money_movements | Get money movements for a plan month | ## get_money_movement_groups diff --git a/docs/MonthsApi.md b/docs/MonthsApi.md index 3dbf386..1526932 100644 --- a/docs/MonthsApi.md +++ b/docs/MonthsApi.md @@ -4,8 +4,8 @@ All URIs are relative to *https://api.ynab.com/v1* | Method | HTTP request | Description | | ------ | ------------ | ----------- | -| [**get_plan_month**](MonthsApi.md#get_plan_month) | **GET** /budgets/{plan_id}/months/{month} | Get a plan month | -| [**get_plan_months**](MonthsApi.md#get_plan_months) | **GET** /budgets/{plan_id}/months | Get all plan months | +| [**get_plan_month**](MonthsApi.md#get_plan_month) | **GET** /plans/{plan_id}/months/{month} | Get a plan month | +| [**get_plan_months**](MonthsApi.md#get_plan_months) | **GET** /plans/{plan_id}/months | Get all plan months | ## get_plan_month diff --git a/docs/PayeeLocationsApi.md b/docs/PayeeLocationsApi.md index 4da3d01..2523109 100644 --- a/docs/PayeeLocationsApi.md +++ b/docs/PayeeLocationsApi.md @@ -4,9 +4,9 @@ All URIs are relative to *https://api.ynab.com/v1* | Method | HTTP request | Description | | ------ | ------------ | ----------- | -| [**get_payee_location_by_id**](PayeeLocationsApi.md#get_payee_location_by_id) | **GET** /budgets/{plan_id}/payee_locations/{payee_location_id} | Get a payee location | -| [**get_payee_locations**](PayeeLocationsApi.md#get_payee_locations) | **GET** /budgets/{plan_id}/payee_locations | Get all payee locations | -| [**get_payee_locations_by_payee**](PayeeLocationsApi.md#get_payee_locations_by_payee) | **GET** /budgets/{plan_id}/payees/{payee_id}/payee_locations | Get all locations for a payee | +| [**get_payee_location_by_id**](PayeeLocationsApi.md#get_payee_location_by_id) | **GET** /plans/{plan_id}/payee_locations/{payee_location_id} | Get a payee location | +| [**get_payee_locations**](PayeeLocationsApi.md#get_payee_locations) | **GET** /plans/{plan_id}/payee_locations | Get all payee locations | +| [**get_payee_locations_by_payee**](PayeeLocationsApi.md#get_payee_locations_by_payee) | **GET** /plans/{plan_id}/payees/{payee_id}/payee_locations | Get all locations for a payee | ## get_payee_location_by_id diff --git a/docs/PayeesApi.md b/docs/PayeesApi.md index 5242709..0853b07 100644 --- a/docs/PayeesApi.md +++ b/docs/PayeesApi.md @@ -4,9 +4,9 @@ All URIs are relative to *https://api.ynab.com/v1* | Method | HTTP request | Description | | ------ | ------------ | ----------- | -| [**get_payee_by_id**](PayeesApi.md#get_payee_by_id) | **GET** /budgets/{plan_id}/payees/{payee_id} | Get a payee | -| [**get_payees**](PayeesApi.md#get_payees) | **GET** /budgets/{plan_id}/payees | Get all payees | -| [**update_payee**](PayeesApi.md#update_payee) | **PATCH** /budgets/{plan_id}/payees/{payee_id} | Update a payee | +| [**get_payee_by_id**](PayeesApi.md#get_payee_by_id) | **GET** /plans/{plan_id}/payees/{payee_id} | Get a payee | +| [**get_payees**](PayeesApi.md#get_payees) | **GET** /plans/{plan_id}/payees | Get all payees | +| [**update_payee**](PayeesApi.md#update_payee) | **PATCH** /plans/{plan_id}/payees/{payee_id} | Update a payee | ## get_payee_by_id diff --git a/docs/PlanDetailResponseData.md b/docs/PlanDetailResponseData.md index 62138d4..331b19c 100644 --- a/docs/PlanDetailResponseData.md +++ b/docs/PlanDetailResponseData.md @@ -4,6 +4,6 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **budget** | [**PlanDetail**](PlanDetail.md) | | | +| **plan** | [**PlanDetail**](PlanDetail.md) | | | | **server_knowledge** | **Integer** | The knowledge of the server | | diff --git a/docs/PlanSummaryResponseData.md b/docs/PlanSummaryResponseData.md index 95f93b8..2db8e38 100644 --- a/docs/PlanSummaryResponseData.md +++ b/docs/PlanSummaryResponseData.md @@ -4,6 +4,6 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **budgets** | [**Array<PlanSummary>**](PlanSummary.md) | | | -| **default_budget** | [**PlanSummary**](PlanSummary.md) | | [optional] | +| **plans** | [**Array<PlanSummary>**](PlanSummary.md) | | | +| **default_plan** | [**PlanSummary**](PlanSummary.md) | | [optional] | diff --git a/docs/PlansApi.md b/docs/PlansApi.md index bb747ea..c8d4fc2 100644 --- a/docs/PlansApi.md +++ b/docs/PlansApi.md @@ -4,9 +4,9 @@ All URIs are relative to *https://api.ynab.com/v1* | Method | HTTP request | Description | | ------ | ------------ | ----------- | -| [**get_plan_by_id**](PlansApi.md#get_plan_by_id) | **GET** /budgets/{plan_id} | Get a plan | -| [**get_plan_settings_by_id**](PlansApi.md#get_plan_settings_by_id) | **GET** /budgets/{plan_id}/settings | Get plan settings | -| [**get_plans**](PlansApi.md#get_plans) | **GET** /budgets | Get all plans | +| [**get_plan_by_id**](PlansApi.md#get_plan_by_id) | **GET** /plans/{plan_id} | Get a plan | +| [**get_plan_settings_by_id**](PlansApi.md#get_plan_settings_by_id) | **GET** /plans/{plan_id}/settings | Get plan settings | +| [**get_plans**](PlansApi.md#get_plans) | **GET** /plans | Get all plans | ## get_plan_by_id diff --git a/docs/ScheduledTransactionsApi.md b/docs/ScheduledTransactionsApi.md index 6663510..7abd95c 100644 --- a/docs/ScheduledTransactionsApi.md +++ b/docs/ScheduledTransactionsApi.md @@ -4,11 +4,11 @@ All URIs are relative to *https://api.ynab.com/v1* | Method | HTTP request | Description | | ------ | ------------ | ----------- | -| [**create_scheduled_transaction**](ScheduledTransactionsApi.md#create_scheduled_transaction) | **POST** /budgets/{plan_id}/scheduled_transactions | Create a scheduled transaction | -| [**delete_scheduled_transaction**](ScheduledTransactionsApi.md#delete_scheduled_transaction) | **DELETE** /budgets/{plan_id}/scheduled_transactions/{scheduled_transaction_id} | Delete a scheduled transaction | -| [**get_scheduled_transaction_by_id**](ScheduledTransactionsApi.md#get_scheduled_transaction_by_id) | **GET** /budgets/{plan_id}/scheduled_transactions/{scheduled_transaction_id} | Get a scheduled transaction | -| [**get_scheduled_transactions**](ScheduledTransactionsApi.md#get_scheduled_transactions) | **GET** /budgets/{plan_id}/scheduled_transactions | Get all scheduled transactions | -| [**update_scheduled_transaction**](ScheduledTransactionsApi.md#update_scheduled_transaction) | **PUT** /budgets/{plan_id}/scheduled_transactions/{scheduled_transaction_id} | Update a scheduled transaction | +| [**create_scheduled_transaction**](ScheduledTransactionsApi.md#create_scheduled_transaction) | **POST** /plans/{plan_id}/scheduled_transactions | Create a scheduled transaction | +| [**delete_scheduled_transaction**](ScheduledTransactionsApi.md#delete_scheduled_transaction) | **DELETE** /plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id} | Delete a scheduled transaction | +| [**get_scheduled_transaction_by_id**](ScheduledTransactionsApi.md#get_scheduled_transaction_by_id) | **GET** /plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id} | Get a scheduled transaction | +| [**get_scheduled_transactions**](ScheduledTransactionsApi.md#get_scheduled_transactions) | **GET** /plans/{plan_id}/scheduled_transactions | Get all scheduled transactions | +| [**update_scheduled_transaction**](ScheduledTransactionsApi.md#update_scheduled_transaction) | **PUT** /plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id} | Update a scheduled transaction | ## create_scheduled_transaction diff --git a/docs/TransactionsApi.md b/docs/TransactionsApi.md index e1db731..aa1d41b 100644 --- a/docs/TransactionsApi.md +++ b/docs/TransactionsApi.md @@ -4,17 +4,17 @@ All URIs are relative to *https://api.ynab.com/v1* | Method | HTTP request | Description | | ------ | ------------ | ----------- | -| [**create_transaction**](TransactionsApi.md#create_transaction) | **POST** /budgets/{plan_id}/transactions | Create a single transaction or multiple transactions | -| [**delete_transaction**](TransactionsApi.md#delete_transaction) | **DELETE** /budgets/{plan_id}/transactions/{transaction_id} | Delete a transaction | -| [**get_transaction_by_id**](TransactionsApi.md#get_transaction_by_id) | **GET** /budgets/{plan_id}/transactions/{transaction_id} | Get a transaction | -| [**get_transactions**](TransactionsApi.md#get_transactions) | **GET** /budgets/{plan_id}/transactions | Get all transactions | -| [**get_transactions_by_account**](TransactionsApi.md#get_transactions_by_account) | **GET** /budgets/{plan_id}/accounts/{account_id}/transactions | Get all account transactions | -| [**get_transactions_by_category**](TransactionsApi.md#get_transactions_by_category) | **GET** /budgets/{plan_id}/categories/{category_id}/transactions | Get all category transactions | -| [**get_transactions_by_month**](TransactionsApi.md#get_transactions_by_month) | **GET** /budgets/{plan_id}/months/{month}/transactions | Get all plan month transactions | -| [**get_transactions_by_payee**](TransactionsApi.md#get_transactions_by_payee) | **GET** /budgets/{plan_id}/payees/{payee_id}/transactions | Get all payee transactions | -| [**import_transactions**](TransactionsApi.md#import_transactions) | **POST** /budgets/{plan_id}/transactions/import | Import transactions | -| [**update_transaction**](TransactionsApi.md#update_transaction) | **PUT** /budgets/{plan_id}/transactions/{transaction_id} | Update a transaction | -| [**update_transactions**](TransactionsApi.md#update_transactions) | **PATCH** /budgets/{plan_id}/transactions | Update multiple transactions | +| [**create_transaction**](TransactionsApi.md#create_transaction) | **POST** /plans/{plan_id}/transactions | Create a single transaction or multiple transactions | +| [**delete_transaction**](TransactionsApi.md#delete_transaction) | **DELETE** /plans/{plan_id}/transactions/{transaction_id} | Delete a transaction | +| [**get_transaction_by_id**](TransactionsApi.md#get_transaction_by_id) | **GET** /plans/{plan_id}/transactions/{transaction_id} | Get a transaction | +| [**get_transactions**](TransactionsApi.md#get_transactions) | **GET** /plans/{plan_id}/transactions | Get all transactions | +| [**get_transactions_by_account**](TransactionsApi.md#get_transactions_by_account) | **GET** /plans/{plan_id}/accounts/{account_id}/transactions | Get all account transactions | +| [**get_transactions_by_category**](TransactionsApi.md#get_transactions_by_category) | **GET** /plans/{plan_id}/categories/{category_id}/transactions | Get all category transactions | +| [**get_transactions_by_month**](TransactionsApi.md#get_transactions_by_month) | **GET** /plans/{plan_id}/months/{month}/transactions | Get all plan month transactions | +| [**get_transactions_by_payee**](TransactionsApi.md#get_transactions_by_payee) | **GET** /plans/{plan_id}/payees/{payee_id}/transactions | Get all payee transactions | +| [**import_transactions**](TransactionsApi.md#import_transactions) | **POST** /plans/{plan_id}/transactions/import | Import transactions | +| [**update_transaction**](TransactionsApi.md#update_transaction) | **PUT** /plans/{plan_id}/transactions/{transaction_id} | Update a transaction | +| [**update_transactions**](TransactionsApi.md#update_transactions) | **PATCH** /plans/{plan_id}/transactions | Update multiple transactions | ## create_transaction diff --git a/lib/ynab/api/accounts_api.rb b/lib/ynab/api/accounts_api.rb index 128ef4d..acdc239 100644 --- a/lib/ynab/api/accounts_api.rb +++ b/lib/ynab/api/accounts_api.rb @@ -45,7 +45,7 @@ def create_account_with_http_info(plan_id, data, opts = {}) fail ArgumentError, "Missing the required parameter 'data' when calling AccountsApi.create_account" end # resource path - local_var_path = '/budgets/{plan_id}/accounts'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/accounts'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -119,7 +119,7 @@ def get_account_by_id_with_http_info(plan_id, account_id, opts = {}) fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_account_by_id" end # resource path - local_var_path = '/budgets/{plan_id}/accounts/{account_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)) + local_var_path = '/plans/{plan_id}/accounts/{account_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -184,7 +184,7 @@ def get_accounts_with_http_info(plan_id, opts = {}) fail ArgumentError, "Missing the required parameter 'plan_id' when calling AccountsApi.get_accounts" end # resource path - local_var_path = '/budgets/{plan_id}/accounts'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/accounts'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/ynab/api/categories_api.rb b/lib/ynab/api/categories_api.rb index 062ddc5..5aab0f7 100644 --- a/lib/ynab/api/categories_api.rb +++ b/lib/ynab/api/categories_api.rb @@ -45,7 +45,7 @@ def create_category_with_http_info(plan_id, data, opts = {}) fail ArgumentError, "Missing the required parameter 'data' when calling CategoriesApi.create_category" end # resource path - local_var_path = '/budgets/{plan_id}/categories'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/categories'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -119,7 +119,7 @@ def create_category_group_with_http_info(plan_id, data, opts = {}) fail ArgumentError, "Missing the required parameter 'data' when calling CategoriesApi.create_category_group" end # resource path - local_var_path = '/budgets/{plan_id}/category_groups'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/category_groups'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -189,7 +189,7 @@ def get_categories_with_http_info(plan_id, opts = {}) fail ArgumentError, "Missing the required parameter 'plan_id' when calling CategoriesApi.get_categories" end # resource path - local_var_path = '/budgets/{plan_id}/categories'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/categories'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -259,7 +259,7 @@ def get_category_by_id_with_http_info(plan_id, category_id, opts = {}) fail ArgumentError, "Missing the required parameter 'category_id' when calling CategoriesApi.get_category_by_id" end # resource path - local_var_path = '/budgets/{plan_id}/categories/{category_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s)) + local_var_path = '/plans/{plan_id}/categories/{category_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -334,7 +334,7 @@ def get_month_category_by_id_with_http_info(plan_id, month, category_id, opts = fail ArgumentError, "Missing the required parameter 'category_id' when calling CategoriesApi.get_month_category_by_id" end # resource path - local_var_path = '/budgets/{plan_id}/months/{month}/categories/{category_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s)) + local_var_path = '/plans/{plan_id}/months/{month}/categories/{category_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -409,7 +409,7 @@ def update_category_with_http_info(plan_id, category_id, data, opts = {}) fail ArgumentError, "Missing the required parameter 'data' when calling CategoriesApi.update_category" end # resource path - local_var_path = '/budgets/{plan_id}/categories/{category_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s)) + local_var_path = '/plans/{plan_id}/categories/{category_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -489,7 +489,7 @@ def update_category_group_with_http_info(plan_id, category_group_id, data, opts fail ArgumentError, "Missing the required parameter 'data' when calling CategoriesApi.update_category_group" end # resource path - local_var_path = '/budgets/{plan_id}/category_groups/{category_group_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'category_group_id' + '}', CGI.escape(category_group_id.to_s)) + local_var_path = '/plans/{plan_id}/category_groups/{category_group_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'category_group_id' + '}', CGI.escape(category_group_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -575,7 +575,7 @@ def update_month_category_with_http_info(plan_id, month, category_id, data, opts fail ArgumentError, "Missing the required parameter 'data' when calling CategoriesApi.update_month_category" end # resource path - local_var_path = '/budgets/{plan_id}/months/{month}/categories/{category_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s)) + local_var_path = '/plans/{plan_id}/months/{month}/categories/{category_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/ynab/api/deprecated_api.rb b/lib/ynab/api/deprecated_api.rb index 1b50401..3576a4f 100644 --- a/lib/ynab/api/deprecated_api.rb +++ b/lib/ynab/api/deprecated_api.rb @@ -20,7 +20,7 @@ def initialize(api_client = ApiClient.default) @api_client = api_client end # Bulk create transactions - # Creates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /budgets/{plan_id}/transactions' to create multiple transactions. + # Creates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /plans/{plan_id}/transactions' to create multiple transactions. # @param plan_id [String] The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). # @param transactions [BulkTransactions] The list of transactions to create # @param [Hash] opts the optional parameters @@ -31,7 +31,7 @@ def bulk_create_transactions(plan_id, transactions, opts = {}) end # Bulk create transactions - # Creates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /budgets/{plan_id}/transactions' to create multiple transactions. + # Creates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /plans/{plan_id}/transactions' to create multiple transactions. # @param plan_id [String] The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). # @param transactions [BulkTransactions] The list of transactions to create # @param [Hash] opts the optional parameters @@ -49,7 +49,7 @@ def bulk_create_transactions_with_http_info(plan_id, transactions, opts = {}) fail ArgumentError, "Missing the required parameter 'transactions' when calling DeprecatedApi.bulk_create_transactions" end # resource path - local_var_path = '/budgets/{plan_id}/transactions/bulk'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/transactions/bulk'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/ynab/api/money_movements_api.rb b/lib/ynab/api/money_movements_api.rb index c09a6ae..9cf1b8a 100644 --- a/lib/ynab/api/money_movements_api.rb +++ b/lib/ynab/api/money_movements_api.rb @@ -39,7 +39,7 @@ def get_money_movement_groups_with_http_info(plan_id, opts = {}) fail ArgumentError, "Missing the required parameter 'plan_id' when calling MoneyMovementsApi.get_money_movement_groups" end # resource path - local_var_path = '/budgets/{plan_id}/money_movement_groups'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/money_movement_groups'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -108,7 +108,7 @@ def get_money_movement_groups_by_month_with_http_info(plan_id, month, opts = {}) fail ArgumentError, "Missing the required parameter 'month' when calling MoneyMovementsApi.get_money_movement_groups_by_month" end # resource path - local_var_path = '/budgets/{plan_id}/months/{month}/money_movement_groups'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s)) + local_var_path = '/plans/{plan_id}/months/{month}/money_movement_groups'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -171,7 +171,7 @@ def get_money_movements_with_http_info(plan_id, opts = {}) fail ArgumentError, "Missing the required parameter 'plan_id' when calling MoneyMovementsApi.get_money_movements" end # resource path - local_var_path = '/budgets/{plan_id}/money_movements'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/money_movements'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -240,7 +240,7 @@ def get_money_movements_by_month_with_http_info(plan_id, month, opts = {}) fail ArgumentError, "Missing the required parameter 'month' when calling MoneyMovementsApi.get_money_movements_by_month" end # resource path - local_var_path = '/budgets/{plan_id}/months/{month}/money_movements'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s)) + local_var_path = '/plans/{plan_id}/months/{month}/money_movements'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/ynab/api/months_api.rb b/lib/ynab/api/months_api.rb index a773bf0..94c1bee 100644 --- a/lib/ynab/api/months_api.rb +++ b/lib/ynab/api/months_api.rb @@ -45,7 +45,7 @@ def get_plan_month_with_http_info(plan_id, month, opts = {}) fail ArgumentError, "Missing the required parameter 'month' when calling MonthsApi.get_plan_month" end # resource path - local_var_path = '/budgets/{plan_id}/months/{month}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s)) + local_var_path = '/plans/{plan_id}/months/{month}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -110,7 +110,7 @@ def get_plan_months_with_http_info(plan_id, opts = {}) fail ArgumentError, "Missing the required parameter 'plan_id' when calling MonthsApi.get_plan_months" end # resource path - local_var_path = '/budgets/{plan_id}/months'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/months'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/ynab/api/payee_locations_api.rb b/lib/ynab/api/payee_locations_api.rb index 42f44d4..ce62d19 100644 --- a/lib/ynab/api/payee_locations_api.rb +++ b/lib/ynab/api/payee_locations_api.rb @@ -45,7 +45,7 @@ def get_payee_location_by_id_with_http_info(plan_id, payee_location_id, opts = { fail ArgumentError, "Missing the required parameter 'payee_location_id' when calling PayeeLocationsApi.get_payee_location_by_id" end # resource path - local_var_path = '/budgets/{plan_id}/payee_locations/{payee_location_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_location_id' + '}', CGI.escape(payee_location_id.to_s)) + local_var_path = '/plans/{plan_id}/payee_locations/{payee_location_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_location_id' + '}', CGI.escape(payee_location_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -108,7 +108,7 @@ def get_payee_locations_with_http_info(plan_id, opts = {}) fail ArgumentError, "Missing the required parameter 'plan_id' when calling PayeeLocationsApi.get_payee_locations" end # resource path - local_var_path = '/budgets/{plan_id}/payee_locations'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/payee_locations'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -177,7 +177,7 @@ def get_payee_locations_by_payee_with_http_info(plan_id, payee_id, opts = {}) fail ArgumentError, "Missing the required parameter 'payee_id' when calling PayeeLocationsApi.get_payee_locations_by_payee" end # resource path - local_var_path = '/budgets/{plan_id}/payees/{payee_id}/payee_locations'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s)) + local_var_path = '/plans/{plan_id}/payees/{payee_id}/payee_locations'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/ynab/api/payees_api.rb b/lib/ynab/api/payees_api.rb index 84139f4..62ad890 100644 --- a/lib/ynab/api/payees_api.rb +++ b/lib/ynab/api/payees_api.rb @@ -45,7 +45,7 @@ def get_payee_by_id_with_http_info(plan_id, payee_id, opts = {}) fail ArgumentError, "Missing the required parameter 'payee_id' when calling PayeesApi.get_payee_by_id" end # resource path - local_var_path = '/budgets/{plan_id}/payees/{payee_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s)) + local_var_path = '/plans/{plan_id}/payees/{payee_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -110,7 +110,7 @@ def get_payees_with_http_info(plan_id, opts = {}) fail ArgumentError, "Missing the required parameter 'plan_id' when calling PayeesApi.get_payees" end # resource path - local_var_path = '/budgets/{plan_id}/payees'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/payees'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -186,7 +186,7 @@ def update_payee_with_http_info(plan_id, payee_id, data, opts = {}) fail ArgumentError, "Missing the required parameter 'data' when calling PayeesApi.update_payee" end # resource path - local_var_path = '/budgets/{plan_id}/payees/{payee_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s)) + local_var_path = '/plans/{plan_id}/payees/{payee_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/ynab/api/plans_api.rb b/lib/ynab/api/plans_api.rb index 4f6b0d4..ee42688 100644 --- a/lib/ynab/api/plans_api.rb +++ b/lib/ynab/api/plans_api.rb @@ -41,7 +41,7 @@ def get_plan_by_id_with_http_info(plan_id, opts = {}) fail ArgumentError, "Missing the required parameter 'plan_id' when calling PlansApi.get_plan_by_id" end # resource path - local_var_path = '/budgets/{plan_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -105,7 +105,7 @@ def get_plan_settings_by_id_with_http_info(plan_id, opts = {}) fail ArgumentError, "Missing the required parameter 'plan_id' when calling PlansApi.get_plan_settings_by_id" end # resource path - local_var_path = '/budgets/{plan_id}/settings'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/settings'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -164,7 +164,7 @@ def get_plans_with_http_info(opts = {}) @api_client.config.logger.debug 'Calling API: PlansApi.get_plans ...' end # resource path - local_var_path = '/budgets' + local_var_path = '/plans' # query parameters query_params = opts[:query_params] || {} diff --git a/lib/ynab/api/scheduled_transactions_api.rb b/lib/ynab/api/scheduled_transactions_api.rb index 183f59b..9b80580 100644 --- a/lib/ynab/api/scheduled_transactions_api.rb +++ b/lib/ynab/api/scheduled_transactions_api.rb @@ -45,7 +45,7 @@ def create_scheduled_transaction_with_http_info(plan_id, data, opts = {}) fail ArgumentError, "Missing the required parameter 'data' when calling ScheduledTransactionsApi.create_scheduled_transaction" end # resource path - local_var_path = '/budgets/{plan_id}/scheduled_transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/scheduled_transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -119,7 +119,7 @@ def delete_scheduled_transaction_with_http_info(plan_id, scheduled_transaction_i fail ArgumentError, "Missing the required parameter 'scheduled_transaction_id' when calling ScheduledTransactionsApi.delete_scheduled_transaction" end # resource path - local_var_path = '/budgets/{plan_id}/scheduled_transactions/{scheduled_transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s)) + local_var_path = '/plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -188,7 +188,7 @@ def get_scheduled_transaction_by_id_with_http_info(plan_id, scheduled_transactio fail ArgumentError, "Missing the required parameter 'scheduled_transaction_id' when calling ScheduledTransactionsApi.get_scheduled_transaction_by_id" end # resource path - local_var_path = '/budgets/{plan_id}/scheduled_transactions/{scheduled_transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s)) + local_var_path = '/plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -253,7 +253,7 @@ def get_scheduled_transactions_with_http_info(plan_id, opts = {}) fail ArgumentError, "Missing the required parameter 'plan_id' when calling ScheduledTransactionsApi.get_scheduled_transactions" end # resource path - local_var_path = '/budgets/{plan_id}/scheduled_transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/scheduled_transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -329,7 +329,7 @@ def update_scheduled_transaction_with_http_info(plan_id, scheduled_transaction_i fail ArgumentError, "Missing the required parameter 'put_scheduled_transaction_wrapper' when calling ScheduledTransactionsApi.update_scheduled_transaction" end # resource path - local_var_path = '/budgets/{plan_id}/scheduled_transactions/{scheduled_transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s)) + local_var_path = '/plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/ynab/api/transactions_api.rb b/lib/ynab/api/transactions_api.rb index b49e680..66e9380 100644 --- a/lib/ynab/api/transactions_api.rb +++ b/lib/ynab/api/transactions_api.rb @@ -45,7 +45,7 @@ def create_transaction_with_http_info(plan_id, data, opts = {}) fail ArgumentError, "Missing the required parameter 'data' when calling TransactionsApi.create_transaction" end # resource path - local_var_path = '/budgets/{plan_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -119,7 +119,7 @@ def delete_transaction_with_http_info(plan_id, transaction_id, opts = {}) fail ArgumentError, "Missing the required parameter 'transaction_id' when calling TransactionsApi.delete_transaction" end # resource path - local_var_path = '/budgets/{plan_id}/transactions/{transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'transaction_id' + '}', CGI.escape(transaction_id.to_s)) + local_var_path = '/plans/{plan_id}/transactions/{transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'transaction_id' + '}', CGI.escape(transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -188,7 +188,7 @@ def get_transaction_by_id_with_http_info(plan_id, transaction_id, opts = {}) fail ArgumentError, "Missing the required parameter 'transaction_id' when calling TransactionsApi.get_transaction_by_id" end # resource path - local_var_path = '/budgets/{plan_id}/transactions/{transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'transaction_id' + '}', CGI.escape(transaction_id.to_s)) + local_var_path = '/plans/{plan_id}/transactions/{transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'transaction_id' + '}', CGI.escape(transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -257,7 +257,7 @@ def get_transactions_with_http_info(plan_id, opts = {}) fail ArgumentError, "Missing the required parameter 'plan_id' when calling TransactionsApi.get_transactions" end # resource path - local_var_path = '/budgets/{plan_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -335,7 +335,7 @@ def get_transactions_by_account_with_http_info(plan_id, account_id, opts = {}) fail ArgumentError, "Missing the required parameter 'account_id' when calling TransactionsApi.get_transactions_by_account" end # resource path - local_var_path = '/budgets/{plan_id}/accounts/{account_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)) + local_var_path = '/plans/{plan_id}/accounts/{account_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -413,7 +413,7 @@ def get_transactions_by_category_with_http_info(plan_id, category_id, opts = {}) fail ArgumentError, "Missing the required parameter 'category_id' when calling TransactionsApi.get_transactions_by_category" end # resource path - local_var_path = '/budgets/{plan_id}/categories/{category_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s)) + local_var_path = '/plans/{plan_id}/categories/{category_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -491,7 +491,7 @@ def get_transactions_by_month_with_http_info(plan_id, month, opts = {}) fail ArgumentError, "Missing the required parameter 'month' when calling TransactionsApi.get_transactions_by_month" end # resource path - local_var_path = '/budgets/{plan_id}/months/{month}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s)) + local_var_path = '/plans/{plan_id}/months/{month}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -569,7 +569,7 @@ def get_transactions_by_payee_with_http_info(plan_id, payee_id, opts = {}) fail ArgumentError, "Missing the required parameter 'payee_id' when calling TransactionsApi.get_transactions_by_payee" end # resource path - local_var_path = '/budgets/{plan_id}/payees/{payee_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s)) + local_var_path = '/plans/{plan_id}/payees/{payee_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -635,7 +635,7 @@ def import_transactions_with_http_info(plan_id, opts = {}) fail ArgumentError, "Missing the required parameter 'plan_id' when calling TransactionsApi.import_transactions" end # resource path - local_var_path = '/budgets/{plan_id}/transactions/import'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/transactions/import'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -710,7 +710,7 @@ def update_transaction_with_http_info(plan_id, transaction_id, data, opts = {}) fail ArgumentError, "Missing the required parameter 'data' when calling TransactionsApi.update_transaction" end # resource path - local_var_path = '/budgets/{plan_id}/transactions/{transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'transaction_id' + '}', CGI.escape(transaction_id.to_s)) + local_var_path = '/plans/{plan_id}/transactions/{transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'transaction_id' + '}', CGI.escape(transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -784,7 +784,7 @@ def update_transactions_with_http_info(plan_id, data, opts = {}) fail ArgumentError, "Missing the required parameter 'data' when calling TransactionsApi.update_transactions" end # resource path - local_var_path = '/budgets/{plan_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) + local_var_path = '/plans/{plan_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/ynab/models/plan_detail_response_data.rb b/lib/ynab/models/plan_detail_response_data.rb index fb3986a..1ea1ae2 100644 --- a/lib/ynab/models/plan_detail_response_data.rb +++ b/lib/ynab/models/plan_detail_response_data.rb @@ -12,7 +12,7 @@ module YNAB class PlanDetailResponseData < ApiModelBase - attr_accessor :budget + attr_accessor :plan # The knowledge of the server attr_accessor :server_knowledge @@ -20,7 +20,7 @@ class PlanDetailResponseData < ApiModelBase # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'budget' => :'budget', + :'plan' => :'plan', :'server_knowledge' => :'server_knowledge' } end @@ -33,7 +33,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'budget' => :'PlanDetail', + :'plan' => :'PlanDetail', :'server_knowledge' => :'Integer' } end @@ -59,8 +59,8 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'budget') - self.budget = attributes[:'budget'] + if attributes.key?(:'plan') + self.plan = attributes[:'plan'] end if attributes.key?(:'server_knowledge') @@ -78,7 +78,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @budget.nil? + return false if @plan.nil? return false if @server_knowledge.nil? true end @@ -88,7 +88,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - budget == o.budget && + plan == o.plan && server_knowledge == o.server_knowledge end @@ -101,7 +101,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [budget, server_knowledge].hash + [plan, server_knowledge].hash end # Builds the object from hash diff --git a/lib/ynab/models/plan_summary_response_data.rb b/lib/ynab/models/plan_summary_response_data.rb index 523eed4..57281c2 100644 --- a/lib/ynab/models/plan_summary_response_data.rb +++ b/lib/ynab/models/plan_summary_response_data.rb @@ -12,15 +12,15 @@ module YNAB class PlanSummaryResponseData < ApiModelBase - attr_accessor :budgets + attr_accessor :plans - attr_accessor :default_budget + attr_accessor :default_plan # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'budgets' => :'budgets', - :'default_budget' => :'default_budget' + :'plans' => :'plans', + :'default_plan' => :'default_plan' } end @@ -32,8 +32,8 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'budgets' => :'Array', - :'default_budget' => :'PlanSummary' + :'plans' => :'Array', + :'default_plan' => :'PlanSummary' } end @@ -58,14 +58,14 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'budgets') - if (value = attributes[:'budgets']).is_a?(Array) - self.budgets = value + if attributes.key?(:'plans') + if (value = attributes[:'plans']).is_a?(Array) + self.plans = value end end - if attributes.key?(:'default_budget') - self.default_budget = attributes[:'default_budget'] + if attributes.key?(:'default_plan') + self.default_plan = attributes[:'default_plan'] end end @@ -79,7 +79,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @budgets.nil? + return false if @plans.nil? true end @@ -88,8 +88,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - budgets == o.budgets && - default_budget == o.default_budget + plans == o.plans && + default_plan == o.default_plan end # @see the `==` method @@ -101,7 +101,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [budgets, default_budget].hash + [plans, default_plan].hash end # Builds the object from hash diff --git a/open_api_spec.yaml b/open_api_spec.yaml index 4089a24..3da6a84 100644 --- a/open_api_spec.yaml +++ b/open_api_spec.yaml @@ -5,7 +5,7 @@ info: and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com - version: 1.78.0 + version: 1.79.0 servers: - url: https://api.ynab.com/v1 security: @@ -51,7 +51,7 @@ paths: application/json: schema: $ref: "#/components/schemas/UserResponse" - /budgets: + /plans: get: tags: - Plans @@ -77,7 +77,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}: + /plans/{plan_id}: get: tags: - Plans @@ -114,7 +114,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/settings: + /plans/{plan_id}/settings: get: tags: - Plans @@ -143,7 +143,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/accounts: + /plans/{plan_id}/accounts: get: tags: - Accounts @@ -216,7 +216,7 @@ paths: schema: $ref: "#/components/schemas/ErrorResponse" x-codegen-request-body-name: data - /budgets/{plan_id}/accounts/{account_id}: + /plans/{plan_id}/accounts/{account_id}: get: tags: - Accounts @@ -252,7 +252,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/categories: + /plans/{plan_id}/categories: get: tags: - Categories @@ -327,7 +327,7 @@ paths: schema: $ref: "#/components/schemas/ErrorResponse" x-codegen-request-body-name: data - /budgets/{plan_id}/categories/{category_id}: + /plans/{plan_id}/categories/{category_id}: get: tags: - Categories @@ -406,7 +406,7 @@ paths: schema: $ref: "#/components/schemas/ErrorResponse" x-codegen-request-body-name: data - /budgets/{plan_id}/months/{month}/categories/{category_id}: + /plans/{plan_id}/months/{month}/categories/{category_id}: get: tags: - Categories @@ -504,7 +504,7 @@ paths: schema: $ref: "#/components/schemas/ErrorResponse" x-codegen-request-body-name: data - /budgets/{plan_id}/category_groups: + /plans/{plan_id}/category_groups: post: tags: - Categories @@ -542,7 +542,7 @@ paths: schema: $ref: "#/components/schemas/ErrorResponse" x-codegen-request-body-name: data - /budgets/{plan_id}/category_groups/{category_group_id}: + /plans/{plan_id}/category_groups/{category_group_id}: patch: tags: - Categories @@ -586,7 +586,7 @@ paths: schema: $ref: "#/components/schemas/ErrorResponse" x-codegen-request-body-name: data - /budgets/{plan_id}/payees: + /plans/{plan_id}/payees: get: tags: - Payees @@ -622,7 +622,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/payees/{payee_id}: + /plans/{plan_id}/payees/{payee_id}: get: tags: - Payees @@ -700,7 +700,7 @@ paths: schema: $ref: "#/components/schemas/ErrorResponse" x-codegen-request-body-name: data - /budgets/{plan_id}/payee_locations: + /plans/{plan_id}/payee_locations: get: tags: - Payee Locations @@ -729,7 +729,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/payee_locations/{payee_location_id}: + /plans/{plan_id}/payee_locations/{payee_location_id}: get: tags: - Payee Locations @@ -764,7 +764,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/payees/{payee_id}/payee_locations: + /plans/{plan_id}/payees/{payee_id}/payee_locations: get: tags: - Payee Locations @@ -799,7 +799,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/months: + /plans/{plan_id}/months: get: tags: - Months @@ -835,7 +835,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/months/{month}: + /plans/{plan_id}/months/{month}: get: tags: - Months @@ -872,7 +872,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/money_movements: + /plans/{plan_id}/money_movements: get: tags: - Money Movements @@ -901,7 +901,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/months/{month}/money_movements: + /plans/{plan_id}/months/{month}/money_movements: get: tags: - Money Movements @@ -938,7 +938,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/money_movement_groups: + /plans/{plan_id}/money_movement_groups: get: tags: - Money Movements @@ -967,7 +967,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/months/{month}/money_movement_groups: + /plans/{plan_id}/months/{month}/money_movement_groups: get: tags: - Money Movements @@ -1004,7 +1004,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/transactions: + /plans/{plan_id}/transactions: get: tags: - Transactions @@ -1158,7 +1158,7 @@ paths: schema: $ref: "#/components/schemas/ErrorResponse" x-codegen-request-body-name: data - /budgets/{plan_id}/transactions/import: + /plans/{plan_id}/transactions/import: post: tags: - Transactions @@ -1200,7 +1200,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/transactions/{transaction_id}: + /plans/{plan_id}/transactions/{transaction_id}: get: tags: - Transactions @@ -1312,7 +1312,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/accounts/{account_id}/transactions: + /plans/{plan_id}/accounts/{account_id}/transactions: get: tags: - Transactions @@ -1371,7 +1371,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/categories/{category_id}/transactions: + /plans/{plan_id}/categories/{category_id}/transactions: get: tags: - Transactions @@ -1430,7 +1430,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/payees/{payee_id}/transactions: + /plans/{plan_id}/payees/{payee_id}/transactions: get: tags: - Transactions @@ -1489,7 +1489,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/months/{month}/transactions: + /plans/{plan_id}/months/{month}/transactions: get: tags: - Transactions @@ -1549,7 +1549,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" - /budgets/{plan_id}/scheduled_transactions: + /plans/{plan_id}/scheduled_transactions: get: tags: - Scheduled Transactions @@ -1623,7 +1623,7 @@ paths: schema: $ref: "#/components/schemas/ErrorResponse" x-codegen-request-body-name: data - /budgets/{plan_id}/scheduled_transactions/{scheduled_transaction_id}: + /plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id}: get: tags: - Scheduled Transactions @@ -1827,14 +1827,14 @@ components: properties: data: required: - - budgets + - plans type: object properties: - budgets: + plans: type: array items: $ref: "#/components/schemas/PlanSummary" - default_budget: + default_plan: allOf: - $ref: "#/components/schemas/PlanSummary" nullable: true @@ -1879,11 +1879,11 @@ components: properties: data: required: - - budget + - plan - server_knowledge type: object properties: - budget: + plan: $ref: "#/components/schemas/PlanDetail" server_knowledge: type: integer diff --git a/spec/api/accounts_spec.rb b/spec/api/accounts_spec.rb index f4256bb..e0eeb95 100644 --- a/spec/api/accounts_spec.rb +++ b/spec/api/accounts_spec.rb @@ -34,7 +34,7 @@ end end - describe 'GET /budgets/{plan_id}/accounts' do + describe 'GET /plans/{plan_id}/accounts' do it 'returns a list of accounts' do VCR.use_cassette("accounts") do response = instance.get_accounts(plan_id) @@ -44,7 +44,7 @@ end end - describe 'GET /budgets/{plan_id}/accounts/{account_id}' do + describe 'GET /plans/{plan_id}/accounts/{account_id}' do it 'returns an account' do VCR.use_cassette("account") do response = instance.get_account_by_id(plan_id, '5982e895-98e5-41ca-9681-0b6de1036a1c') @@ -54,7 +54,7 @@ end end - describe 'POST /budgets/{plan_id}/accounts' do + describe 'POST /plans/{plan_id}/accounts' do it 'creates an account' do VCR.use_cassette("create_account") do response = instance.create_account(plan_id, { diff --git a/spec/api/categories_spec.rb b/spec/api/categories_spec.rb index 907ff02..96de09a 100644 --- a/spec/api/categories_spec.rb +++ b/spec/api/categories_spec.rb @@ -35,7 +35,7 @@ end end - describe 'GET /budgets/{plan_id}/categories' do + describe 'GET /plans/{plan_id}/categories' do it 'returns a list of categories' do VCR.use_cassette("categories") do response = instance.get_categories(plan_id) @@ -46,7 +46,7 @@ end end - describe 'GET /budgets/{plan_id}/categories/{category_id}' do + describe 'GET /plans/{plan_id}/categories/{category_id}' do it 'returns a category' do VCR.use_cassette("category") do response = instance.get_category_by_id(plan_id, category_id) @@ -56,7 +56,7 @@ end end - describe 'PATCH /budgets/{plan_id}/months/{month}/categories/{category_id}' do + describe 'PATCH /plans/{plan_id}/months/{month}/categories/{category_id}' do it 'returns a category' do VCR.use_cassette("patch_month_category") do response = instance.update_month_category(plan_id, '2018-02-01', category_id, month_category: { budgeted: 20382 }) diff --git a/spec/api/months_spec.rb b/spec/api/months_spec.rb index d0aace6..a61c5d4 100644 --- a/spec/api/months_spec.rb +++ b/spec/api/months_spec.rb @@ -34,7 +34,7 @@ end end - describe 'GET /budgets/{plan_id}/months' do + describe 'GET /plans/{plan_id}/months' do it 'returns a list of months' do VCR.use_cassette("months") do response = instance.get_plan_months(plan_id) @@ -44,7 +44,7 @@ end end - describe 'GET /budgets/{plan_id}/months/{month}' do + describe 'GET /plans/{plan_id}/months/{month}' do it 'returns a month' do VCR.use_cassette("month") do response = instance.get_plan_month(plan_id, '2018-02-01') diff --git a/spec/api/payee_locations_spec.rb b/spec/api/payee_locations_spec.rb index 9f016c8..d70fc1d 100644 --- a/spec/api/payee_locations_spec.rb +++ b/spec/api/payee_locations_spec.rb @@ -34,7 +34,7 @@ end end - describe 'GET /budgets/{plan_id}/payee_location' do + describe 'GET /plans/{plan_id}/payee_location' do it 'returns a list of payee locations' do VCR.use_cassette("payee_locations") do response = instance.get_payee_locations(plan_id) @@ -44,7 +44,7 @@ end end - describe 'GET /budgets/{plan_id}/payee_locations/{payee_id}' do + describe 'GET /plans/{plan_id}/payee_locations/{payee_id}' do it 'returns a payee location' do VCR.use_cassette("payee_location") do response = instance.get_payee_location_by_id(plan_id, '052c7814-1797-44ce-9519-020e864e4928') diff --git a/spec/api/payees_spec.rb b/spec/api/payees_spec.rb index b29ac07..ad7ce9d 100644 --- a/spec/api/payees_spec.rb +++ b/spec/api/payees_spec.rb @@ -34,7 +34,7 @@ end end - describe 'GET /budgets/{plan_id}/payees' do + describe 'GET /plans/{plan_id}/payees' do it 'returns a list of payees' do VCR.use_cassette("payees") do response = instance.get_payees(plan_id) @@ -44,7 +44,7 @@ end end - describe 'GET /budgets/{plan_id}/payees/{payee_id}' do + describe 'GET /plans/{plan_id}/payees/{payee_id}' do it 'returns a payee' do VCR.use_cassette("payee") do response = instance.get_payee_by_id(plan_id, '200e6eb1-02fc-4af6-be26-27c5740bb949') diff --git a/spec/api/plans_spec.rb b/spec/api/plans_spec.rb index 6dd50d4..b634f2b 100644 --- a/spec/api/plans_spec.rb +++ b/spec/api/plans_spec.rb @@ -33,22 +33,22 @@ end end - describe 'GET /budgets' do - it 'returns a list of budgets' do - VCR.use_cassette("budgets") do + describe 'GET /plans' do + it 'returns a list of plans' do + VCR.use_cassette("plans") do response = instance.get_plans expect(client.last_request.response.options[:code]).to be 200 - expect(response.data.budgets.length).to be 4 + expect(response.data.plans.length).to be 4 end end end - describe 'GET /budgets/{plan_id}' do - it 'returns a budget' do - VCR.use_cassette("budget") do + describe 'GET /plans/{plan_id}' do + it 'returns a plan' do + VCR.use_cassette("plan") do response = instance.get_plan_by_id('f419ac25-6217-4175-88dc-c3136ff5f6fd') - expect(response.data.budget).to be - expect(response.data.budget.name).to eq "ABC" + expect(response.data.plan).to be + expect(response.data.plan.name).to eq "ABC" end end end diff --git a/spec/api/scheduled_transactions_spec.rb b/spec/api/scheduled_transactions_spec.rb index e70aee4..fb56557 100644 --- a/spec/api/scheduled_transactions_spec.rb +++ b/spec/api/scheduled_transactions_spec.rb @@ -34,7 +34,7 @@ end end - describe 'GET /budgets/{plan_id}/scheduled_transactions' do + describe 'GET /plans/{plan_id}/scheduled_transactions' do it 'returns a list of transactions' do VCR.use_cassette("scheduled_transactions") do response = instance.get_scheduled_transactions(plan_id) @@ -44,7 +44,7 @@ end end - describe 'GET /budgets/{plan_id}/scheduled_transactions/{payee_id}' do + describe 'GET /plans/{plan_id}/scheduled_transactions/{payee_id}' do it 'returns a payee' do VCR.use_cassette("scheduled_transaction") do response = instance.get_scheduled_transaction_by_id(plan_id, '1a8e4929-3ad1-4859-8443-2aeeab0684ab') @@ -54,7 +54,7 @@ end end - describe 'POST /budgets/{plan_id}/scheduled_transactions' do + describe 'POST /plans/{plan_id}/scheduled_transactions' do it 'creates a scheduled transaction' do VCR.use_cassette("create_scheduled_transaction") do response = instance.create_scheduled_transaction(plan_id, { diff --git a/spec/api/transactions_spec.rb b/spec/api/transactions_spec.rb index 0eb14f8..fd9bfa2 100644 --- a/spec/api/transactions_spec.rb +++ b/spec/api/transactions_spec.rb @@ -36,7 +36,7 @@ end end - describe 'GET /budgets/{plan_id}/transactions' do + describe 'GET /plans/{plan_id}/transactions' do it 'returns a list of transactions' do VCR.use_cassette("transactions") do response = instance.get_transactions(plan_id) @@ -58,7 +58,7 @@ end end - describe 'GET /budgets/{plan_id}/category/{category_id}/transactions' do + describe 'GET /plans/{plan_id}/category/{category_id}/transactions' do it 'returns a list of transactions for a category' do VCR.use_cassette("category_transactions") do response = instance.get_transactions_by_category(plan_id, category_id) @@ -68,7 +68,7 @@ end end - describe 'GET /budgets/{plan_id}/category/{payee_id}/transactions' do + describe 'GET /plans/{plan_id}/category/{payee_id}/transactions' do it 'returns a list of transactions for a payee' do VCR.use_cassette("payee_transactions") do response = instance.get_transactions_by_payee(plan_id, payee_id) @@ -78,7 +78,7 @@ end end - describe 'GET /budgets/{plan_id}/months/{month}/transactions' do + describe 'GET /plans/{plan_id}/months/{month}/transactions' do it 'returns a list of transactions for a month' do VCR.use_cassette("month_transactions") do response = instance.get_transactions_by_month(plan_id, "2024-07-01") @@ -88,7 +88,7 @@ end end - describe 'GET /budgets/{plan_id}/transaction/{transaction_id}' do + describe 'GET /plans/{plan_id}/transaction/{transaction_id}' do it 'returns a transaction' do VCR.use_cassette("transaction") do response = instance.get_transaction_by_id(plan_id, '81c374ff-74ab-4d6d-8d5a-ba3ad3fa68e4') @@ -98,7 +98,7 @@ end end - describe 'POST /budgets/{plan_id}/transactions' do + describe 'POST /plans/{plan_id}/transactions' do it 'creates a transaction' do VCR.use_cassette("create_transaction") do response = instance.create_transaction(plan_id, { @@ -137,7 +137,7 @@ end end - describe 'PUT /budgets/{plan_id}/transactions/{transaction_id}' do + describe 'PUT /plans/{plan_id}/transactions/{transaction_id}' do it 'updates a transaction' do VCR.use_cassette("update_transaction") do response = instance.update_transaction(plan_id, '4cd63d34-3814-4f50-abd0-59ce05b40d91', { @@ -154,7 +154,7 @@ end end - describe 'PATCH /budgets/{plan_id}/transactions' do + describe 'PATCH /plans/{plan_id}/transactions' do it 'updates multiple transactions' do VCR.use_cassette("update_transactions") do response = instance.update_transactions(plan_id, { @@ -178,7 +178,7 @@ end end - describe 'POST /budgets/{plan_id}/transactions' do + describe 'POST /plans/{plan_id}/transactions' do it 'create multiple transactions' do VCR.use_cassette("multiple_transactions") do response = instance.create_transaction(plan_id, { @@ -209,7 +209,7 @@ end end - describe 'POST /budgets/{plan_id}/transactions/import' do + describe 'POST /plans/{plan_id}/transactions/import' do it 'import transactions' do VCR.use_cassette("import_transactions") do response = instance.import_transactions(plan_id) @@ -220,7 +220,7 @@ end end - describe 'POST /budgets/{plan_id}/transactions/bulk' do + describe 'POST /plans/{plan_id}/transactions/bulk' do it 'bulk creations transactions' do VCR.use_cassette("bulk_transactions") do response = instance.bulk_create_transactions(plan_id, { diff --git a/spec/fixtures/vcr_cassettes/account.yml b/spec/fixtures/vcr_cassettes/account.yml index a159008..5e06687 100644 --- a/spec/fixtures/vcr_cassettes/account.yml +++ b/spec/fixtures/vcr_cassettes/account.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts/5982e895-98e5-41ca-9681-0b6de1036a1c + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts/5982e895-98e5-41ca-9681-0b6de1036a1c body: encoding: US-ASCII string: '' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"account":{"id":"5982e895-98e5-41ca-9681-0b6de1036a1c","name":"Checking","type":"checking","on_budget":true,"closed":false,"note":null,"balance":998000,"cleared_balance":1000000,"uncleared_balance":-2000}}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts/5982e895-98e5-41ca-9681-0b6de1036a1c + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts/5982e895-98e5-41ca-9681-0b6de1036a1c recorded_at: Thu, 15 Feb 2018 18:59:57 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/accounts.yml b/spec/fixtures/vcr_cassettes/accounts.yml index fc7f2da..428ad1d 100644 --- a/spec/fixtures/vcr_cassettes/accounts.yml +++ b/spec/fixtures/vcr_cassettes/accounts.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts body: encoding: US-ASCII string: '' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"accounts":[{"id":"5982e895-98e5-41ca-9681-0b6de1036a1c","name":"Checking","type":"checking","on_budget":true,"closed":false,"note":null,"balance":998000,"cleared_balance":1000000,"uncleared_balance":-2000}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts recorded_at: Thu, 15 Feb 2018 18:59:57 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/accounts_unauthorized.yml b/spec/fixtures/vcr_cassettes/accounts_unauthorized.yml index 82d41ca..793ab2d 100644 --- a/spec/fixtures/vcr_cassettes/accounts_unauthorized.yml +++ b/spec/fixtures/vcr_cassettes/accounts_unauthorized.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts body: encoding: US-ASCII string: '' @@ -44,6 +44,6 @@ http_interactions: string: '{"error":{"id":"401","name":"unauthorized","detail":"Unauthorized"}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts recorded_at: Thu, 15 Feb 2018 18:59:57 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/budgets.yml b/spec/fixtures/vcr_cassettes/budgets.yml deleted file mode 100644 index 7df1a14..0000000 --- a/spec/fixtures/vcr_cassettes/budgets.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://api.localhost:3000/v1/budgets - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - api_client/ruby/0.1.0 - Content-Type: - - application/json - Accept: - - application/json - Authorization: - - Bearer 9f1a2c4842b614a771aaae9220fc54ae835e298c4654dc2c9205fc1d7bd1a045 - Expect: - - '' - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json; charset=utf-8 - Vary: - - Accept-Encoding, Origin - ETag: - - W/"ab6962c846032f67f346997e36a2d21e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - cac5447b-f782-466a-9f0e-bf6fc725bf7f - X-Runtime: - - '0.176181' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: '{"data":{"budgets":[{"id":"36e85244-5254-47be-a7d1-28be746a7f72","name":"Hammel - Budget","last_modified_on":"2018-02-14T20:28:50+00:00","date_format":{"locale":"en_US"},"currency_format":{"locale":"en_US"},"first_month":"2010-10-01","last_month":"2018-02-01"},{"id":"5b202339-ba6a-4498-bc93-f6909ec38153","name":"Household - Budget","last_modified_on":"2018-02-14T20:28:53+00:00","date_format":{"locale":"en_US"},"currency_format":{"locale":"en_US"},"first_month":"2013-09-01","last_month":"2018-02-01"},{"id":"9db9a05d-c61c-4ce8-95ea-06174910f332","name":"My - Budget","last_modified_on":"2018-02-15T18:24:02+00:00","date_format":{"format":"MM/DD/YYYY"},"currency_format":{"iso_code":"USD","example_format":"123,456.78","decimal_digits":2,"decimal_separator":".","symbol_first":true,"group_separator":",","currency_symbol":"$","display_symbol":true},"first_month":"2018-02-01","last_month":"2018-02-01"},{"id":"f419ac25-6217-4175-88dc-c3136ff5f6fd","name":"ABC","last_modified_on":"2018-02-15T18:53:19+00:00","date_format":{"format":"MM/DD/YYYY"},"currency_format":{"iso_code":"USD","example_format":"123,456.78","decimal_digits":2,"decimal_separator":".","symbol_first":true,"group_separator":",","currency_symbol":"$","display_symbol":true},"first_month":"2018-02-01","last_month":"2018-02-01"}]}}' - http_version: '1.1' - adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets - recorded_at: Thu, 15 Feb 2018 18:59:58 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/budgets_unauthorized.yml b/spec/fixtures/vcr_cassettes/budgets_unauthorized.yml deleted file mode 100644 index 56b6b84..0000000 --- a/spec/fixtures/vcr_cassettes/budgets_unauthorized.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://api.localhost:3000/v1/budgets - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - api_client/ruby/0.1.0 - Content-Type: - - application/json - Accept: - - application/json - Authorization: - - Bearer not_valid_access_token - Expect: - - '' - response: - status: - code: 401 - message: Unauthorized - headers: - Cache-Control: - - no-store - Pragma: - - no-cache - WWW-Authenticate: - - Bearer realm="Doorkeeper", error="invalid_token", error_description="The access - token is invalid" - Content-Type: - - application/json; charset=utf-8 - Vary: - - Accept-Encoding, Origin - X-Request-Id: - - 45145cc7-12a5-4f74-bf0a-d25b6c28ff73 - X-Runtime: - - '0.168549' - Transfer-Encoding: - - chunked - body: - encoding: UTF-8 - string: '{"error":{"id":"401","name":"unauthorized","detail":"Unauthorized"}}' - http_version: '1.1' - adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets - recorded_at: Thu, 15 Feb 2018 18:59:58 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/bulk_transactions.yml b/spec/fixtures/vcr_cassettes/bulk_transactions.yml index 2d2822b..0dc5d59 100644 --- a/spec/fixtures/vcr_cassettes/bulk_transactions.yml +++ b/spec/fixtures/vcr_cassettes/bulk_transactions.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/bulk + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/bulk body: encoding: UTF-8 string: '{"transactions":[{"date":"2018-01-01","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","amount":10000},{"date":"2018-01-02","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","amount":20000},{"date":"2018-01-03","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","amount":30000,"import_id":"123456"}]}' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"bulk":{"transaction_ids":["7c6ff284-517b-419a-a08b-3f24e2869618","a6e357f4-a233-4f3a-9bb3-87e45fadaf62","27d58f81-2200-4fe8-8df8-2ff100de6563"],"duplicate_import_ids":[]}}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/bulk + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/bulk recorded_at: Thu, 15 Feb 2018 19:13:50 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/categories.yml b/spec/fixtures/vcr_cassettes/categories.yml index 4218718..49ca07a 100644 --- a/spec/fixtures/vcr_cassettes/categories.yml +++ b/spec/fixtures/vcr_cassettes/categories.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories body: encoding: US-ASCII string: '' @@ -62,6 +62,6 @@ http_interactions: Categories","hidden":false,"categories":[]}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories recorded_at: Thu, 15 Feb 2018 18:59:58 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/categories_unauthorized.yml b/spec/fixtures/vcr_cassettes/categories_unauthorized.yml index 2a9cd20..19241e7 100644 --- a/spec/fixtures/vcr_cassettes/categories_unauthorized.yml +++ b/spec/fixtures/vcr_cassettes/categories_unauthorized.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories body: encoding: US-ASCII string: '' @@ -44,6 +44,6 @@ http_interactions: string: '{"error":{"id":"401","name":"unauthorized","detail":"Unauthorized"}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories recorded_at: Thu, 15 Feb 2018 18:59:58 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/category.yml b/spec/fixtures/vcr_cassettes/category.yml index 6e8e4a3..aafc459 100644 --- a/spec/fixtures/vcr_cassettes/category.yml +++ b/spec/fixtures/vcr_cassettes/category.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories/acd2a771-0a56-4dba-97bd-3952b0879282 + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories/acd2a771-0a56-4dba-97bd-3952b0879282 body: encoding: US-ASCII string: '' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"category":{"id":"574fac19-537d-46a8-be2b-d2f875691165","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Groceries","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0}}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories/574fac19-537d-46a8-be2b-d2f875691165 + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories/574fac19-537d-46a8-be2b-d2f875691165 recorded_at: Thu, 15 Feb 2018 18:59:59 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/category_transactions.yml b/spec/fixtures/vcr_cassettes/category_transactions.yml index 69e04e6..f31fb3b 100644 --- a/spec/fixtures/vcr_cassettes/category_transactions.yml +++ b/spec/fixtures/vcr_cassettes/category_transactions.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories/84ffe61c-081c-44db-ad23-6ee809206c40/transactions + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories/84ffe61c-081c-44db-ad23-6ee809206c40/transactions body: encoding: US-ASCII string: '' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"transactions":[{"type":"subtransaction","id":"4a675c31-f5f1-43ba-8c9a-6cd7d5b0cac4","parent_transaction_id":"56a3ae86-ce55-4e23-923b-6cb59add860b","date":"2018-03-26","amount":-50000,"memo":"","cleared":"uncleared","approved":true,"flag_color":null,"account_id":"16addaa3-cfaf-4e57-933c-7e1645f000f0","payee_id":null,"category_id":"84ffe61c-081c-44db-ad23-6ee809206c40","transfer_account_id":null,"import_id":null},{"type":"subtransaction","id":"4c3f5877-b4b9-4d5a-9177-be7dfcd86c6e","parent_transaction_id":"910a79e1-29f5-4789-a2a0-2a69c2f94a2b","date":"2018-03-26","amount":-25000,"memo":"","cleared":"uncleared","approved":true,"flag_color":null,"account_id":"16addaa3-cfaf-4e57-933c-7e1645f000f0","payee_id":null,"category_id":"84ffe61c-081c-44db-ad23-6ee809206c40","transfer_account_id":null,"import_id":null},{"type":"transaction","id":"d477e91a-1f2b-4df5-8069-6b61dee51259","parent_transaction_id":null,"date":"2018-03-27","amount":-13000,"memo":"","cleared":"uncleared","approved":true,"flag_color":null,"account_id":"16addaa3-cfaf-4e57-933c-7e1645f000f0","payee_id":"2676f959-c5de-4db2-8d3f-2503777b25fb","category_id":"84ffe61c-081c-44db-ad23-6ee809206c40","transfer_account_id":null,"import_id":null}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/6e6aa585-8537-4afc-950f-93d55fac17fa/categories/84ffe61c-081c-44db-ad23-6ee809206c40/transactions + effective_url: http://api.localhost:3000/v1/plans/6e6aa585-8537-4afc-950f-93d55fac17fa/categories/84ffe61c-081c-44db-ad23-6ee809206c40/transactions recorded_at: Tue, 27 Mar 2018 17:02:30 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/create_account.yml b/spec/fixtures/vcr_cassettes/create_account.yml index 7240edd..525f24b 100644 --- a/spec/fixtures/vcr_cassettes/create_account.yml +++ b/spec/fixtures/vcr_cassettes/create_account.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts body: encoding: UTF-8 string: '{"account":{"name":"New Checking Account","type":"checking","balance":215000}}' @@ -46,6 +46,6 @@ http_interactions: Checking Account","type":"checking","on_budget":true,"closed":false,"note":null,"balance":215000,"cleared_balance":215000,"uncleared_balance":0,"transfer_payee_id":"50031af4-c7b0-4a97-a202-daeccf8e0b2f","deleted":false},"server_knowledge":45}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/accounts recorded_at: Wed, 12 Aug 2020 15:04:29 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/create_scheduled_transaction.yml b/spec/fixtures/vcr_cassettes/create_scheduled_transaction.yml index c966786..d50e1cc 100644 --- a/spec/fixtures/vcr_cassettes/create_scheduled_transaction.yml +++ b/spec/fixtures/vcr_cassettes/create_scheduled_transaction.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions body: encoding: UTF-8 string: '{"scheduled_transaction":{"date":"2025-01-01","account_id":"49b0c987-7d2b-46ec-ba14-f8a7e79fb830","amount":20000,"frequency":"weekly"}}' @@ -58,6 +58,6 @@ http_interactions: string: '{"data":{"scheduled_transaction":{"id":"5901eada-db36-4d95-b737-c1a5cc43a915","date_first":"2025-01-01","date_next":"2025-01-01","frequency":"weekly","amount":20000,"memo":null,"flag_color":null,"flag_name":null,"account_id":"49b0c987-7d2b-46ec-ba14-f8a7e79fb830","account_name":"Checking","payee_id":null,"payee_name":null,"category_id":null,"category_name":"Uncategorized","transfer_account_id":null,"deleted":false,"subtransactions":[]},"server_knowledge":64}}' http_version: '1.1' adapter_metadata: - effective_url: http://localhost:3000/papi/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions + effective_url: http://localhost:3000/papi/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions recorded_at: Mon, 08 Jul 2024 23:16:33 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/create_transaction.yml b/spec/fixtures/vcr_cassettes/create_transaction.yml index 7d6f529..d7d3488 100644 --- a/spec/fixtures/vcr_cassettes/create_transaction.yml +++ b/spec/fixtures/vcr_cassettes/create_transaction.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions body: encoding: UTF-8 string: '{"transaction":{"date":"2018-01-01","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","amount":20000}}' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"transaction":{"id":"4cd63d34-3814-4f50-abd0-59ce05b40d91","date":"2018-01-01","amount":20000,"memo":null,"cleared":"uncleared","approved":false,"flag_color":null,"account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","payee_id":null,"category_id":null,"transfer_account_id":null,"import_id":null,"subtransactions":[]}}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions recorded_at: Thu, 15 Feb 2018 19:06:36 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/create_transactions.yml b/spec/fixtures/vcr_cassettes/create_transactions.yml index 90872c1..74461a4 100644 --- a/spec/fixtures/vcr_cassettes/create_transactions.yml +++ b/spec/fixtures/vcr_cassettes/create_transactions.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions body: encoding: UTF-8 string: '{"transactions":[{"date":"2018-01-01","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","amount":20000},{"date":"2018-01-02","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","amount":30000}]}' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"transactions":[{"id":"4cd63d34-3814-4f50-abd0-59ce05b40d91","date":"2018-01-01","amount":20000,"memo":null,"cleared":"uncleared","approved":false,"flag_color":null,"account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","payee_id":null,"category_id":null,"transfer_account_id":null,"import_id":null,"subtransactions":[]},{"id":"4b857bae-5529-44ee-bf8d-ed29d8c151dd","date":"2018-01-02","amount":20000,"memo":null,"cleared":"uncleared","approved":false,"flag_color":null,"account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","payee_id":null,"category_id":null,"transfer_account_id":null,"import_id":null,"subtransactions":[]}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions recorded_at: Thu, 15 Feb 2018 19:06:36 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/import_transactions.yml b/spec/fixtures/vcr_cassettes/import_transactions.yml index c839af4..8490b02 100644 --- a/spec/fixtures/vcr_cassettes/import_transactions.yml +++ b/spec/fixtures/vcr_cassettes/import_transactions.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/import + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/import body: encoding: US-ASCII string: '' @@ -45,6 +45,6 @@ http_interactions: string: '{"data":{"transaction_ids":["07b68f11-98bd-4184-8866-83268a654318"]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/import + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/import recorded_at: Tue, 28 Apr 2020 19:10:16 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/month.yml b/spec/fixtures/vcr_cassettes/month.yml index c5f7d85..c0e0b6c 100644 --- a/spec/fixtures/vcr_cassettes/month.yml +++ b/spec/fixtures/vcr_cassettes/month.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/months/2018-02-01 + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/months/2018-02-01 body: encoding: US-ASCII string: '' @@ -54,6 +54,6 @@ http_interactions: Loan","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0}]}}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/months/2018-02-01 + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/months/2018-02-01 recorded_at: Thu, 15 Feb 2018 18:59:59 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/month_transactions.yml b/spec/fixtures/vcr_cassettes/month_transactions.yml index ef8af16..876cdce 100644 --- a/spec/fixtures/vcr_cassettes/month_transactions.yml +++ b/spec/fixtures/vcr_cassettes/month_transactions.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/months/2024-07-01/transactions + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/months/2024-07-01/transactions body: encoding: US-ASCII string: '' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"transactions":[{"type":"subtransaction","id":"008908a3-07c2-4684-b4c1-6f1024814f8d","parent_transaction_id":"910a79e1-29f5-4789-a2a0-2a69c2f94a2b","date":"2018-03-26","amount":-15000,"memo":"","cleared":"uncleared","approved":true,"flag_color":null,"account_id":"16addaa3-cfaf-4e57-933c-7e1645f000f0","payee_id":"2676f959-c5de-4db2-8d3f-2503777b25fb","category_id":"b457e34a-234e-40b2-992e-40055171e644","transfer_account_id":null,"import_id":null},{"type":"transaction","id":"d477e91a-1f2b-4df5-8069-6b61dee51259","parent_transaction_id":null,"date":"2018-03-27","amount":-13000,"memo":"","cleared":"uncleared","approved":true,"flag_color":null,"account_id":"16addaa3-cfaf-4e57-933c-7e1645f000f0","payee_id":"2676f959-c5de-4db2-8d3f-2503777b25fb","category_id":"84ffe61c-081c-44db-ad23-6ee809206c40","transfer_account_id":null,"import_id":null}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/6e6aa585-8537-4afc-950f-93d55fac17fa/months/2024-07-01/transactions + effective_url: http://api.localhost:3000/v1/plans/6e6aa585-8537-4afc-950f-93d55fac17fa/months/2024-07-01/transactions recorded_at: Tue, 27 Mar 2018 17:03:22 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/months.yml b/spec/fixtures/vcr_cassettes/months.yml index 77a88e8..2a7650c 100644 --- a/spec/fixtures/vcr_cassettes/months.yml +++ b/spec/fixtures/vcr_cassettes/months.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/months + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/months body: encoding: US-ASCII string: '' @@ -42,6 +42,6 @@ http_interactions: Note","to_be_budgeted":1000000,"age_of_money":null},{"month":"2018-03-01","note":null,"to_be_budgeted":998000,"age_of_money":null}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/months + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/months recorded_at: Thu, 15 Feb 2018 18:59:59 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/months_unauthorized.yml b/spec/fixtures/vcr_cassettes/months_unauthorized.yml index 2017107..a453b0a 100644 --- a/spec/fixtures/vcr_cassettes/months_unauthorized.yml +++ b/spec/fixtures/vcr_cassettes/months_unauthorized.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/months + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/months body: encoding: US-ASCII string: '' @@ -44,6 +44,6 @@ http_interactions: string: '{"error":{"id":"401","name":"unauthorized","detail":"Unauthorized"}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/months + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/months recorded_at: Thu, 15 Feb 2018 18:59:59 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/multiple_transactions.yml b/spec/fixtures/vcr_cassettes/multiple_transactions.yml index 4c3a010..45a509a 100644 --- a/spec/fixtures/vcr_cassettes/multiple_transactions.yml +++ b/spec/fixtures/vcr_cassettes/multiple_transactions.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions body: encoding: UTF-8 string: '{"transactions":[{"date":"2018-01-01","account_id":"c15e474a-fff6-459f-82de-8e7ea1a3819e","amount":10000},{"date":"2018-01-02","account_id":"c15e474a-fff6-459f-82de-8e7ea1a3819e","amount":20000},{"date":"2018-01-03","account_id":"c15e474a-fff6-459f-82de-8e7ea1a3819e","amount":30000,"import_id":"123456"}]}' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"transaction_ids":["8006058e-880d-454a-b872-ac1f4e57fa83","f666fa17-f96d-4b53-ada1-0191d6fb4fa2","fb14edc0-5492-4c57-9acd-2f2795f02624"],"duplicate_import_ids":[],"transactions":[{"id":"8006058e-880d-454a-b872-ac1f4e57fa83","date":"2018-01-01","amount":10000,"memo":null,"cleared":"uncleared","approved":false,"flag_color":null,"account_id":"c15e474a-fff6-459f-82de-8e7ea1a3819e","account_name":"Checking","payee_id":null,"payee_name":null,"category_id":null,"category_name":null,"transfer_account_id":null,"transfer_transaction_id":null,"import_id":null,"deleted":false,"subtransactions":[]},{"id":"f666fa17-f96d-4b53-ada1-0191d6fb4fa2","date":"2018-01-02","amount":20000,"memo":null,"cleared":"uncleared","approved":false,"flag_color":null,"account_id":"c15e474a-fff6-459f-82de-8e7ea1a3819e","account_name":"Checking","payee_id":null,"payee_name":null,"category_id":null,"category_name":null,"transfer_account_id":null,"transfer_transaction_id":null,"import_id":null,"deleted":false,"subtransactions":[]},{"id":"fb14edc0-5492-4c57-9acd-2f2795f02624","date":"2018-01-03","amount":30000,"memo":null,"cleared":"uncleared","approved":false,"flag_color":null,"account_id":"c15e474a-fff6-459f-82de-8e7ea1a3819e","account_name":"Checking","payee_id":null,"payee_name":null,"category_id":null,"category_name":null,"transfer_account_id":null,"transfer_transaction_id":null,"import_id":"123456","deleted":false,"subtransactions":[]}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/44656099-a8c8-4625-8fef-7c4549e696a7/transactions + effective_url: http://api.localhost:3000/v1/plans/44656099-a8c8-4625-8fef-7c4549e696a7/transactions recorded_at: Tue, 25 Sep 2018 21:32:45 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/patch_month_category.yml b/spec/fixtures/vcr_cassettes/patch_month_category.yml index 05d480f..577d02d 100644 --- a/spec/fixtures/vcr_cassettes/patch_month_category.yml +++ b/spec/fixtures/vcr_cassettes/patch_month_category.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: patch - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/months/2018-02-01/categories/acd2a771-0a56-4dba-97bd-3952b0879282 + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/months/2018-02-01/categories/acd2a771-0a56-4dba-97bd-3952b0879282 body: encoding: UTF-8 string: '{"month_category":{"budgeted":20382}}' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"category":{"id":"acd2a771-0a56-4dba-97bd-3952b0879282","category_group_id":"ed6f4c0e-2c5a-45d9-b887-b68a60ea724a","name":"Groceries","hidden":false,"original_category_group_id":null,"note":null,"budgeted":20382,"activity":0,"balance":20382,"goal_type":null,"goal_creation_month":null,"goal_target":0,"goal_target_month":null,"goal_percentage_complete":0,"deleted":false}}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/44656099-a8c8-4625-8fef-7c4549e696a7/months/2018-02-01/categories/acd2a771-0a56-4dba-97bd-3952b0879282 + effective_url: http://api.localhost:3000/v1/plans/44656099-a8c8-4625-8fef-7c4549e696a7/months/2018-02-01/categories/acd2a771-0a56-4dba-97bd-3952b0879282 recorded_at: Tue, 25 Sep 2018 22:35:32 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/payee.yml b/spec/fixtures/vcr_cassettes/payee.yml index ee27496..3417df8 100644 --- a/spec/fixtures/vcr_cassettes/payee.yml +++ b/spec/fixtures/vcr_cassettes/payee.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/payees/200e6eb1-02fc-4af6-be26-27c5740bb949 + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/payees/200e6eb1-02fc-4af6-be26-27c5740bb949 body: encoding: US-ASCII string: '' @@ -42,6 +42,6 @@ http_interactions: Payee","transfer_account_id":null}}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/payees/200e6eb1-02fc-4af6-be26-27c5740bb949 + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/payees/200e6eb1-02fc-4af6-be26-27c5740bb949 recorded_at: Thu, 15 Feb 2018 19:00:00 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/payee_location.yml b/spec/fixtures/vcr_cassettes/payee_location.yml index ea57079..5f23c11 100644 --- a/spec/fixtures/vcr_cassettes/payee_location.yml +++ b/spec/fixtures/vcr_cassettes/payee_location.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/payee_locations/052c7814-1797-44ce-9519-020e864e4928 + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/payee_locations/052c7814-1797-44ce-9519-020e864e4928 body: encoding: US-ASCII string: '' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"payee_location":{"id":"052c7814-1797-44ce-9519-020e864e4928","payee_id":"200e6eb1-02fc-4af6-be26-27c5740bb949","latitude":"40.7128","longitude":"74.006"}}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/payee_locations/052c7814-1797-44ce-9519-020e864e4928 + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/payee_locations/052c7814-1797-44ce-9519-020e864e4928 recorded_at: Thu, 15 Feb 2018 19:00:00 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/payee_locations.yml b/spec/fixtures/vcr_cassettes/payee_locations.yml index 8716bb7..98b2af3 100644 --- a/spec/fixtures/vcr_cassettes/payee_locations.yml +++ b/spec/fixtures/vcr_cassettes/payee_locations.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/payee_locations + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/payee_locations body: encoding: US-ASCII string: '' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"payee_locations":[{"id":"052c7814-1797-44ce-9519-020e864e4928","payee_id":"200e6eb1-02fc-4af6-be26-27c5740bb949","latitude":"40.7128","longitude":"74.006"}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/payee_locations + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/payee_locations recorded_at: Thu, 15 Feb 2018 18:59:59 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml b/spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml index deed039..20d236e 100644 --- a/spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml +++ b/spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/payee_locations + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/payee_locations body: encoding: US-ASCII string: '' @@ -44,6 +44,6 @@ http_interactions: string: '{"error":{"id":"401","name":"unauthorized","detail":"Unauthorized"}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/payee_locations + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/payee_locations recorded_at: Thu, 15 Feb 2018 19:00:00 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/payee_transactions.yml b/spec/fixtures/vcr_cassettes/payee_transactions.yml index b6215c8..8cdc2db 100644 --- a/spec/fixtures/vcr_cassettes/payee_transactions.yml +++ b/spec/fixtures/vcr_cassettes/payee_transactions.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/payees/2676f959-c5de-4db2-8d3f-2503777b25fb/transactions + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/payees/2676f959-c5de-4db2-8d3f-2503777b25fb/transactions body: encoding: US-ASCII string: '' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"transactions":[{"type":"subtransaction","id":"008908a3-07c2-4684-b4c1-6f1024814f8d","parent_transaction_id":"910a79e1-29f5-4789-a2a0-2a69c2f94a2b","date":"2018-03-26","amount":-15000,"memo":"","cleared":"uncleared","approved":true,"flag_color":null,"account_id":"16addaa3-cfaf-4e57-933c-7e1645f000f0","payee_id":"2676f959-c5de-4db2-8d3f-2503777b25fb","category_id":"b457e34a-234e-40b2-992e-40055171e644","transfer_account_id":null,"import_id":null},{"type":"transaction","id":"d477e91a-1f2b-4df5-8069-6b61dee51259","parent_transaction_id":null,"date":"2018-03-27","amount":-13000,"memo":"","cleared":"uncleared","approved":true,"flag_color":null,"account_id":"16addaa3-cfaf-4e57-933c-7e1645f000f0","payee_id":"2676f959-c5de-4db2-8d3f-2503777b25fb","category_id":"84ffe61c-081c-44db-ad23-6ee809206c40","transfer_account_id":null,"import_id":null}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/6e6aa585-8537-4afc-950f-93d55fac17fa/payees/2676f959-c5de-4db2-8d3f-2503777b25fb/transactions + effective_url: http://api.localhost:3000/v1/plans/6e6aa585-8537-4afc-950f-93d55fac17fa/payees/2676f959-c5de-4db2-8d3f-2503777b25fb/transactions recorded_at: Tue, 27 Mar 2018 17:03:22 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/payees.yml b/spec/fixtures/vcr_cassettes/payees.yml index c8504cc..01ee762 100644 --- a/spec/fixtures/vcr_cassettes/payees.yml +++ b/spec/fixtures/vcr_cassettes/payees.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/payees + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/payees body: encoding: US-ASCII string: '' @@ -46,6 +46,6 @@ http_interactions: Payee","transfer_account_id":null}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/payees + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/payees recorded_at: Thu, 15 Feb 2018 19:00:00 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/payees_unauthorized.yml b/spec/fixtures/vcr_cassettes/payees_unauthorized.yml index 8b24174..d008812 100644 --- a/spec/fixtures/vcr_cassettes/payees_unauthorized.yml +++ b/spec/fixtures/vcr_cassettes/payees_unauthorized.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/payees + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/payees body: encoding: US-ASCII string: '' @@ -44,6 +44,6 @@ http_interactions: string: '{"error":{"id":"401","name":"unauthorized","detail":"Unauthorized"}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/payees + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/payees recorded_at: Thu, 15 Feb 2018 19:00:00 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/budget.yml b/spec/fixtures/vcr_cassettes/plan.yml similarity index 99% rename from spec/fixtures/vcr_cassettes/budget.yml rename to spec/fixtures/vcr_cassettes/plan.yml index 448afa1..ced7ac8 100644 --- a/spec/fixtures/vcr_cassettes/budget.yml +++ b/spec/fixtures/vcr_cassettes/plan.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd body: encoding: US-ASCII string: '' @@ -38,7 +38,7 @@ http_interactions: - chunked body: encoding: UTF-8 - string: "{\"data\" : {\"budget\" : {\"id\":\"f419ac25-6217-4175-88dc-c3136ff5f6fd\",\"name\":\"ABC\",\"last_modified_on\":\"2018-02-15T06:53:19+00:00\",\"date_format\":{\"format\":\"MM/DD/YYYY\"},\"currency_format\":{\"iso_code\":\"USD\",\"example_format\":\"123,456.78\",\"decimal_digits\":2,\"decimal_separator\":\".\",\"symbol_first\":true,\"group_separator\":\",\",\"currency_symbol\":\"$\",\"display_symbol\":true},\"first_month\":\"2018-02-01\",\"last_month\":\"2018-02-01\",\"accounts\":[{\"id\":\"5982e895-98e5-41ca-9681-0b6de1036a1c\",\"name\":\"Checking\",\"type\":\"checking\",\"on_budget\":true,\"closed\":false,\"note\":null,\"balance\":998000,\"cleared_balance\":1000000,\"uncleared_balance\":-2000}],\"payees\":[{\"id\":\"2141b5d8-5b9b-4a17-be45-3f4a9ac397ec\",\"name\":\"Starting + string: "{\"data\" : {\"plan\" : {\"id\":\"f419ac25-6217-4175-88dc-c3136ff5f6fd\",\"name\":\"ABC\",\"last_modified_on\":\"2018-02-15T06:53:19+00:00\",\"date_format\":{\"format\":\"MM/DD/YYYY\"},\"currency_format\":{\"iso_code\":\"USD\",\"example_format\":\"123,456.78\",\"decimal_digits\":2,\"decimal_separator\":\".\",\"symbol_first\":true,\"group_separator\":\",\",\"currency_symbol\":\"$\",\"display_symbol\":true},\"first_month\":\"2018-02-01\",\"last_month\":\"2018-02-01\",\"accounts\":[{\"id\":\"5982e895-98e5-41ca-9681-0b6de1036a1c\",\"name\":\"Checking\",\"type\":\"checking\",\"on_budget\":true,\"closed\":false,\"note\":null,\"balance\":998000,\"cleared_balance\":1000000,\"uncleared_balance\":-2000}],\"payees\":[{\"id\":\"2141b5d8-5b9b-4a17-be45-3f4a9ac397ec\",\"name\":\"Starting Balance\",\"transfer_account_id\":null}, \n {\"id\":\"7f786732-10c1-4618-aa0b-56199b2cea26\",\"name\":\"Manual Balance Adjustment\",\"transfer_account_id\":null}, \n {\"id\":\"f0c12109-c27a-4739-adc5-e598e33dd1dd\",\"name\":\"Reconciliation Balance Adjustment\",\"transfer_account_id\":null}, \n {\"id\":\"8a9a08ae-416d-436c-870a-a25e2d8f24cd\",\"name\":\"Transfer @@ -1408,6 +1408,6 @@ http_interactions: \"server_knowledge\" : 57}}" http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd recorded_at: Thu, 15 Feb 2018 18:59:58 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/plans.yml b/spec/fixtures/vcr_cassettes/plans.yml index 7df1a14..ef4af67 100644 --- a/spec/fixtures/vcr_cassettes/plans.yml +++ b/spec/fixtures/vcr_cassettes/plans.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets + uri: http://api.localhost:3000/v1/plans body: encoding: US-ASCII string: '' @@ -38,12 +38,12 @@ http_interactions: - chunked body: encoding: UTF-8 - string: '{"data":{"budgets":[{"id":"36e85244-5254-47be-a7d1-28be746a7f72","name":"Hammel + string: '{"data":{"plans":[{"id":"36e85244-5254-47be-a7d1-28be746a7f72","name":"Hammel Budget","last_modified_on":"2018-02-14T20:28:50+00:00","date_format":{"locale":"en_US"},"currency_format":{"locale":"en_US"},"first_month":"2010-10-01","last_month":"2018-02-01"},{"id":"5b202339-ba6a-4498-bc93-f6909ec38153","name":"Household Budget","last_modified_on":"2018-02-14T20:28:53+00:00","date_format":{"locale":"en_US"},"currency_format":{"locale":"en_US"},"first_month":"2013-09-01","last_month":"2018-02-01"},{"id":"9db9a05d-c61c-4ce8-95ea-06174910f332","name":"My Budget","last_modified_on":"2018-02-15T18:24:02+00:00","date_format":{"format":"MM/DD/YYYY"},"currency_format":{"iso_code":"USD","example_format":"123,456.78","decimal_digits":2,"decimal_separator":".","symbol_first":true,"group_separator":",","currency_symbol":"$","display_symbol":true},"first_month":"2018-02-01","last_month":"2018-02-01"},{"id":"f419ac25-6217-4175-88dc-c3136ff5f6fd","name":"ABC","last_modified_on":"2018-02-15T18:53:19+00:00","date_format":{"format":"MM/DD/YYYY"},"currency_format":{"iso_code":"USD","example_format":"123,456.78","decimal_digits":2,"decimal_separator":".","symbol_first":true,"group_separator":",","currency_symbol":"$","display_symbol":true},"first_month":"2018-02-01","last_month":"2018-02-01"}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets + effective_url: http://api.localhost:3000/v1/plans recorded_at: Thu, 15 Feb 2018 18:59:58 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/plans_unauthorized.yml b/spec/fixtures/vcr_cassettes/plans_unauthorized.yml index 3c39288..1503c04 100644 --- a/spec/fixtures/vcr_cassettes/plans_unauthorized.yml +++ b/spec/fixtures/vcr_cassettes/plans_unauthorized.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets + uri: http://api.localhost:3000/v1/plans body: encoding: US-ASCII string: '' @@ -44,6 +44,6 @@ http_interactions: string: '{"error":{"id":"401","name":"unauthorized","detail":"Unauthorized"}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets + effective_url: http://api.localhost:3000/v1/plans recorded_at: Thu, 15 Feb 2018 18:59:58 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/scheduled_transaction.yml b/spec/fixtures/vcr_cassettes/scheduled_transaction.yml index ef5b358..b82eb92 100644 --- a/spec/fixtures/vcr_cassettes/scheduled_transaction.yml +++ b/spec/fixtures/vcr_cassettes/scheduled_transaction.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions/1a8e4929-3ad1-4859-8443-2aeeab0684ab + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions/1a8e4929-3ad1-4859-8443-2aeeab0684ab body: encoding: US-ASCII string: '' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"scheduled_transaction":{"id":"1a8e4929-3ad1-4859-8443-2aeeab0684ab","date_first":"2018-02-16","date_next":"2018-02-16","frequency":"never","amount":-10000,"memo":null,"flag_color":null,"account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","payee_id":null,"category_id":null,"transfer_account_id":null,"subtransactions":[]}}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions/1a8e4929-3ad1-4859-8443-2aeeab0684ab + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions/1a8e4929-3ad1-4859-8443-2aeeab0684ab recorded_at: Thu, 15 Feb 2018 19:00:01 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/scheduled_transactions.yml b/spec/fixtures/vcr_cassettes/scheduled_transactions.yml index d112e1a..918bac2 100644 --- a/spec/fixtures/vcr_cassettes/scheduled_transactions.yml +++ b/spec/fixtures/vcr_cassettes/scheduled_transactions.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions body: encoding: US-ASCII string: '' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"scheduled_transactions":[{"id":"1a8e4929-3ad1-4859-8443-2aeeab0684ab","date_first":"2018-02-16","date_next":"2018-02-16","frequency":"never","amount":-10000,"memo":null,"flag_color":null,"account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","payee_id":null,"category_id":null,"transfer_account_id":null,"subtransactions":[]}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions recorded_at: Thu, 15 Feb 2018 19:00:01 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml b/spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml index 15cb0cc..44df042 100644 --- a/spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml +++ b/spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions body: encoding: US-ASCII string: '' @@ -44,6 +44,6 @@ http_interactions: string: '{"error":{"id":"401","name":"unauthorized","detail":"Unauthorized"}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/scheduled_transactions recorded_at: Thu, 15 Feb 2018 19:00:01 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/transaction.yml b/spec/fixtures/vcr_cassettes/transaction.yml index 7e77560..28485dc 100644 --- a/spec/fixtures/vcr_cassettes/transaction.yml +++ b/spec/fixtures/vcr_cassettes/transaction.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/81c374ff-74ab-4d6d-8d5a-ba3ad3fa68e4 + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/81c374ff-74ab-4d6d-8d5a-ba3ad3fa68e4 body: encoding: US-ASCII string: '' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"transaction":{"id":"81c374ff-74ab-4d6d-8d5a-ba3ad3fa68e4","date":"2018-02-15","amount":-2000,"memo":"","cleared":"uncleared","approved":true,"flag_color":null,"account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","payee_id":"200e6eb1-02fc-4af6-be26-27c5740bb949","category_id":null,"transfer_account_id":null,"import_id":null,"subtransactions":[]}}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/81c374ff-74ab-4d6d-8d5a-ba3ad3fa68e4 + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/81c374ff-74ab-4d6d-8d5a-ba3ad3fa68e4 recorded_at: Thu, 15 Feb 2018 19:00:01 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/transactions.yml b/spec/fixtures/vcr_cassettes/transactions.yml index b68b8a6..736db1d 100644 --- a/spec/fixtures/vcr_cassettes/transactions.yml +++ b/spec/fixtures/vcr_cassettes/transactions.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions body: encoding: US-ASCII string: '' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"transactions":[{"id":"1f9d45f6-8ba5-476b-8cff-209b3791bd83","date":"2018-02-15","amount":1000000,"memo":null,"cleared":"cleared","approved":true,"flag_color":null,"account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","payee_id":"2141b5d8-5b9b-4a17-be45-3f4a9ac397ec","category_id":"26513650-523e-4e7a-ac0d-f6e78d0a8a03","transfer_account_id":null,"import_id":null,"subtransactions":[]},{"id":"81c374ff-74ab-4d6d-8d5a-ba3ad3fa68e4","date":"2018-02-15","amount":-2000,"memo":"","cleared":"uncleared","approved":true,"flag_color":null,"account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","payee_id":"200e6eb1-02fc-4af6-be26-27c5740bb949","category_id":null,"transfer_account_id":null,"import_id":null,"subtransactions":[]}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions recorded_at: Thu, 15 Feb 2018 19:00:01 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/transactions_invalid_flags.yml b/spec/fixtures/vcr_cassettes/transactions_invalid_flags.yml index 43aeeed..0117457 100644 --- a/spec/fixtures/vcr_cassettes/transactions_invalid_flags.yml +++ b/spec/fixtures/vcr_cassettes/transactions_invalid_flags.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions body: encoding: US-ASCII string: '' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"transactions":[{"id":"1f9d45f6-8ba5-476b-8cff-209b3791bd83","date":"2018-02-15","amount":1000000,"memo":null,"cleared":"cleared","approved":true,"flag_color":"","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","payee_id":"2141b5d8-5b9b-4a17-be45-3f4a9ac397ec","category_id":"26513650-523e-4e7a-ac0d-f6e78d0a8a03","transfer_account_id":null,"import_id":null,"subtransactions":[]},{"id":"81c374ff-74ab-4d6d-8d5a-ba3ad3fa68e4","date":"2018-02-15","amount":-2000,"memo":"","cleared":"uncleared","approved":true,"flag_color":"invalid","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","payee_id":"200e6eb1-02fc-4af6-be26-27c5740bb949","category_id":null,"transfer_account_id":null,"import_id":null,"subtransactions":[]}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions recorded_at: Thu, 15 Feb 2018 19:00:01 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/transactions_unauthorized.yml b/spec/fixtures/vcr_cassettes/transactions_unauthorized.yml index 97d000d..4f86a33 100644 --- a/spec/fixtures/vcr_cassettes/transactions_unauthorized.yml +++ b/spec/fixtures/vcr_cassettes/transactions_unauthorized.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions body: encoding: US-ASCII string: '' @@ -44,6 +44,6 @@ http_interactions: string: '{"error":{"id":"401","name":"unauthorized","detail":"Unauthorized"}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions recorded_at: Thu, 15 Feb 2018 19:00:01 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/update_transaction.yml b/spec/fixtures/vcr_cassettes/update_transaction.yml index b790973..1ff27d5 100644 --- a/spec/fixtures/vcr_cassettes/update_transaction.yml +++ b/spec/fixtures/vcr_cassettes/update_transaction.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: put - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/4cd63d34-3814-4f50-abd0-59ce05b40d91 + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/4cd63d34-3814-4f50-abd0-59ce05b40d91 body: encoding: UTF-8 string: '{"transaction":{"date":"2018-01-02","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","amount":30000}}' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"transaction":{"id":"4cd63d34-3814-4f50-abd0-59ce05b40d91","date":"2018-01-02","amount":30000,"memo":null,"cleared":"uncleared","approved":false,"flag_color":null,"account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","payee_id":null,"category_id":null,"transfer_account_id":null,"import_id":null,"subtransactions":[]}}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/4cd63d34-3814-4f50-abd0-59ce05b40d91 + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/4cd63d34-3814-4f50-abd0-59ce05b40d91 recorded_at: Thu, 15 Feb 2018 19:11:01 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/vcr_cassettes/update_transactions.yml b/spec/fixtures/vcr_cassettes/update_transactions.yml index e12cff8..81a73bc 100644 --- a/spec/fixtures/vcr_cassettes/update_transactions.yml +++ b/spec/fixtures/vcr_cassettes/update_transactions.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: patch - uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions + uri: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions body: encoding: UTF-8 string: '{"transactions":[{"date":"2018-01-02","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","amount":30000},{"date":"2018-01-03","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","amount":40000}]}' @@ -41,6 +41,6 @@ http_interactions: string: '{"data":{"transactions":[{"id":"4cd63d34-3814-4f50-abd0-59ce05b40d91","date":"2018-01-02","amount":30000,"memo":null,"cleared":"uncleared","approved":false,"flag_color":null,"account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","payee_id":null,"category_id":null,"transfer_account_id":null,"import_id":null,"subtransactions":[]},{"id":"4cd63d34-3814-4f50-abd0-59ce05b40d91","date":"2018-01-03","amount":40000,"memo":null,"cleared":"uncleared","approved":false,"flag_color":null,"account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","payee_id":null,"category_id":null,"transfer_account_id":null,"import_id":null,"subtransactions":[]}]}}' http_version: '1.1' adapter_metadata: - effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/4cd63d34-3814-4f50-abd0-59ce05b40d91 + effective_url: http://api.localhost:3000/v1/plans/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/4cd63d34-3814-4f50-abd0-59ce05b40d91 recorded_at: Thu, 15 Feb 2018 19:11:01 GMT recorded_with: VCR 3.0.3 diff --git a/ynab.gemspec b/ynab.gemspec index 925dd9a..854d372 100644 --- a/ynab.gemspec +++ b/ynab.gemspec @@ -19,7 +19,7 @@ Gem::Specification.new do |s| s.email = ["api@ynab.com"] s.homepage = "https://github.com/ynab/ynab-sdk-ruby" s.summary = "Official Ruby client for the YNAB API" - s.description = "Official Ruby client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.78.0." + s.description = "Official Ruby client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.79.0." s.license = "Apache-2.0" s.required_ruby_version = ">= 3.3" s.metadata = {}