ynab 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +31 -30
- data/lib/ynab.rb +4 -1
- data/lib/ynab/api/categories_api.rb +10 -10
- data/lib/ynab/api/deprecated_api.rb +81 -0
- data/lib/ynab/api/months_api.rb +2 -2
- data/lib/ynab/api/payee_locations_api.rb +2 -2
- data/lib/ynab/api/transactions_api.rb +12 -58
- data/lib/ynab/models/bulk_ids.rb +1 -1
- data/lib/ynab/models/category.rb +3 -3
- data/lib/ynab/models/category_group_with_categories.rb +1 -1
- data/lib/ynab/models/month_detail.rb +1 -1
- data/lib/ynab/models/transactions_wrapper.rb +19 -4
- data/lib/ynab/overrides/transactions_api.rb +44 -0
- data/lib/ynab/version.rb +1 -1
- data/spec/api/transactions_spec.rb +23 -1
- data/spec/fixtures/vcr_cassettes/create_transactions.yml +46 -0
- metadata +6 -105
- data/Gemfile +0 -7
- data/Gemfile.lock +0 -44
- data/Rakefile +0 -34
- data/config.json +0 -10
- data/docs/Account.md +0 -18
- data/docs/AccountResponse.md +0 -8
- data/docs/AccountWrapper.md +0 -8
- data/docs/AccountsApi.md +0 -45
- data/docs/AccountsResponse.md +0 -8
- data/docs/AccountsWrapper.md +0 -8
- data/docs/BudgetDetail.md +0 -22
- data/docs/BudgetDetailResponse.md +0 -8
- data/docs/BudgetDetailWrapper.md +0 -9
- data/docs/BudgetSettings.md +0 -9
- data/docs/BudgetSettingsResponse.md +0 -8
- data/docs/BudgetSettingsWrapper.md +0 -8
- data/docs/BudgetSummary.md +0 -12
- data/docs/BudgetSummaryResponse.md +0 -8
- data/docs/BudgetSummaryWrapper.md +0 -8
- data/docs/BudgetsApi.md +0 -60
- data/docs/BulkIdWrapper.md +0 -8
- data/docs/BulkIds.md +0 -9
- data/docs/BulkResponse.md +0 -8
- data/docs/BulkTransactionCreateResponse.md +0 -8
- data/docs/BulkTransactionIds.md +0 -8
- data/docs/BulkTransactions.md +0 -8
- data/docs/CategoriesApi.md +0 -86
- data/docs/CategoriesResponse.md +0 -8
- data/docs/Category.md +0 -22
- data/docs/CategoryGroup.md +0 -11
- data/docs/CategoryGroupWithCategories.md +0 -12
- data/docs/CategoryGroupsWrapper.md +0 -8
- data/docs/CategoryResponse.md +0 -8
- data/docs/CategoryWrapper.md +0 -8
- data/docs/CurrencyFormat.md +0 -15
- data/docs/DateFormat.md +0 -8
- data/docs/ErrorDetail.md +0 -10
- data/docs/ErrorResponse.md +0 -8
- data/docs/HybridTransaction.md +0 -26
- data/docs/HybridTransactionsResponse.md +0 -8
- data/docs/HybridTransactionsWrapper.md +0 -8
- data/docs/MonthDetail.md +0 -15
- data/docs/MonthDetailResponse.md +0 -8
- data/docs/MonthDetailWrapper.md +0 -8
- data/docs/MonthSummariesResponse.md +0 -8
- data/docs/MonthSummariesWrapper.md +0 -8
- data/docs/MonthSummary.md +0 -14
- data/docs/MonthsApi.md +0 -45
- data/docs/Payee.md +0 -11
- data/docs/PayeeLocation.md +0 -12
- data/docs/PayeeLocationResponse.md +0 -8
- data/docs/PayeeLocationWrapper.md +0 -8
- data/docs/PayeeLocationsApi.md +0 -64
- data/docs/PayeeLocationsResponse.md +0 -8
- data/docs/PayeeLocationsWrapper.md +0 -8
- data/docs/PayeeResponse.md +0 -8
- data/docs/PayeeWrapper.md +0 -8
- data/docs/PayeesApi.md +0 -45
- data/docs/PayeesResponse.md +0 -8
- data/docs/PayeesWrapper.md +0 -8
- data/docs/SaveMonthCategory.md +0 -8
- data/docs/SaveMonthCategoryWrapper.md +0 -8
- data/docs/SaveTransaction.md +0 -18
- data/docs/SaveTransactionWrapper.md +0 -8
- data/docs/SaveTransactionsResponse.md +0 -8
- data/docs/SaveTransactionsResponseData.md +0 -11
- data/docs/SaveTransactionsWrapper.md +0 -9
- data/docs/ScheduledSubTransaction.md +0 -15
- data/docs/ScheduledTransactionDetail.md +0 -23
- data/docs/ScheduledTransactionResponse.md +0 -8
- data/docs/ScheduledTransactionSummary.md +0 -19
- data/docs/ScheduledTransactionWrapper.md +0 -8
- data/docs/ScheduledTransactionsApi.md +0 -45
- data/docs/ScheduledTransactionsResponse.md +0 -8
- data/docs/ScheduledTransactionsWrapper.md +0 -8
- data/docs/SubTransaction.md +0 -15
- data/docs/TransactionDetail.md +0 -25
- data/docs/TransactionResponse.md +0 -8
- data/docs/TransactionSummary.md +0 -21
- data/docs/TransactionWrapper.md +0 -8
- data/docs/TransactionsApi.md +0 -168
- data/docs/TransactionsResponse.md +0 -8
- data/docs/TransactionsWrapper.md +0 -8
- data/docs/User.md +0 -8
- data/docs/UserApi.md +0 -23
- data/docs/UserResponse.md +0 -8
- data/docs/UserWrapper.md +0 -8
- data/examples/budget-list.rb +0 -24
- data/examples/budget-month.rb +0 -35
- data/examples/category-balance.rb +0 -26
- data/examples/create-multiple-transactions.rb +0 -44
- data/examples/create-transaction.rb +0 -31
- data/examples/update-category-budgeted.rb +0 -23
- data/pkg/ynab-1.0.0.gem +0 -0
- data/pkg/ynab-1.1.0.gem +0 -0
- data/pkg/ynab-1.3.0.gem +0 -0
- data/pkg/ynab-1.4.0.gem +0 -0
- data/spec-v1-swagger.json +0 -2729
- data/swagger-templates/api_client.mustache +0 -386
- data/swagger-templates/api_doc.mustache +0 -32
- data/swagger-templates/gem.mustache +0 -83
- data/swagger-templates/gemspec.mustache +0 -37
- data/ynab.gemspec +0 -40
data/Rakefile
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
begin
|
|
2
|
-
require 'rspec/core/rake_task'
|
|
3
|
-
require 'bundler/gem_tasks'
|
|
4
|
-
|
|
5
|
-
RSpec::Core::RakeTask.new(:spec) do |t|
|
|
6
|
-
t.rspec_opts = "-fd"
|
|
7
|
-
end
|
|
8
|
-
rescue LoadError
|
|
9
|
-
# no rspec available
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
task :default => [:spec]
|
|
13
|
-
|
|
14
|
-
desc "Run Swagger Code Generator to update the client from the Swagger spec"
|
|
15
|
-
task :generate do
|
|
16
|
-
# Download latest swagger spec
|
|
17
|
-
spec_filename = 'spec-v1-swagger.json'
|
|
18
|
-
sh "rm #{spec_filename} && wget https://api.youneedabudget.com/papi/#{spec_filename}"
|
|
19
|
-
|
|
20
|
-
# Use Docker to codegen ruby based on the swagger spec
|
|
21
|
-
sh "docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate"\
|
|
22
|
-
" -i /local/spec-v1-swagger.json"\
|
|
23
|
-
" -l ruby"\
|
|
24
|
-
" -c /local/config.json -o /local"\
|
|
25
|
-
" -t /local/swagger-templates"
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
task :commit_version_bump do
|
|
29
|
-
sh "git add config.json lib/ynab/version.rb Gemfile.lock && git diff-index --quiet HEAD || git commit -m 'Bumping version for release'"
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
desc "Bump version, run specs build a gem and release on RubyGems"
|
|
33
|
-
task :publish => ['generate', 'commit_version_bump', 'spec', 'release']
|
|
34
|
-
|
data/config.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"gemName": "ynab",
|
|
3
|
-
"moduleName": "YNAB",
|
|
4
|
-
"gemVersion": "1.5.0",
|
|
5
|
-
"gemDescription": "Ruby gem wrapper for the YNAB API. Read the documentation at https://api.youneedabudget.com",
|
|
6
|
-
"gemHomepage": "https://github.com/ynab/ynab-sdk-ruby",
|
|
7
|
-
"gemLicense": "Apache-2.0",
|
|
8
|
-
"gemAuthor": "You Need A Budget, LLC",
|
|
9
|
-
"gemAuthorEmail": "help@youneedabudget.com"
|
|
10
|
-
}
|
data/docs/Account.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# YNAB::Account
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**id** | **String** | |
|
|
7
|
-
**name** | **String** | |
|
|
8
|
-
**type** | **String** | The type of account. Note: payPal, merchantAccount, investmentAccount, and mortgage types have been deprecated and will be removed in the future. |
|
|
9
|
-
**on_budget** | **BOOLEAN** | Whether this account is on budget or not |
|
|
10
|
-
**closed** | **BOOLEAN** | Whether this account is closed or not |
|
|
11
|
-
**note** | **String** | |
|
|
12
|
-
**balance** | **Integer** | The current balance of the account in milliunits format |
|
|
13
|
-
**cleared_balance** | **Integer** | The current cleared balance of the account in milliunits format |
|
|
14
|
-
**uncleared_balance** | **Integer** | The current uncleared balance of the account in milliunits format |
|
|
15
|
-
**transfer_payee_id** | **String** | The payee id which should be used when transferring to this account |
|
|
16
|
-
**deleted** | **BOOLEAN** | Whether or not the account has been deleted. Deleted accounts will only be included in delta requests. |
|
|
17
|
-
|
|
18
|
-
|
data/docs/AccountResponse.md
DELETED
data/docs/AccountWrapper.md
DELETED
data/docs/AccountsApi.md
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# YNAB::AccountsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.youneedabudget.com/v1*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**get_account_by_id**](AccountsApi.md#get_account_by_id) | **GET** /budgets/{budget_id}/accounts/{account_id} | Single account
|
|
8
|
-
[**get_accounts**](AccountsApi.md#get_accounts) | **GET** /budgets/{budget_id}/accounts | Account list
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
# **get_account_by_id**
|
|
12
|
-
> AccountResponse get_account_by_id(budget_id, account_id)
|
|
13
|
-
|
|
14
|
-
Single account
|
|
15
|
-
|
|
16
|
-
Returns a single account
|
|
17
|
-
|
|
18
|
-
### Parameters
|
|
19
|
-
|
|
20
|
-
Name | Type | Description | Notes
|
|
21
|
-
------------- | ------------- | ------------- | -------------
|
|
22
|
-
**budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
|
|
23
|
-
**account_id** | [**String**](.md)| The id of the account |
|
|
24
|
-
|
|
25
|
-
### Return type
|
|
26
|
-
|
|
27
|
-
[**AccountResponse**](AccountResponse.md)
|
|
28
|
-
|
|
29
|
-
# **get_accounts**
|
|
30
|
-
> AccountsResponse get_accounts(budget_id)
|
|
31
|
-
|
|
32
|
-
Account list
|
|
33
|
-
|
|
34
|
-
Returns all accounts
|
|
35
|
-
|
|
36
|
-
### Parameters
|
|
37
|
-
|
|
38
|
-
Name | Type | Description | Notes
|
|
39
|
-
------------- | ------------- | ------------- | -------------
|
|
40
|
-
**budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
|
|
41
|
-
|
|
42
|
-
### Return type
|
|
43
|
-
|
|
44
|
-
[**AccountsResponse**](AccountsResponse.md)
|
|
45
|
-
|
data/docs/AccountsResponse.md
DELETED
data/docs/AccountsWrapper.md
DELETED
data/docs/BudgetDetail.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# YNAB::BudgetDetail
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**id** | **String** | |
|
|
7
|
-
**name** | **String** | |
|
|
8
|
-
**last_modified_on** | **DateTime** | The last time any changes were made to the budget from either a web or mobile client. | [optional]
|
|
9
|
-
**date_format** | [**DateFormat**](DateFormat.md) | | [optional]
|
|
10
|
-
**currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | | [optional]
|
|
11
|
-
**accounts** | [**Array<Account>**](Account.md) | | [optional]
|
|
12
|
-
**payees** | [**Array<Payee>**](Payee.md) | | [optional]
|
|
13
|
-
**payee_locations** | [**Array<PayeeLocation>**](PayeeLocation.md) | | [optional]
|
|
14
|
-
**category_groups** | [**Array<CategoryGroup>**](CategoryGroup.md) | | [optional]
|
|
15
|
-
**categories** | [**Array<Category>**](Category.md) | | [optional]
|
|
16
|
-
**months** | [**Array<MonthDetail>**](MonthDetail.md) | | [optional]
|
|
17
|
-
**transactions** | [**Array<TransactionSummary>**](TransactionSummary.md) | | [optional]
|
|
18
|
-
**subtransactions** | [**Array<SubTransaction>**](SubTransaction.md) | | [optional]
|
|
19
|
-
**scheduled_transactions** | [**Array<ScheduledTransactionSummary>**](ScheduledTransactionSummary.md) | | [optional]
|
|
20
|
-
**scheduled_subtransactions** | [**Array<ScheduledSubTransaction>**](ScheduledSubTransaction.md) | | [optional]
|
|
21
|
-
|
|
22
|
-
|
data/docs/BudgetDetailWrapper.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# YNAB::BudgetDetailWrapper
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**budget** | [**BudgetDetail**](BudgetDetail.md) | |
|
|
7
|
-
**server_knowledge** | **Integer** | The knowledge of the server |
|
|
8
|
-
|
|
9
|
-
|
data/docs/BudgetSettings.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# YNAB::BudgetSettings
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**date_format** | [**DateFormat**](DateFormat.md) | |
|
|
7
|
-
**currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | |
|
|
8
|
-
|
|
9
|
-
|
data/docs/BudgetSummary.md
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# YNAB::BudgetSummary
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**id** | **String** | |
|
|
7
|
-
**name** | **String** | |
|
|
8
|
-
**last_modified_on** | **DateTime** | The last time any changes were made to the budget from either a web or mobile client. | [optional]
|
|
9
|
-
**date_format** | [**DateFormat**](DateFormat.md) | | [optional]
|
|
10
|
-
**currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | | [optional]
|
|
11
|
-
|
|
12
|
-
|
data/docs/BudgetsApi.md
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# YNAB::BudgetsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.youneedabudget.com/v1*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**get_budget_by_id**](BudgetsApi.md#get_budget_by_id) | **GET** /budgets/{budget_id} | Single budget
|
|
8
|
-
[**get_budget_settings_by_id**](BudgetsApi.md#get_budget_settings_by_id) | **GET** /budgets/{budget_id}/settings | Budget Settings
|
|
9
|
-
[**get_budgets**](BudgetsApi.md#get_budgets) | **GET** /budgets | List budgets
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
# **get_budget_by_id**
|
|
13
|
-
> BudgetDetailResponse get_budget_by_id(budget_id, opts)
|
|
14
|
-
|
|
15
|
-
Single budget
|
|
16
|
-
|
|
17
|
-
Returns a single budget with all related entities. This resource is effectively a full budget export.
|
|
18
|
-
|
|
19
|
-
### Parameters
|
|
20
|
-
|
|
21
|
-
Name | Type | Description | Notes
|
|
22
|
-
------------- | ------------- | ------------- | -------------
|
|
23
|
-
**budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
|
|
24
|
-
**last_knowledge_of_server** | **Integer**| The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included. | [optional]
|
|
25
|
-
|
|
26
|
-
### Return type
|
|
27
|
-
|
|
28
|
-
[**BudgetDetailResponse**](BudgetDetailResponse.md)
|
|
29
|
-
|
|
30
|
-
# **get_budget_settings_by_id**
|
|
31
|
-
> BudgetSettingsResponse get_budget_settings_by_id(budget_id)
|
|
32
|
-
|
|
33
|
-
Budget Settings
|
|
34
|
-
|
|
35
|
-
Returns settings for a budget
|
|
36
|
-
|
|
37
|
-
### Parameters
|
|
38
|
-
|
|
39
|
-
Name | Type | Description | Notes
|
|
40
|
-
------------- | ------------- | ------------- | -------------
|
|
41
|
-
**budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
|
|
42
|
-
|
|
43
|
-
### Return type
|
|
44
|
-
|
|
45
|
-
[**BudgetSettingsResponse**](BudgetSettingsResponse.md)
|
|
46
|
-
|
|
47
|
-
# **get_budgets**
|
|
48
|
-
> BudgetSummaryResponse get_budgets
|
|
49
|
-
|
|
50
|
-
List budgets
|
|
51
|
-
|
|
52
|
-
Returns budgets list with summary information
|
|
53
|
-
|
|
54
|
-
### Parameters
|
|
55
|
-
This endpoint does not need any parameter.
|
|
56
|
-
|
|
57
|
-
### Return type
|
|
58
|
-
|
|
59
|
-
[**BudgetSummaryResponse**](BudgetSummaryResponse.md)
|
|
60
|
-
|
data/docs/BulkIdWrapper.md
DELETED
data/docs/BulkIds.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# YNAB::BulkIds
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**transaction_ids** | **Array<String>** | The list of Transaction IDs that were created. |
|
|
7
|
-
**duplicate_import_ids** | **Array<String>** | If any Transactions were not created because they had an import_id matching a transaction already on the same account, the specified import_id(s) will be included in this list. |
|
|
8
|
-
|
|
9
|
-
|
data/docs/BulkResponse.md
DELETED
data/docs/BulkTransactionIds.md
DELETED
data/docs/BulkTransactions.md
DELETED
data/docs/CategoriesApi.md
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# YNAB::CategoriesApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.youneedabudget.com/v1*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**get_categories**](CategoriesApi.md#get_categories) | **GET** /budgets/{budget_id}/categories | List categories
|
|
8
|
-
[**get_category_by_id**](CategoriesApi.md#get_category_by_id) | **GET** /budgets/{budget_id}/categories/{category_id} | Single category
|
|
9
|
-
[**get_month_category_by_id**](CategoriesApi.md#get_month_category_by_id) | **GET** /budgets/{budget_id}/months/{month}/categories/{category_id} | Single category for a specific budget month
|
|
10
|
-
[**update_month_category**](CategoriesApi.md#update_month_category) | **PATCH** /budgets/{budget_id}/months/{month}/categories/{category_id} | Update an existing month category
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
# **get_categories**
|
|
14
|
-
> CategoriesResponse get_categories(budget_id)
|
|
15
|
-
|
|
16
|
-
List categories
|
|
17
|
-
|
|
18
|
-
Returns all categories grouped by category group
|
|
19
|
-
|
|
20
|
-
### Parameters
|
|
21
|
-
|
|
22
|
-
Name | Type | Description | Notes
|
|
23
|
-
------------- | ------------- | ------------- | -------------
|
|
24
|
-
**budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
|
|
25
|
-
|
|
26
|
-
### Return type
|
|
27
|
-
|
|
28
|
-
[**CategoriesResponse**](CategoriesResponse.md)
|
|
29
|
-
|
|
30
|
-
# **get_category_by_id**
|
|
31
|
-
> CategoryResponse get_category_by_id(budget_id, category_id)
|
|
32
|
-
|
|
33
|
-
Single category
|
|
34
|
-
|
|
35
|
-
Returns a single category
|
|
36
|
-
|
|
37
|
-
### Parameters
|
|
38
|
-
|
|
39
|
-
Name | Type | Description | Notes
|
|
40
|
-
------------- | ------------- | ------------- | -------------
|
|
41
|
-
**budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
|
|
42
|
-
**category_id** | [**String**](.md)| The id of the category |
|
|
43
|
-
|
|
44
|
-
### Return type
|
|
45
|
-
|
|
46
|
-
[**CategoryResponse**](CategoryResponse.md)
|
|
47
|
-
|
|
48
|
-
# **get_month_category_by_id**
|
|
49
|
-
> CategoryResponse get_month_category_by_id(budget_id, month, category_id)
|
|
50
|
-
|
|
51
|
-
Single category for a specific budget month
|
|
52
|
-
|
|
53
|
-
Returns a single category for a specific budget month
|
|
54
|
-
|
|
55
|
-
### Parameters
|
|
56
|
-
|
|
57
|
-
Name | Type | Description | Notes
|
|
58
|
-
------------- | ------------- | ------------- | -------------
|
|
59
|
-
**budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
|
|
60
|
-
**month** | **Date**| the budget month in ISO format (e.g. 2016-12-30). (\"current\" can also be used to specify the current calendar month (UTC)) |
|
|
61
|
-
**category_id** | [**String**](.md)| The id of the category |
|
|
62
|
-
|
|
63
|
-
### Return type
|
|
64
|
-
|
|
65
|
-
[**CategoryResponse**](CategoryResponse.md)
|
|
66
|
-
|
|
67
|
-
# **update_month_category**
|
|
68
|
-
> CategoryResponse update_month_category(budget_id, month, category_id, month_category)
|
|
69
|
-
|
|
70
|
-
Update an existing month category
|
|
71
|
-
|
|
72
|
-
Update an existing month category
|
|
73
|
-
|
|
74
|
-
### Parameters
|
|
75
|
-
|
|
76
|
-
Name | Type | Description | Notes
|
|
77
|
-
------------- | ------------- | ------------- | -------------
|
|
78
|
-
**budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
|
|
79
|
-
**month** | **Date**| the budget month in ISO format (e.g. 2016-12-01). \"current\" can also be used to specify the current calendar month (UTC). |
|
|
80
|
-
**category_id** | [**String**](.md)| The id of the category |
|
|
81
|
-
**month_category** | [**SaveMonthCategoryWrapper**](SaveMonthCategoryWrapper.md)| The month category to update |
|
|
82
|
-
|
|
83
|
-
### Return type
|
|
84
|
-
|
|
85
|
-
[**CategoryResponse**](CategoryResponse.md)
|
|
86
|
-
|