ynab 3.8.0 → 4.9.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/Gemfile +1 -0
- data/Gemfile.lock +3 -1
- data/README.md +48 -40
- data/Rakefile +1 -1
- data/docs/Account.md +3 -3
- data/docs/AccountsApi.md +12 -12
- data/docs/CategoriesApi.md +89 -25
- data/docs/Category.md +5 -3
- data/docs/CategoryGroupWithCategories.md +1 -1
- data/docs/ExistingCategory.md +12 -0
- data/docs/MoneyMovement.md +16 -0
- data/docs/MoneyMovementGroup.md +12 -0
- data/docs/MoneyMovementGroupsResponse.md +8 -0
- data/docs/MoneyMovementGroupsResponseData.md +9 -0
- data/docs/MoneyMovementsApi.md +89 -0
- data/docs/{BudgetSettingsResponse.md → MoneyMovementsResponse.md} +2 -2
- data/docs/MoneyMovementsResponseData.md +9 -0
- data/docs/MonthDetail.md +2 -2
- data/docs/MonthSummary.md +1 -1
- data/docs/MonthsApi.md +13 -13
- data/docs/NewCategory.md +12 -0
- data/docs/PatchCategoryGroupWrapper.md +8 -0
- data/docs/PatchCategoryWrapper.md +1 -1
- data/docs/PayeeLocationsApi.md +12 -12
- data/docs/PayeesApi.md +11 -11
- data/docs/{BudgetDetail.md → PlanDetail.md} +4 -4
- data/docs/PlanDetailResponse.md +8 -0
- data/docs/{BudgetDetailResponseData.md → PlanDetailResponseData.md} +2 -2
- data/docs/{BudgetSettings.md → PlanSettings.md} +1 -1
- data/docs/{BudgetDetailResponse.md → PlanSettingsResponse.md} +2 -2
- data/docs/PlanSettingsResponseData.md +8 -0
- data/docs/PlanSummary.md +15 -0
- data/docs/PlanSummaryResponse.md +8 -0
- data/docs/PlanSummaryResponseData.md +9 -0
- data/docs/PlansApi.md +68 -0
- data/docs/PostCategoryGroupWrapper.md +8 -0
- data/docs/PostCategoryWrapper.md +8 -0
- data/docs/SaveCategory.md +2 -1
- data/docs/SaveCategoryGroup.md +8 -0
- data/docs/SaveCategoryGroupResponse.md +8 -0
- data/docs/SaveCategoryGroupResponseData.md +9 -0
- data/docs/SaveMonthCategory.md +1 -1
- data/docs/ScheduledTransactionsApi.md +20 -20
- data/docs/TransactionResponseData.md +1 -0
- data/docs/TransactionsApi.md +48 -48
- data/docs/UserApi.md +2 -2
- data/examples/category-balance.rb +2 -2
- data/examples/create-multiple-transactions.rb +2 -2
- data/examples/create-transaction.rb +2 -2
- data/examples/{budget-list.rb → plan-list.rb} +6 -6
- data/examples/{budget-month.rb → plan-month.rb} +9 -10
- data/examples/update-category-budgeted.rb +2 -2
- data/examples/update-multiple-transactions.rb +3 -3
- data/lib/ynab/api/accounts_api.rb +33 -34
- data/lib/ynab/api/categories_api.rb +293 -66
- data/lib/ynab/api/deprecated_api.rb +11 -11
- data/lib/ynab/api/money_movements_api.rb +282 -0
- data/lib/ynab/api/months_api.rb +35 -36
- data/lib/ynab/api/payee_locations_api.rb +33 -34
- data/lib/ynab/api/payees_api.rb +31 -32
- data/lib/ynab/api/{budgets_api.rb → plans_api.rb} +54 -55
- data/lib/ynab/api/scheduled_transactions_api.rb +55 -56
- data/lib/ynab/api/transactions_api.rb +130 -131
- data/lib/ynab/api/user_api.rb +2 -3
- data/lib/ynab/api_client.rb +0 -2
- data/lib/ynab/api_model_base.rb +85 -0
- data/lib/ynab/models/account.rb +4 -81
- data/lib/ynab/models/account_response.rb +1 -75
- data/lib/ynab/models/account_response_data.rb +1 -75
- data/lib/ynab/models/accounts_response.rb +1 -75
- data/lib/ynab/models/accounts_response_data.rb +1 -75
- data/lib/ynab/models/bulk_response.rb +1 -75
- data/lib/ynab/models/bulk_response_data.rb +1 -75
- data/lib/ynab/models/bulk_response_data_bulk.rb +1 -75
- data/lib/ynab/models/bulk_transactions.rb +1 -75
- data/lib/ynab/models/categories_response.rb +1 -75
- data/lib/ynab/models/categories_response_data.rb +1 -75
- data/lib/ynab/models/category.rb +27 -79
- data/lib/ynab/models/category_group.rb +1 -75
- data/lib/ynab/models/category_group_with_categories.rb +2 -76
- data/lib/ynab/models/category_response.rb +1 -75
- data/lib/ynab/models/category_response_data.rb +1 -75
- data/lib/ynab/models/currency_format.rb +2 -76
- data/lib/ynab/models/date_format.rb +2 -76
- data/lib/ynab/models/error_detail.rb +1 -75
- data/lib/ynab/models/error_response.rb +1 -75
- data/lib/ynab/models/existing_category.rb +180 -0
- data/lib/ynab/models/existing_transaction.rb +1 -79
- data/lib/ynab/models/hybrid_transaction.rb +1 -85
- data/lib/ynab/models/hybrid_transactions_response.rb +1 -75
- data/lib/ynab/models/hybrid_transactions_response_data.rb +1 -75
- data/lib/ynab/models/money_movement.rb +223 -0
- data/lib/ynab/models/money_movement_group.rb +179 -0
- data/lib/ynab/models/{budget_summary_response.rb → money_movement_groups_response.rb} +4 -78
- data/lib/ynab/models/money_movement_groups_response_data.rb +149 -0
- data/lib/ynab/models/{budget_settings_response.rb → money_movements_response.rb} +4 -78
- data/lib/ynab/models/money_movements_response_data.rb +149 -0
- data/lib/ynab/models/month_detail.rb +3 -79
- data/lib/ynab/models/month_detail_response.rb +1 -75
- data/lib/ynab/models/month_detail_response_data.rb +1 -75
- data/lib/ynab/models/month_summaries_response.rb +1 -75
- data/lib/ynab/models/month_summaries_response_data.rb +1 -75
- data/lib/ynab/models/month_summary.rb +2 -76
- data/lib/ynab/models/new_category.rb +180 -0
- data/lib/ynab/models/new_transaction.rb +1 -79
- data/lib/ynab/models/patch_category_group_wrapper.rb +136 -0
- data/lib/ynab/models/patch_category_wrapper.rb +2 -76
- data/lib/ynab/models/patch_month_category_wrapper.rb +1 -75
- data/lib/ynab/models/patch_payee_wrapper.rb +1 -75
- data/lib/ynab/models/patch_transactions_wrapper.rb +1 -75
- data/lib/ynab/models/payee.rb +1 -75
- data/lib/ynab/models/payee_location.rb +1 -75
- data/lib/ynab/models/payee_location_response.rb +1 -75
- data/lib/ynab/models/payee_location_response_data.rb +1 -75
- data/lib/ynab/models/payee_locations_response.rb +1 -75
- data/lib/ynab/models/payee_locations_response_data.rb +1 -75
- data/lib/ynab/models/payee_response.rb +1 -75
- data/lib/ynab/models/payee_response_data.rb +1 -75
- data/lib/ynab/models/payees_response.rb +1 -75
- data/lib/ynab/models/payees_response_data.rb +1 -75
- data/lib/ynab/models/{budget_detail.rb → plan_detail.rb} +7 -83
- data/lib/ynab/models/plan_detail_response.rb +136 -0
- data/lib/ynab/models/{budget_detail_response_data.rb → plan_detail_response_data.rb} +4 -78
- data/lib/ynab/models/{budget_settings.rb → plan_settings.rb} +5 -79
- data/lib/ynab/models/{budget_detail_response.rb → plan_settings_response.rb} +4 -78
- data/lib/ynab/models/{budget_settings_response_data.rb → plan_settings_response_data.rb} +4 -78
- data/lib/ynab/models/{budget_summary.rb → plan_summary.rb} +7 -83
- data/lib/ynab/models/plan_summary_response.rb +136 -0
- data/lib/ynab/models/{budget_summary_response_data.rb → plan_summary_response_data.rb} +5 -79
- data/lib/ynab/models/post_account_wrapper.rb +1 -75
- data/lib/ynab/models/post_category_group_wrapper.rb +136 -0
- data/lib/ynab/models/post_category_wrapper.rb +136 -0
- data/lib/ynab/models/post_scheduled_transaction_wrapper.rb +1 -75
- data/lib/ynab/models/post_transactions_wrapper.rb +1 -75
- data/lib/ynab/models/put_scheduled_transaction_wrapper.rb +1 -75
- data/lib/ynab/models/put_transaction_wrapper.rb +1 -75
- data/lib/ynab/models/save_account.rb +1 -75
- data/lib/ynab/models/save_category.rb +18 -81
- data/lib/ynab/models/save_category_group.rb +148 -0
- data/lib/ynab/models/save_category_group_response.rb +136 -0
- data/lib/ynab/models/save_category_group_response_data.rb +147 -0
- data/lib/ynab/models/save_category_response.rb +1 -75
- data/lib/ynab/models/save_category_response_data.rb +1 -75
- data/lib/ynab/models/save_month_category.rb +2 -76
- data/lib/ynab/models/save_payee.rb +1 -75
- data/lib/ynab/models/save_payee_response.rb +1 -75
- data/lib/ynab/models/save_payee_response_data.rb +1 -75
- data/lib/ynab/models/save_scheduled_transaction.rb +1 -75
- data/lib/ynab/models/save_sub_transaction.rb +1 -75
- data/lib/ynab/models/save_transaction_with_id_or_import_id.rb +1 -79
- data/lib/ynab/models/save_transaction_with_optional_fields.rb +1 -75
- data/lib/ynab/models/save_transactions_response.rb +1 -75
- data/lib/ynab/models/save_transactions_response_data.rb +1 -75
- data/lib/ynab/models/scheduled_sub_transaction.rb +1 -75
- data/lib/ynab/models/scheduled_transaction_detail.rb +1 -80
- data/lib/ynab/models/scheduled_transaction_response.rb +1 -75
- data/lib/ynab/models/scheduled_transaction_response_data.rb +1 -75
- data/lib/ynab/models/scheduled_transaction_summary.rb +1 -75
- data/lib/ynab/models/scheduled_transactions_response.rb +1 -75
- data/lib/ynab/models/scheduled_transactions_response_data.rb +1 -75
- data/lib/ynab/models/sub_transaction.rb +1 -75
- data/lib/ynab/models/transaction_detail.rb +1 -85
- data/lib/ynab/models/transaction_flag_color.rb +2 -1
- data/lib/ynab/models/transaction_response.rb +1 -75
- data/lib/ynab/models/transaction_response_data.rb +16 -79
- data/lib/ynab/models/transaction_summary.rb +1 -75
- data/lib/ynab/models/transactions_import_response.rb +1 -75
- data/lib/ynab/models/transactions_import_response_data.rb +1 -75
- data/lib/ynab/models/transactions_response.rb +1 -75
- data/lib/ynab/models/transactions_response_data.rb +1 -75
- data/lib/ynab/models/user.rb +1 -75
- data/lib/ynab/models/user_response.rb +1 -75
- data/lib/ynab/models/user_response_data.rb +1 -75
- data/lib/ynab/overrides/transactions_api.rb +6 -6
- data/lib/ynab/version.rb +1 -1
- data/lib/ynab.rb +28 -13
- data/open_api_spec.yaml +1163 -905
- data/spec/api/accounts_spec.rb +9 -9
- data/spec/api/categories_spec.rb +9 -9
- data/spec/api/months_spec.rb +7 -7
- data/spec/api/payee_locations_spec.rb +7 -7
- data/spec/api/payees_spec.rb +7 -7
- data/spec/api/{budgets_spec.rb → plans_spec.rb} +12 -12
- data/spec/api/scheduled_transactions_spec.rb +9 -9
- data/spec/api/transactions_spec.rb +28 -28
- data/spec/fixtures/vcr_cassettes/plans.yml +49 -0
- data/spec/fixtures/vcr_cassettes/plans_unauthorized.yml +49 -0
- data/templates/gem.mustache +3 -2
- data/templates/partial_model_generic.mustache +1 -1
- data/ynab.gemspec +1 -2
- metadata +94 -59
- data/docs/BudgetSettingsResponseData.md +0 -8
- data/docs/BudgetSummary.md +0 -15
- data/docs/BudgetSummaryResponse.md +0 -8
- data/docs/BudgetSummaryResponseData.md +0 -9
- data/docs/BudgetsApi.md +0 -68
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# YNAB::MoneyMovementsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.ynab.com/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**get_money_movement_groups**](MoneyMovementsApi.md#get_money_movement_groups) | **GET** /budgets/{plan_id}/money_movement_groups | Get all money movement groups |
|
|
8
|
+
| [**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 |
|
|
9
|
+
| [**get_money_movements**](MoneyMovementsApi.md#get_money_movements) | **GET** /budgets/{plan_id}/money_movements | Get all money movements |
|
|
10
|
+
| [**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 |
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## get_money_movement_groups
|
|
14
|
+
|
|
15
|
+
> <MoneyMovementGroupsResponse> get_money_movement_groups(plan_id)
|
|
16
|
+
|
|
17
|
+
Get all money movement groups
|
|
18
|
+
|
|
19
|
+
Returns all money movement groups
|
|
20
|
+
|
|
21
|
+
### Parameters
|
|
22
|
+
|
|
23
|
+
| Name | Type | Description | Notes |
|
|
24
|
+
| ---- | ---- | ----------- | ----- |
|
|
25
|
+
| **plan_id** | **String** | The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
|
|
26
|
+
|
|
27
|
+
### Return type
|
|
28
|
+
|
|
29
|
+
[**MoneyMovementGroupsResponse**](MoneyMovementGroupsResponse.md)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## get_money_movement_groups_by_month
|
|
33
|
+
|
|
34
|
+
> <MoneyMovementGroupsResponse> get_money_movement_groups_by_month(plan_id, month)
|
|
35
|
+
|
|
36
|
+
Get money movement groups for a plan month
|
|
37
|
+
|
|
38
|
+
Returns all money movement groups for a specific month
|
|
39
|
+
|
|
40
|
+
### Parameters
|
|
41
|
+
|
|
42
|
+
| Name | Type | Description | Notes |
|
|
43
|
+
| ---- | ---- | ----------- | ----- |
|
|
44
|
+
| **plan_id** | **String** | The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
|
|
45
|
+
| **month** | **Date** | The plan month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) | |
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
[**MoneyMovementGroupsResponse**](MoneyMovementGroupsResponse.md)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## get_money_movements
|
|
53
|
+
|
|
54
|
+
> <MoneyMovementsResponse> get_money_movements(plan_id)
|
|
55
|
+
|
|
56
|
+
Get all money movements
|
|
57
|
+
|
|
58
|
+
Returns all money movements
|
|
59
|
+
|
|
60
|
+
### Parameters
|
|
61
|
+
|
|
62
|
+
| Name | Type | Description | Notes |
|
|
63
|
+
| ---- | ---- | ----------- | ----- |
|
|
64
|
+
| **plan_id** | **String** | The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
|
|
65
|
+
|
|
66
|
+
### Return type
|
|
67
|
+
|
|
68
|
+
[**MoneyMovementsResponse**](MoneyMovementsResponse.md)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## get_money_movements_by_month
|
|
72
|
+
|
|
73
|
+
> <MoneyMovementsResponse> get_money_movements_by_month(plan_id, month)
|
|
74
|
+
|
|
75
|
+
Get money movements for a plan month
|
|
76
|
+
|
|
77
|
+
Returns all money movements for a specific month
|
|
78
|
+
|
|
79
|
+
### Parameters
|
|
80
|
+
|
|
81
|
+
| Name | Type | Description | Notes |
|
|
82
|
+
| ---- | ---- | ----------- | ----- |
|
|
83
|
+
| **plan_id** | **String** | The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
|
|
84
|
+
| **month** | **Date** | The plan month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) | |
|
|
85
|
+
|
|
86
|
+
### Return type
|
|
87
|
+
|
|
88
|
+
[**MoneyMovementsResponse**](MoneyMovementsResponse.md)
|
|
89
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# YNAB::
|
|
1
|
+
# YNAB::MoneyMovementsResponse
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **data** | [**
|
|
7
|
+
| **data** | [**MoneyMovementsResponseData**](MoneyMovementsResponseData.md) | | |
|
|
8
8
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# YNAB::MoneyMovementsResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **money_movements** | [**Array<MoneyMovement>**](MoneyMovement.md) | | |
|
|
8
|
+
| **server_knowledge** | **Integer** | The knowledge of the server | |
|
|
9
|
+
|
data/docs/MonthDetail.md
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
| **month** | **Date** | | |
|
|
8
8
|
| **note** | **String** | | [optional] |
|
|
9
9
|
| **income** | **Integer** | The total amount of transactions categorized to 'Inflow: Ready to Assign' in the month | |
|
|
10
|
-
| **budgeted** | **Integer** | The total amount budgeted in the month | |
|
|
10
|
+
| **budgeted** | **Integer** | The total amount assigned (budgeted) in the month | |
|
|
11
11
|
| **activity** | **Integer** | The total amount of transactions in the month, excluding those categorized to 'Inflow: Ready to Assign' | |
|
|
12
12
|
| **to_be_budgeted** | **Integer** | The available amount for 'Ready to Assign' | |
|
|
13
13
|
| **age_of_money** | **Integer** | The Age of Money as of the month | [optional] |
|
|
14
14
|
| **deleted** | **Boolean** | Whether or not the month has been deleted. Deleted months will only be included in delta requests. | |
|
|
15
|
-
| **categories** | [**Array<Category>**](Category.md) | The
|
|
15
|
+
| **categories** | [**Array<Category>**](Category.md) | The plan month categories. Amounts (budgeted, activity, balance, etc.) are specific to the {month} parameter specified. | |
|
|
16
16
|
|
data/docs/MonthSummary.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| **month** | **Date** | | |
|
|
8
8
|
| **note** | **String** | | [optional] |
|
|
9
9
|
| **income** | **Integer** | The total amount of transactions categorized to 'Inflow: Ready to Assign' in the month | |
|
|
10
|
-
| **budgeted** | **Integer** | The total amount budgeted in the month | |
|
|
10
|
+
| **budgeted** | **Integer** | The total amount assigned (budgeted) in the month | |
|
|
11
11
|
| **activity** | **Integer** | The total amount of transactions in the month, excluding those categorized to 'Inflow: Ready to Assign' | |
|
|
12
12
|
| **to_be_budgeted** | **Integer** | The available amount for 'Ready to Assign' | |
|
|
13
13
|
| **age_of_money** | **Integer** | The Age of Money as of the month | [optional] |
|
data/docs/MonthsApi.md
CHANGED
|
@@ -4,43 +4,43 @@ All URIs are relative to *https://api.ynab.com/v1*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**
|
|
8
|
-
| [**
|
|
7
|
+
| [**get_plan_month**](MonthsApi.md#get_plan_month) | **GET** /budgets/{plan_id}/months/{month} | Get a plan month |
|
|
8
|
+
| [**get_plan_months**](MonthsApi.md#get_plan_months) | **GET** /budgets/{plan_id}/months | Get all plan months |
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## get_plan_month
|
|
12
12
|
|
|
13
|
-
> <MonthDetailResponse>
|
|
13
|
+
> <MonthDetailResponse> get_plan_month(plan_id, month)
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Get a plan month
|
|
16
16
|
|
|
17
|
-
Returns a single
|
|
17
|
+
Returns a single plan month
|
|
18
18
|
|
|
19
19
|
### Parameters
|
|
20
20
|
|
|
21
21
|
| Name | Type | Description | Notes |
|
|
22
22
|
| ---- | ---- | ----------- | ----- |
|
|
23
|
-
| **
|
|
24
|
-
| **month** | **Date** | The
|
|
23
|
+
| **plan_id** | **String** | The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
|
|
24
|
+
| **month** | **Date** | The plan month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) | |
|
|
25
25
|
|
|
26
26
|
### Return type
|
|
27
27
|
|
|
28
28
|
[**MonthDetailResponse**](MonthDetailResponse.md)
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
##
|
|
31
|
+
## get_plan_months
|
|
32
32
|
|
|
33
|
-
> <MonthSummariesResponse>
|
|
33
|
+
> <MonthSummariesResponse> get_plan_months(plan_id, opts)
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
Get all plan months
|
|
36
36
|
|
|
37
|
-
Returns all
|
|
37
|
+
Returns all plan months
|
|
38
38
|
|
|
39
39
|
### Parameters
|
|
40
40
|
|
|
41
41
|
| Name | Type | Description | Notes |
|
|
42
42
|
| ---- | ---- | ----------- | ----- |
|
|
43
|
-
| **
|
|
43
|
+
| **plan_id** | **String** | The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
|
|
44
44
|
| **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] |
|
|
45
45
|
|
|
46
46
|
### Return type
|
data/docs/NewCategory.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# YNAB::NewCategory
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | | [optional] |
|
|
8
|
+
| **note** | **String** | | [optional] |
|
|
9
|
+
| **category_group_id** | **String** | | [optional] |
|
|
10
|
+
| **goal_target** | **Integer** | The goal target amount in milliunits format. If value is specified and goal has not already been configured for category, a monthly 'Needed for Spending' goal will be created for the category with this target amount. | [optional] |
|
|
11
|
+
| **goal_target_date** | **Date** | The goal target date in ISO format (e.g. 2016-12-01). | [optional] |
|
|
12
|
+
|
data/docs/PayeeLocationsApi.md
CHANGED
|
@@ -4,16 +4,16 @@ All URIs are relative to *https://api.ynab.com/v1*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**get_payee_location_by_id**](PayeeLocationsApi.md#get_payee_location_by_id) | **GET** /budgets/{
|
|
8
|
-
| [**get_payee_locations**](PayeeLocationsApi.md#get_payee_locations) | **GET** /budgets/{
|
|
9
|
-
| [**get_payee_locations_by_payee**](PayeeLocationsApi.md#get_payee_locations_by_payee) | **GET** /budgets/{
|
|
7
|
+
| [**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 |
|
|
8
|
+
| [**get_payee_locations**](PayeeLocationsApi.md#get_payee_locations) | **GET** /budgets/{plan_id}/payee_locations | Get all payee locations |
|
|
9
|
+
| [**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 |
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
## get_payee_location_by_id
|
|
13
13
|
|
|
14
|
-
> <PayeeLocationResponse> get_payee_location_by_id(
|
|
14
|
+
> <PayeeLocationResponse> get_payee_location_by_id(plan_id, payee_location_id)
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Get a payee location
|
|
17
17
|
|
|
18
18
|
Returns a single payee location
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ Returns a single payee location
|
|
|
21
21
|
|
|
22
22
|
| Name | Type | Description | Notes |
|
|
23
23
|
| ---- | ---- | ----------- | ----- |
|
|
24
|
-
| **
|
|
24
|
+
| **plan_id** | **String** | The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
|
|
25
25
|
| **payee_location_id** | **String** | id of payee location | |
|
|
26
26
|
|
|
27
27
|
### Return type
|
|
@@ -31,9 +31,9 @@ Returns a single payee location
|
|
|
31
31
|
|
|
32
32
|
## get_payee_locations
|
|
33
33
|
|
|
34
|
-
> <PayeeLocationsResponse> get_payee_locations(
|
|
34
|
+
> <PayeeLocationsResponse> get_payee_locations(plan_id)
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Get all payee locations
|
|
37
37
|
|
|
38
38
|
Returns all payee locations
|
|
39
39
|
|
|
@@ -41,7 +41,7 @@ Returns all payee locations
|
|
|
41
41
|
|
|
42
42
|
| Name | Type | Description | Notes |
|
|
43
43
|
| ---- | ---- | ----------- | ----- |
|
|
44
|
-
| **
|
|
44
|
+
| **plan_id** | **String** | The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
|
|
45
45
|
|
|
46
46
|
### Return type
|
|
47
47
|
|
|
@@ -50,9 +50,9 @@ Returns all payee locations
|
|
|
50
50
|
|
|
51
51
|
## get_payee_locations_by_payee
|
|
52
52
|
|
|
53
|
-
> <PayeeLocationsResponse> get_payee_locations_by_payee(
|
|
53
|
+
> <PayeeLocationsResponse> get_payee_locations_by_payee(plan_id, payee_id)
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
Get all locations for a payee
|
|
56
56
|
|
|
57
57
|
Returns all payee locations for a specified payee
|
|
58
58
|
|
|
@@ -60,7 +60,7 @@ Returns all payee locations for a specified payee
|
|
|
60
60
|
|
|
61
61
|
| Name | Type | Description | Notes |
|
|
62
62
|
| ---- | ---- | ----------- | ----- |
|
|
63
|
-
| **
|
|
63
|
+
| **plan_id** | **String** | The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
|
|
64
64
|
| **payee_id** | **String** | id of payee | |
|
|
65
65
|
|
|
66
66
|
### Return type
|
data/docs/PayeesApi.md
CHANGED
|
@@ -4,16 +4,16 @@ All URIs are relative to *https://api.ynab.com/v1*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**get_payee_by_id**](PayeesApi.md#get_payee_by_id) | **GET** /budgets/{
|
|
8
|
-
| [**get_payees**](PayeesApi.md#get_payees) | **GET** /budgets/{
|
|
9
|
-
| [**update_payee**](PayeesApi.md#update_payee) | **PATCH** /budgets/{
|
|
7
|
+
| [**get_payee_by_id**](PayeesApi.md#get_payee_by_id) | **GET** /budgets/{plan_id}/payees/{payee_id} | Get a payee |
|
|
8
|
+
| [**get_payees**](PayeesApi.md#get_payees) | **GET** /budgets/{plan_id}/payees | Get all payees |
|
|
9
|
+
| [**update_payee**](PayeesApi.md#update_payee) | **PATCH** /budgets/{plan_id}/payees/{payee_id} | Update a payee |
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
## get_payee_by_id
|
|
13
13
|
|
|
14
|
-
> <PayeeResponse> get_payee_by_id(
|
|
14
|
+
> <PayeeResponse> get_payee_by_id(plan_id, payee_id)
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Get a payee
|
|
17
17
|
|
|
18
18
|
Returns a single payee
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ Returns a single payee
|
|
|
21
21
|
|
|
22
22
|
| Name | Type | Description | Notes |
|
|
23
23
|
| ---- | ---- | ----------- | ----- |
|
|
24
|
-
| **
|
|
24
|
+
| **plan_id** | **String** | The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
|
|
25
25
|
| **payee_id** | **String** | The id of the payee | |
|
|
26
26
|
|
|
27
27
|
### Return type
|
|
@@ -31,9 +31,9 @@ Returns a single payee
|
|
|
31
31
|
|
|
32
32
|
## get_payees
|
|
33
33
|
|
|
34
|
-
> <PayeesResponse> get_payees(
|
|
34
|
+
> <PayeesResponse> get_payees(plan_id, opts)
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Get all payees
|
|
37
37
|
|
|
38
38
|
Returns all payees
|
|
39
39
|
|
|
@@ -41,7 +41,7 @@ Returns all payees
|
|
|
41
41
|
|
|
42
42
|
| Name | Type | Description | Notes |
|
|
43
43
|
| ---- | ---- | ----------- | ----- |
|
|
44
|
-
| **
|
|
44
|
+
| **plan_id** | **String** | The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
|
|
45
45
|
| **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] |
|
|
46
46
|
|
|
47
47
|
### Return type
|
|
@@ -51,7 +51,7 @@ Returns all payees
|
|
|
51
51
|
|
|
52
52
|
## update_payee
|
|
53
53
|
|
|
54
|
-
> <SavePayeeResponse> update_payee(
|
|
54
|
+
> <SavePayeeResponse> update_payee(plan_id, payee_id, data)
|
|
55
55
|
|
|
56
56
|
Update a payee
|
|
57
57
|
|
|
@@ -61,7 +61,7 @@ Update a payee
|
|
|
61
61
|
|
|
62
62
|
| Name | Type | Description | Notes |
|
|
63
63
|
| ---- | ---- | ----------- | ----- |
|
|
64
|
-
| **
|
|
64
|
+
| **plan_id** | **String** | The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
|
|
65
65
|
| **payee_id** | **String** | The id of the payee | |
|
|
66
66
|
| **data** | [**PatchPayeeWrapper**](PatchPayeeWrapper.md) | The payee to update | |
|
|
67
67
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# YNAB::
|
|
1
|
+
# YNAB::PlanDetail
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **id** | **String** | | |
|
|
8
8
|
| **name** | **String** | | |
|
|
9
|
-
| **last_modified_on** | **Time** | The last time any changes were made to the
|
|
10
|
-
| **first_month** | **Date** | The earliest
|
|
11
|
-
| **last_month** | **Date** | The latest
|
|
9
|
+
| **last_modified_on** | **Time** | The last time any changes were made to the plan from either a web or mobile client | [optional] |
|
|
10
|
+
| **first_month** | **Date** | The earliest plan month | [optional] |
|
|
11
|
+
| **last_month** | **Date** | The latest plan month | [optional] |
|
|
12
12
|
| **date_format** | [**DateFormat**](DateFormat.md) | | [optional] |
|
|
13
13
|
| **currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | | [optional] |
|
|
14
14
|
| **accounts** | [**Array<Account>**](Account.md) | | [optional] |
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# YNAB::
|
|
1
|
+
# YNAB::PlanDetailResponseData
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **budget** | [**
|
|
7
|
+
| **budget** | [**PlanDetail**](PlanDetail.md) | | |
|
|
8
8
|
| **server_knowledge** | **Integer** | The knowledge of the server | |
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# YNAB::
|
|
1
|
+
# YNAB::PlanSettingsResponse
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **data** | [**
|
|
7
|
+
| **data** | [**PlanSettingsResponseData**](PlanSettingsResponseData.md) | | |
|
|
8
8
|
|
data/docs/PlanSummary.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# YNAB::PlanSummary
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | |
|
|
8
|
+
| **name** | **String** | | |
|
|
9
|
+
| **last_modified_on** | **Time** | The last time any changes were made to the plan from either a web or mobile client | [optional] |
|
|
10
|
+
| **first_month** | **Date** | The earliest plan month | [optional] |
|
|
11
|
+
| **last_month** | **Date** | The latest plan month | [optional] |
|
|
12
|
+
| **date_format** | [**DateFormat**](DateFormat.md) | | [optional] |
|
|
13
|
+
| **currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | | [optional] |
|
|
14
|
+
| **accounts** | [**Array<Account>**](Account.md) | The plan accounts (only included if `include_accounts=true` specified as query parameter) | [optional] |
|
|
15
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# YNAB::PlanSummaryResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **budgets** | [**Array<PlanSummary>**](PlanSummary.md) | | |
|
|
8
|
+
| **default_budget** | [**PlanSummary**](PlanSummary.md) | | [optional] |
|
|
9
|
+
|
data/docs/PlansApi.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# YNAB::PlansApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.ynab.com/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**get_plan_by_id**](PlansApi.md#get_plan_by_id) | **GET** /budgets/{plan_id} | Get a plan |
|
|
8
|
+
| [**get_plan_settings_by_id**](PlansApi.md#get_plan_settings_by_id) | **GET** /budgets/{plan_id}/settings | Get plan settings |
|
|
9
|
+
| [**get_plans**](PlansApi.md#get_plans) | **GET** /budgets | Get all plans |
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## get_plan_by_id
|
|
13
|
+
|
|
14
|
+
> <PlanDetailResponse> get_plan_by_id(plan_id, opts)
|
|
15
|
+
|
|
16
|
+
Get a plan
|
|
17
|
+
|
|
18
|
+
Returns a single plan with all related entities. This resource is effectively a full plan export.
|
|
19
|
+
|
|
20
|
+
### Parameters
|
|
21
|
+
|
|
22
|
+
| Name | Type | Description | Notes |
|
|
23
|
+
| ---- | ---- | ----------- | ----- |
|
|
24
|
+
| **plan_id** | **String** | The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
|
|
25
|
+
| **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] |
|
|
26
|
+
|
|
27
|
+
### Return type
|
|
28
|
+
|
|
29
|
+
[**PlanDetailResponse**](PlanDetailResponse.md)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## get_plan_settings_by_id
|
|
33
|
+
|
|
34
|
+
> <PlanSettingsResponse> get_plan_settings_by_id(plan_id)
|
|
35
|
+
|
|
36
|
+
Get plan settings
|
|
37
|
+
|
|
38
|
+
Returns settings for a plan
|
|
39
|
+
|
|
40
|
+
### Parameters
|
|
41
|
+
|
|
42
|
+
| Name | Type | Description | Notes |
|
|
43
|
+
| ---- | ---- | ----------- | ----- |
|
|
44
|
+
| **plan_id** | **String** | The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
[**PlanSettingsResponse**](PlanSettingsResponse.md)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## get_plans
|
|
52
|
+
|
|
53
|
+
> <PlanSummaryResponse> get_plans(opts)
|
|
54
|
+
|
|
55
|
+
Get all plans
|
|
56
|
+
|
|
57
|
+
Returns plans list with summary information
|
|
58
|
+
|
|
59
|
+
### Parameters
|
|
60
|
+
|
|
61
|
+
| Name | Type | Description | Notes |
|
|
62
|
+
| ---- | ---- | ----------- | ----- |
|
|
63
|
+
| **include_accounts** | **Boolean** | Whether to include the list of plan accounts | [optional] |
|
|
64
|
+
|
|
65
|
+
### Return type
|
|
66
|
+
|
|
67
|
+
[**PlanSummaryResponse**](PlanSummaryResponse.md)
|
|
68
|
+
|
data/docs/SaveCategory.md
CHANGED
|
@@ -7,5 +7,6 @@
|
|
|
7
7
|
| **name** | **String** | | [optional] |
|
|
8
8
|
| **note** | **String** | | [optional] |
|
|
9
9
|
| **category_group_id** | **String** | | [optional] |
|
|
10
|
-
| **goal_target** | **Integer** | The goal target amount in milliunits format.
|
|
10
|
+
| **goal_target** | **Integer** | The goal target amount in milliunits format. If value is specified and goal has not already been configured for category, a monthly 'Needed for Spending' goal will be created for the category with this target amount. | [optional] |
|
|
11
|
+
| **goal_target_date** | **Date** | The goal target date in ISO format (e.g. 2016-12-01). | [optional] |
|
|
11
12
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# YNAB::SaveCategoryGroupResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **category_group** | [**CategoryGroup**](CategoryGroup.md) | | |
|
|
8
|
+
| **server_knowledge** | **Integer** | The knowledge of the server | |
|
|
9
|
+
|
data/docs/SaveMonthCategory.md
CHANGED