ynab 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -6
- data/lib/ynab/api/accounts_api.rb +4 -4
- data/lib/ynab/api/budgets_api.rb +4 -4
- data/lib/ynab/api/categories_api.rb +8 -8
- data/lib/ynab/api/deprecated_api.rb +2 -2
- data/lib/ynab/api/months_api.rb +4 -4
- data/lib/ynab/api/payee_locations_api.rb +6 -6
- data/lib/ynab/api/payees_api.rb +4 -4
- data/lib/ynab/api/scheduled_transactions_api.rb +4 -4
- data/lib/ynab/api/transactions_api.rb +18 -18
- data/lib/ynab/models/budget_detail.rb +22 -2
- data/lib/ynab/models/budget_summary.rb +22 -2
- data/lib/ynab/models/budget_summary_wrapper.rb +19 -4
- data/lib/ynab/models/category_wrapper.rb +19 -4
- data/lib/ynab/models/hybrid_transaction.rb +1 -0
- data/lib/ynab/models/save_transaction.rb +48 -2
- data/lib/ynab/models/save_transactions_response_data.rb +20 -5
- data/lib/ynab/models/transaction_detail.rb +1 -0
- data/lib/ynab/models/transaction_summary.rb +1 -0
- data/lib/ynab/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48678cdc0d9e4290052d55c04942748640391e269155568f579d29e479c2b621
|
4
|
+
data.tar.gz: cb70a5b53a92a5c6bb45b8a8248f68315535a6b16b380712cfc86396862a416f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 911d14c371e277e7f722a73788ee56df865ea67ef803dcd639e7549b7319cca184a70c8644c6cae86e1c4a9811989fd8c71a88a3fb412e1e02b482b4ca6f071c
|
7
|
+
data.tar.gz: aa47f56a7cd90ad49ecff2ba06db0db2aa6544a62009f155d2c9088351a6043453a82ae06794a983c8fccd5fbba1f5411358bf542e2f9e679128cc71825dc5c8
|
data/README.md
CHANGED
@@ -74,12 +74,6 @@ The following methods are available in this library.
|
|
74
74
|
| **Scheduled Transactions** | [scheduled_transactions.get_scheduled_transactions(budget_id)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/ScheduledTransactionsApi.md#get_scheduled_transactions) | Returns all scheduled transactions |
|
75
75
|
| | [scheduled_transactions.get_scheduled_transaction_by_id(budget_id, scheduled_transaction_id)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/ScheduledTransactionsApi.md#get_scheduled_transaction_by_id) | Returns a single scheduled transaction |
|
76
76
|
|
77
|
-
## Development
|
78
|
-
|
79
|
-
- Install dependencies: `bundle`
|
80
|
-
- Generate latest client based on swagger spec: `rake generate`
|
81
|
-
- Run tests: `rake spec` or `rspec`
|
82
|
-
|
83
77
|
## License
|
84
78
|
|
85
79
|
Copyright (c) 2018 You Need A Budget, LLC
|
@@ -21,7 +21,7 @@ module YNAB
|
|
21
21
|
end
|
22
22
|
# Single account
|
23
23
|
# Returns a single account
|
24
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
24
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
25
25
|
# @param account_id The id of the account
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [AccountResponse]
|
@@ -32,7 +32,7 @@ module YNAB
|
|
32
32
|
|
33
33
|
# Single account
|
34
34
|
# Returns a single account
|
35
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
35
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
36
36
|
# @param account_id The id of the account
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @return [Array<(AccountResponse, Fixnum, Hash)>] AccountResponse data, response status code and response headers
|
@@ -79,7 +79,7 @@ module YNAB
|
|
79
79
|
end
|
80
80
|
# Account list
|
81
81
|
# Returns all accounts
|
82
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
82
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
83
83
|
# @param [Hash] opts the optional parameters
|
84
84
|
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
85
85
|
# @return [AccountsResponse]
|
@@ -90,7 +90,7 @@ module YNAB
|
|
90
90
|
|
91
91
|
# Account list
|
92
92
|
# Returns all accounts
|
93
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
93
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
94
94
|
# @param [Hash] opts the optional parameters
|
95
95
|
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
96
96
|
# @return [Array<(AccountsResponse, Fixnum, Hash)>] AccountsResponse data, response status code and response headers
|
data/lib/ynab/api/budgets_api.rb
CHANGED
@@ -21,7 +21,7 @@ module YNAB
|
|
21
21
|
end
|
22
22
|
# Single budget
|
23
23
|
# Returns a single budget with all related entities. This resource is effectively a full budget export.
|
24
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
24
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
27
27
|
# @return [BudgetDetailResponse]
|
@@ -32,7 +32,7 @@ module YNAB
|
|
32
32
|
|
33
33
|
# Single budget
|
34
34
|
# Returns a single budget with all related entities. This resource is effectively a full budget export.
|
35
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
35
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
38
38
|
# @return [Array<(BudgetDetailResponse, Fixnum, Hash)>] BudgetDetailResponse data, response status code and response headers
|
@@ -76,7 +76,7 @@ module YNAB
|
|
76
76
|
end
|
77
77
|
# Budget Settings
|
78
78
|
# Returns settings for a budget
|
79
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
79
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
80
80
|
# @param [Hash] opts the optional parameters
|
81
81
|
# @return [BudgetSettingsResponse]
|
82
82
|
def get_budget_settings_by_id(budget_id, opts = {})
|
@@ -86,7 +86,7 @@ module YNAB
|
|
86
86
|
|
87
87
|
# Budget Settings
|
88
88
|
# Returns settings for a budget
|
89
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
89
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
90
90
|
# @param [Hash] opts the optional parameters
|
91
91
|
# @return [Array<(BudgetSettingsResponse, Fixnum, Hash)>] BudgetSettingsResponse data, response status code and response headers
|
92
92
|
def get_budget_settings_by_id_with_http_info(budget_id, opts = {})
|
@@ -21,7 +21,7 @@ module YNAB
|
|
21
21
|
end
|
22
22
|
# List categories
|
23
23
|
# Returns all categories grouped by category group. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
|
24
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
24
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
27
27
|
# @return [CategoriesResponse]
|
@@ -32,7 +32,7 @@ module YNAB
|
|
32
32
|
|
33
33
|
# List categories
|
34
34
|
# Returns all categories grouped by category group. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
|
35
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
35
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
38
38
|
# @return [Array<(CategoriesResponse, Fixnum, Hash)>] CategoriesResponse data, response status code and response headers
|
@@ -76,7 +76,7 @@ module YNAB
|
|
76
76
|
end
|
77
77
|
# Single category
|
78
78
|
# Returns a single category. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
|
79
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
79
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
80
80
|
# @param category_id The id of the category
|
81
81
|
# @param [Hash] opts the optional parameters
|
82
82
|
# @return [CategoryResponse]
|
@@ -87,7 +87,7 @@ module YNAB
|
|
87
87
|
|
88
88
|
# Single category
|
89
89
|
# Returns a single category. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
|
90
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
90
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
91
91
|
# @param category_id The id of the category
|
92
92
|
# @param [Hash] opts the optional parameters
|
93
93
|
# @return [Array<(CategoryResponse, Fixnum, Hash)>] CategoryResponse data, response status code and response headers
|
@@ -134,7 +134,7 @@ module YNAB
|
|
134
134
|
end
|
135
135
|
# Single category for a specific budget month
|
136
136
|
# Returns a single category for a specific budget month. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
|
137
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
137
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
138
138
|
# @param month The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC))
|
139
139
|
# @param category_id The id of the category
|
140
140
|
# @param [Hash] opts the optional parameters
|
@@ -146,7 +146,7 @@ module YNAB
|
|
146
146
|
|
147
147
|
# Single category for a specific budget month
|
148
148
|
# Returns a single category for a specific budget month. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
|
149
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
149
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
150
150
|
# @param month The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC))
|
151
151
|
# @param category_id The id of the category
|
152
152
|
# @param [Hash] opts the optional parameters
|
@@ -198,7 +198,7 @@ module YNAB
|
|
198
198
|
end
|
199
199
|
# Update a category for a specific month
|
200
200
|
# Update a category for a specific month
|
201
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
201
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
202
202
|
# @param month The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC))
|
203
203
|
# @param category_id The id of the category
|
204
204
|
# @param data The category to update
|
@@ -211,7 +211,7 @@ module YNAB
|
|
211
211
|
|
212
212
|
# Update a category for a specific month
|
213
213
|
# Update a category for a specific month
|
214
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
214
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
215
215
|
# @param month The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC))
|
216
216
|
# @param category_id The id of the category
|
217
217
|
# @param data The category to update
|
@@ -21,7 +21,7 @@ module YNAB
|
|
21
21
|
end
|
22
22
|
# Bulk create transactions
|
23
23
|
# Creates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /budgets/{budget_id}/transactions' to create multiple transactions.
|
24
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
24
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
25
25
|
# @param transactions The list of transactions to create
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [BulkResponse]
|
@@ -32,7 +32,7 @@ module YNAB
|
|
32
32
|
|
33
33
|
# Bulk create transactions
|
34
34
|
# Creates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /budgets/{budget_id}/transactions' to create multiple transactions.
|
35
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
35
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
36
36
|
# @param transactions The list of transactions to create
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @return [Array<(BulkResponse, Fixnum, Hash)>] BulkResponse data, response status code and response headers
|
data/lib/ynab/api/months_api.rb
CHANGED
@@ -21,7 +21,7 @@ module YNAB
|
|
21
21
|
end
|
22
22
|
# Single budget month
|
23
23
|
# Returns a single budget month
|
24
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
24
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
25
25
|
# @param month The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC))
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [MonthDetailResponse]
|
@@ -32,7 +32,7 @@ module YNAB
|
|
32
32
|
|
33
33
|
# Single budget month
|
34
34
|
# Returns a single budget month
|
35
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
35
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
36
36
|
# @param month The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC))
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @return [Array<(MonthDetailResponse, Fixnum, Hash)>] MonthDetailResponse data, response status code and response headers
|
@@ -79,7 +79,7 @@ module YNAB
|
|
79
79
|
end
|
80
80
|
# List budget months
|
81
81
|
# Returns all budget months
|
82
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
82
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
83
83
|
# @param [Hash] opts the optional parameters
|
84
84
|
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
85
85
|
# @return [MonthSummariesResponse]
|
@@ -90,7 +90,7 @@ module YNAB
|
|
90
90
|
|
91
91
|
# List budget months
|
92
92
|
# Returns all budget months
|
93
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
93
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
94
94
|
# @param [Hash] opts the optional parameters
|
95
95
|
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
96
96
|
# @return [Array<(MonthSummariesResponse, Fixnum, Hash)>] MonthSummariesResponse data, response status code and response headers
|
@@ -21,7 +21,7 @@ module YNAB
|
|
21
21
|
end
|
22
22
|
# Single payee location
|
23
23
|
# Returns a single payee location
|
24
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
24
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
25
25
|
# @param payee_location_id id of payee location
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [PayeeLocationResponse]
|
@@ -32,7 +32,7 @@ module YNAB
|
|
32
32
|
|
33
33
|
# Single payee location
|
34
34
|
# Returns a single payee location
|
35
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
35
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
36
36
|
# @param payee_location_id id of payee location
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @return [Array<(PayeeLocationResponse, Fixnum, Hash)>] PayeeLocationResponse data, response status code and response headers
|
@@ -79,7 +79,7 @@ module YNAB
|
|
79
79
|
end
|
80
80
|
# List payee locations
|
81
81
|
# Returns all payee locations
|
82
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
82
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
83
83
|
# @param [Hash] opts the optional parameters
|
84
84
|
# @return [PayeeLocationsResponse]
|
85
85
|
def get_payee_locations(budget_id, opts = {})
|
@@ -89,7 +89,7 @@ module YNAB
|
|
89
89
|
|
90
90
|
# List payee locations
|
91
91
|
# Returns all payee locations
|
92
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
92
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
93
93
|
# @param [Hash] opts the optional parameters
|
94
94
|
# @return [Array<(PayeeLocationsResponse, Fixnum, Hash)>] PayeeLocationsResponse data, response status code and response headers
|
95
95
|
def get_payee_locations_with_http_info(budget_id, opts = {})
|
@@ -131,7 +131,7 @@ module YNAB
|
|
131
131
|
end
|
132
132
|
# List locations for a payee
|
133
133
|
# Returns all payee locations for the specified payee
|
134
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
134
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
135
135
|
# @param payee_id id of payee
|
136
136
|
# @param [Hash] opts the optional parameters
|
137
137
|
# @return [PayeeLocationsResponse]
|
@@ -142,7 +142,7 @@ module YNAB
|
|
142
142
|
|
143
143
|
# List locations for a payee
|
144
144
|
# Returns all payee locations for the specified payee
|
145
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
145
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
146
146
|
# @param payee_id id of payee
|
147
147
|
# @param [Hash] opts the optional parameters
|
148
148
|
# @return [Array<(PayeeLocationsResponse, Fixnum, Hash)>] PayeeLocationsResponse data, response status code and response headers
|
data/lib/ynab/api/payees_api.rb
CHANGED
@@ -21,7 +21,7 @@ module YNAB
|
|
21
21
|
end
|
22
22
|
# Single payee
|
23
23
|
# Returns single payee
|
24
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
24
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
25
25
|
# @param payee_id The id of the payee
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [PayeeResponse]
|
@@ -32,7 +32,7 @@ module YNAB
|
|
32
32
|
|
33
33
|
# Single payee
|
34
34
|
# Returns single payee
|
35
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
35
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
36
36
|
# @param payee_id The id of the payee
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @return [Array<(PayeeResponse, Fixnum, Hash)>] PayeeResponse data, response status code and response headers
|
@@ -79,7 +79,7 @@ module YNAB
|
|
79
79
|
end
|
80
80
|
# List payees
|
81
81
|
# Returns all payees
|
82
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
82
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
83
83
|
# @param [Hash] opts the optional parameters
|
84
84
|
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
85
85
|
# @return [PayeesResponse]
|
@@ -90,7 +90,7 @@ module YNAB
|
|
90
90
|
|
91
91
|
# List payees
|
92
92
|
# Returns all payees
|
93
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
93
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
94
94
|
# @param [Hash] opts the optional parameters
|
95
95
|
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
96
96
|
# @return [Array<(PayeesResponse, Fixnum, Hash)>] PayeesResponse data, response status code and response headers
|
@@ -21,7 +21,7 @@ module YNAB
|
|
21
21
|
end
|
22
22
|
# Single scheduled transaction
|
23
23
|
# Returns a single scheduled transaction
|
24
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
24
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
25
25
|
# @param scheduled_transaction_id The id of the scheduled transaction
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [ScheduledTransactionResponse]
|
@@ -32,7 +32,7 @@ module YNAB
|
|
32
32
|
|
33
33
|
# Single scheduled transaction
|
34
34
|
# Returns a single scheduled transaction
|
35
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
35
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
36
36
|
# @param scheduled_transaction_id The id of the scheduled transaction
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @return [Array<(ScheduledTransactionResponse, Fixnum, Hash)>] ScheduledTransactionResponse data, response status code and response headers
|
@@ -79,7 +79,7 @@ module YNAB
|
|
79
79
|
end
|
80
80
|
# List scheduled transactions
|
81
81
|
# Returns all scheduled transactions
|
82
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
82
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
83
83
|
# @param [Hash] opts the optional parameters
|
84
84
|
# @return [ScheduledTransactionsResponse]
|
85
85
|
def get_scheduled_transactions(budget_id, opts = {})
|
@@ -89,7 +89,7 @@ module YNAB
|
|
89
89
|
|
90
90
|
# List scheduled transactions
|
91
91
|
# Returns all scheduled transactions
|
92
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
92
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
93
93
|
# @param [Hash] opts the optional parameters
|
94
94
|
# @return [Array<(ScheduledTransactionsResponse, Fixnum, Hash)>] ScheduledTransactionsResponse data, response status code and response headers
|
95
95
|
def get_scheduled_transactions_with_http_info(budget_id, opts = {})
|
@@ -20,8 +20,8 @@ module YNAB
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Create a single transaction or multiple transactions
|
23
|
-
# Creates a single transaction or multiple transactions. If you provide a body containing a 'transaction' object, a single transaction will be created and if you provide a body containing a 'transactions' array, multiple transactions will be created.
|
24
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
23
|
+
# Creates a single transaction or multiple transactions. If you provide a body containing a 'transaction' object, a single transaction will be created and if you provide a body containing a 'transactions' array, multiple transactions will be created. Scheduled transactions cannot be created on this endpoint.
|
24
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
25
25
|
# @param data The transaction or transactions to create. To create a single transaction you can specify a value for the 'transaction' object and to create multiple transactions you can specify an array of 'transactions'. It is expected that you will only provide a value for one of these objects.
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [SaveTransactionsResponse]
|
@@ -31,8 +31,8 @@ module YNAB
|
|
31
31
|
end
|
32
32
|
|
33
33
|
# Create a single transaction or multiple transactions
|
34
|
-
# Creates a single transaction or multiple transactions. If you provide a body containing a 'transaction' object, a single transaction will be created and if you provide a body containing a 'transactions' array, multiple transactions will be created.
|
35
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
34
|
+
# Creates a single transaction or multiple transactions. If you provide a body containing a 'transaction' object, a single transaction will be created and if you provide a body containing a 'transactions' array, multiple transactions will be created. Scheduled transactions cannot be created on this endpoint.
|
35
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
36
36
|
# @param data The transaction or transactions to create. To create a single transaction you can specify a value for the 'transaction' object and to create multiple transactions you can specify an array of 'transactions'. It is expected that you will only provide a value for one of these objects.
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @return [Array<(SaveTransactionsResponse, Fixnum, Hash)>] SaveTransactionsResponse data, response status code and response headers
|
@@ -79,7 +79,7 @@ module YNAB
|
|
79
79
|
end
|
80
80
|
# Single transaction
|
81
81
|
# Returns a single transaction
|
82
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
82
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
83
83
|
# @param transaction_id The id of the transaction
|
84
84
|
# @param [Hash] opts the optional parameters
|
85
85
|
# @return [TransactionResponse]
|
@@ -90,7 +90,7 @@ module YNAB
|
|
90
90
|
|
91
91
|
# Single transaction
|
92
92
|
# Returns a single transaction
|
93
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
93
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
94
94
|
# @param transaction_id The id of the transaction
|
95
95
|
# @param [Hash] opts the optional parameters
|
96
96
|
# @return [Array<(TransactionResponse, Fixnum, Hash)>] TransactionResponse data, response status code and response headers
|
@@ -137,7 +137,7 @@ module YNAB
|
|
137
137
|
end
|
138
138
|
# List transactions
|
139
139
|
# Returns budget transactions
|
140
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
140
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
141
141
|
# @param [Hash] opts the optional parameters
|
142
142
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
143
143
|
# @option opts [String] :type If specified, only transactions of the specified type will be included. 'uncategorized' and 'unapproved' are currently supported.
|
@@ -150,7 +150,7 @@ module YNAB
|
|
150
150
|
|
151
151
|
# List transactions
|
152
152
|
# Returns budget transactions
|
153
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
153
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
154
154
|
# @param [Hash] opts the optional parameters
|
155
155
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
156
156
|
# @option opts [String] :type If specified, only transactions of the specified type will be included. 'uncategorized' and 'unapproved' are currently supported.
|
@@ -201,7 +201,7 @@ module YNAB
|
|
201
201
|
end
|
202
202
|
# List account transactions
|
203
203
|
# Returns all transactions for a specified account
|
204
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
204
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
205
205
|
# @param account_id The id of the account
|
206
206
|
# @param [Hash] opts the optional parameters
|
207
207
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
@@ -215,7 +215,7 @@ module YNAB
|
|
215
215
|
|
216
216
|
# List account transactions
|
217
217
|
# Returns all transactions for a specified account
|
218
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
218
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
219
219
|
# @param account_id The id of the account
|
220
220
|
# @param [Hash] opts the optional parameters
|
221
221
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
@@ -271,7 +271,7 @@ module YNAB
|
|
271
271
|
end
|
272
272
|
# List category transactions
|
273
273
|
# Returns all transactions for a specified category
|
274
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
274
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
275
275
|
# @param category_id The id of the category
|
276
276
|
# @param [Hash] opts the optional parameters
|
277
277
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
@@ -285,7 +285,7 @@ module YNAB
|
|
285
285
|
|
286
286
|
# List category transactions
|
287
287
|
# Returns all transactions for a specified category
|
288
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
288
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
289
289
|
# @param category_id The id of the category
|
290
290
|
# @param [Hash] opts the optional parameters
|
291
291
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
@@ -341,7 +341,7 @@ module YNAB
|
|
341
341
|
end
|
342
342
|
# List payee transactions
|
343
343
|
# Returns all transactions for a specified payee
|
344
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
344
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
345
345
|
# @param payee_id The id of the payee
|
346
346
|
# @param [Hash] opts the optional parameters
|
347
347
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
@@ -355,7 +355,7 @@ module YNAB
|
|
355
355
|
|
356
356
|
# List payee transactions
|
357
357
|
# Returns all transactions for a specified payee
|
358
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
358
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
359
359
|
# @param payee_id The id of the payee
|
360
360
|
# @param [Hash] opts the optional parameters
|
361
361
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
@@ -411,7 +411,7 @@ module YNAB
|
|
411
411
|
end
|
412
412
|
# Updates an existing transaction
|
413
413
|
# Updates a transaction
|
414
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
414
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
415
415
|
# @param transaction_id The id of the transaction
|
416
416
|
# @param data The transaction to update
|
417
417
|
# @param [Hash] opts the optional parameters
|
@@ -423,7 +423,7 @@ module YNAB
|
|
423
423
|
|
424
424
|
# Updates an existing transaction
|
425
425
|
# Updates a transaction
|
426
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
426
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
427
427
|
# @param transaction_id The id of the transaction
|
428
428
|
# @param data The transaction to update
|
429
429
|
# @param [Hash] opts the optional parameters
|
@@ -475,7 +475,7 @@ module YNAB
|
|
475
475
|
end
|
476
476
|
# Update multiple transactions
|
477
477
|
# Updates multiple transactions, by 'id' or 'import_id'.
|
478
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
478
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
479
479
|
# @param data The transactions to update. Optionally, transaction 'id' value(s) can be specified as null and an 'import_id' value can be provided which will allow transaction(s) to updated by their import_id.
|
480
480
|
# @param [Hash] opts the optional parameters
|
481
481
|
# @return [SaveTransactionsResponse]
|
@@ -486,7 +486,7 @@ module YNAB
|
|
486
486
|
|
487
487
|
# Update multiple transactions
|
488
488
|
# Updates multiple transactions, by 'id' or 'import_id'.
|
489
|
-
# @param budget_id The id of the budget (\"last-used\" can
|
489
|
+
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
490
490
|
# @param data The transactions to update. Optionally, transaction 'id' value(s) can be specified as null and an 'import_id' value can be provided which will allow transaction(s) to updated by their import_id.
|
491
491
|
# @param [Hash] opts the optional parameters
|
492
492
|
# @return [Array<(SaveTransactionsResponse, Fixnum, Hash)>] SaveTransactionsResponse data, response status code and response headers
|
@@ -18,9 +18,15 @@ module YNAB
|
|
18
18
|
|
19
19
|
attr_accessor :name
|
20
20
|
|
21
|
-
# The last time any changes were made to the budget from either a web or mobile client
|
21
|
+
# The last time any changes were made to the budget from either a web or mobile client
|
22
22
|
attr_accessor :last_modified_on
|
23
23
|
|
24
|
+
# The earliest budget month
|
25
|
+
attr_accessor :first_month
|
26
|
+
|
27
|
+
# The latest budget month
|
28
|
+
attr_accessor :last_month
|
29
|
+
|
24
30
|
attr_accessor :date_format
|
25
31
|
|
26
32
|
attr_accessor :currency_format
|
@@ -51,6 +57,8 @@ module YNAB
|
|
51
57
|
:'id' => :'id',
|
52
58
|
:'name' => :'name',
|
53
59
|
:'last_modified_on' => :'last_modified_on',
|
60
|
+
:'first_month' => :'first_month',
|
61
|
+
:'last_month' => :'last_month',
|
54
62
|
:'date_format' => :'date_format',
|
55
63
|
:'currency_format' => :'currency_format',
|
56
64
|
:'accounts' => :'accounts',
|
@@ -72,6 +80,8 @@ module YNAB
|
|
72
80
|
:'id' => :'String',
|
73
81
|
:'name' => :'String',
|
74
82
|
:'last_modified_on' => :'DateTime',
|
83
|
+
:'first_month' => :'Date',
|
84
|
+
:'last_month' => :'Date',
|
75
85
|
:'date_format' => :'DateFormat',
|
76
86
|
:'currency_format' => :'CurrencyFormat',
|
77
87
|
:'accounts' => :'Array<Account>',
|
@@ -107,6 +117,14 @@ module YNAB
|
|
107
117
|
self.last_modified_on = attributes[:'last_modified_on']
|
108
118
|
end
|
109
119
|
|
120
|
+
if attributes.has_key?(:'first_month')
|
121
|
+
self.first_month = attributes[:'first_month']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.has_key?(:'last_month')
|
125
|
+
self.last_month = attributes[:'last_month']
|
126
|
+
end
|
127
|
+
|
110
128
|
if attributes.has_key?(:'date_format')
|
111
129
|
self.date_format = attributes[:'date_format']
|
112
130
|
end
|
@@ -207,6 +225,8 @@ module YNAB
|
|
207
225
|
id == o.id &&
|
208
226
|
name == o.name &&
|
209
227
|
last_modified_on == o.last_modified_on &&
|
228
|
+
first_month == o.first_month &&
|
229
|
+
last_month == o.last_month &&
|
210
230
|
date_format == o.date_format &&
|
211
231
|
currency_format == o.currency_format &&
|
212
232
|
accounts == o.accounts &&
|
@@ -230,7 +250,7 @@ module YNAB
|
|
230
250
|
# Calculates hash code according to all attributes.
|
231
251
|
# @return [Fixnum] Hash code
|
232
252
|
def hash
|
233
|
-
[id, name, last_modified_on, date_format, currency_format, accounts, payees, payee_locations, category_groups, categories, months, transactions, subtransactions, scheduled_transactions, scheduled_subtransactions].hash
|
253
|
+
[id, name, last_modified_on, first_month, last_month, date_format, currency_format, accounts, payees, payee_locations, category_groups, categories, months, transactions, subtransactions, scheduled_transactions, scheduled_subtransactions].hash
|
234
254
|
end
|
235
255
|
|
236
256
|
# Builds the object from hash
|
@@ -18,9 +18,15 @@ module YNAB
|
|
18
18
|
|
19
19
|
attr_accessor :name
|
20
20
|
|
21
|
-
# The last time any changes were made to the budget from either a web or mobile client
|
21
|
+
# The last time any changes were made to the budget from either a web or mobile client
|
22
22
|
attr_accessor :last_modified_on
|
23
23
|
|
24
|
+
# The earliest budget month
|
25
|
+
attr_accessor :first_month
|
26
|
+
|
27
|
+
# The latest budget month
|
28
|
+
attr_accessor :last_month
|
29
|
+
|
24
30
|
attr_accessor :date_format
|
25
31
|
|
26
32
|
attr_accessor :currency_format
|
@@ -31,6 +37,8 @@ module YNAB
|
|
31
37
|
:'id' => :'id',
|
32
38
|
:'name' => :'name',
|
33
39
|
:'last_modified_on' => :'last_modified_on',
|
40
|
+
:'first_month' => :'first_month',
|
41
|
+
:'last_month' => :'last_month',
|
34
42
|
:'date_format' => :'date_format',
|
35
43
|
:'currency_format' => :'currency_format'
|
36
44
|
}
|
@@ -42,6 +50,8 @@ module YNAB
|
|
42
50
|
:'id' => :'String',
|
43
51
|
:'name' => :'String',
|
44
52
|
:'last_modified_on' => :'DateTime',
|
53
|
+
:'first_month' => :'Date',
|
54
|
+
:'last_month' => :'Date',
|
45
55
|
:'date_format' => :'DateFormat',
|
46
56
|
:'currency_format' => :'CurrencyFormat'
|
47
57
|
}
|
@@ -67,6 +77,14 @@ module YNAB
|
|
67
77
|
self.last_modified_on = attributes[:'last_modified_on']
|
68
78
|
end
|
69
79
|
|
80
|
+
if attributes.has_key?(:'first_month')
|
81
|
+
self.first_month = attributes[:'first_month']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'last_month')
|
85
|
+
self.last_month = attributes[:'last_month']
|
86
|
+
end
|
87
|
+
|
70
88
|
if attributes.has_key?(:'date_format')
|
71
89
|
self.date_format = attributes[:'date_format']
|
72
90
|
end
|
@@ -107,6 +125,8 @@ module YNAB
|
|
107
125
|
id == o.id &&
|
108
126
|
name == o.name &&
|
109
127
|
last_modified_on == o.last_modified_on &&
|
128
|
+
first_month == o.first_month &&
|
129
|
+
last_month == o.last_month &&
|
110
130
|
date_format == o.date_format &&
|
111
131
|
currency_format == o.currency_format
|
112
132
|
end
|
@@ -120,7 +140,7 @@ module YNAB
|
|
120
140
|
# Calculates hash code according to all attributes.
|
121
141
|
# @return [Fixnum] Hash code
|
122
142
|
def hash
|
123
|
-
[id, name, last_modified_on, date_format, currency_format].hash
|
143
|
+
[id, name, last_modified_on, first_month, last_month, date_format, currency_format].hash
|
124
144
|
end
|
125
145
|
|
126
146
|
# Builds the object from hash
|
@@ -16,17 +16,22 @@ module YNAB
|
|
16
16
|
class BudgetSummaryWrapper
|
17
17
|
attr_accessor :budgets
|
18
18
|
|
19
|
+
# The default budget, if the associated application is configured to support specifying it
|
20
|
+
attr_accessor :default_budget
|
21
|
+
|
19
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
23
|
def self.attribute_map
|
21
24
|
{
|
22
|
-
:'budgets' => :'budgets'
|
25
|
+
:'budgets' => :'budgets',
|
26
|
+
:'default_budget' => :'default_budget'
|
23
27
|
}
|
24
28
|
end
|
25
29
|
|
26
30
|
# Attribute type mapping.
|
27
31
|
def self.swagger_types
|
28
32
|
{
|
29
|
-
:'budgets' => :'Array<BudgetSummary>'
|
33
|
+
:'budgets' => :'Array<BudgetSummary>',
|
34
|
+
:'default_budget' => :'BudgetSummary'
|
30
35
|
}
|
31
36
|
end
|
32
37
|
|
@@ -43,6 +48,10 @@ module YNAB
|
|
43
48
|
self.budgets = value
|
44
49
|
end
|
45
50
|
end
|
51
|
+
|
52
|
+
if attributes.has_key?(:'default_budget')
|
53
|
+
self.default_budget = attributes[:'default_budget']
|
54
|
+
end
|
46
55
|
end
|
47
56
|
|
48
57
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -53,6 +62,10 @@ module YNAB
|
|
53
62
|
invalid_properties.push('invalid value for "budgets", budgets cannot be nil.')
|
54
63
|
end
|
55
64
|
|
65
|
+
if @default_budget.nil?
|
66
|
+
invalid_properties.push('invalid value for "default_budget", default_budget cannot be nil.')
|
67
|
+
end
|
68
|
+
|
56
69
|
invalid_properties
|
57
70
|
end
|
58
71
|
|
@@ -60,6 +73,7 @@ module YNAB
|
|
60
73
|
# @return true if the model is valid
|
61
74
|
def valid?
|
62
75
|
return false if @budgets.nil?
|
76
|
+
return false if @default_budget.nil?
|
63
77
|
true
|
64
78
|
end
|
65
79
|
|
@@ -68,7 +82,8 @@ module YNAB
|
|
68
82
|
def ==(o)
|
69
83
|
return true if self.equal?(o)
|
70
84
|
self.class == o.class &&
|
71
|
-
budgets == o.budgets
|
85
|
+
budgets == o.budgets &&
|
86
|
+
default_budget == o.default_budget
|
72
87
|
end
|
73
88
|
|
74
89
|
# @see the `==` method
|
@@ -80,7 +95,7 @@ module YNAB
|
|
80
95
|
# Calculates hash code according to all attributes.
|
81
96
|
# @return [Fixnum] Hash code
|
82
97
|
def hash
|
83
|
-
[budgets].hash
|
98
|
+
[budgets, default_budget].hash
|
84
99
|
end
|
85
100
|
|
86
101
|
# Builds the object from hash
|
@@ -16,17 +16,22 @@ module YNAB
|
|
16
16
|
class CategoryWrapper
|
17
17
|
attr_accessor :category
|
18
18
|
|
19
|
+
# The knowledge of the server
|
20
|
+
attr_accessor :server_knowledge
|
21
|
+
|
19
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
23
|
def self.attribute_map
|
21
24
|
{
|
22
|
-
:'category' => :'category'
|
25
|
+
:'category' => :'category',
|
26
|
+
:'server_knowledge' => :'server_knowledge'
|
23
27
|
}
|
24
28
|
end
|
25
29
|
|
26
30
|
# Attribute type mapping.
|
27
31
|
def self.swagger_types
|
28
32
|
{
|
29
|
-
:'category' => :'Category'
|
33
|
+
:'category' => :'Category',
|
34
|
+
:'server_knowledge' => :'Integer'
|
30
35
|
}
|
31
36
|
end
|
32
37
|
|
@@ -41,6 +46,10 @@ module YNAB
|
|
41
46
|
if attributes.has_key?(:'category')
|
42
47
|
self.category = attributes[:'category']
|
43
48
|
end
|
49
|
+
|
50
|
+
if attributes.has_key?(:'server_knowledge')
|
51
|
+
self.server_knowledge = attributes[:'server_knowledge']
|
52
|
+
end
|
44
53
|
end
|
45
54
|
|
46
55
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -51,6 +60,10 @@ module YNAB
|
|
51
60
|
invalid_properties.push('invalid value for "category", category cannot be nil.')
|
52
61
|
end
|
53
62
|
|
63
|
+
if @server_knowledge.nil?
|
64
|
+
invalid_properties.push('invalid value for "server_knowledge", server_knowledge cannot be nil.')
|
65
|
+
end
|
66
|
+
|
54
67
|
invalid_properties
|
55
68
|
end
|
56
69
|
|
@@ -58,6 +71,7 @@ module YNAB
|
|
58
71
|
# @return true if the model is valid
|
59
72
|
def valid?
|
60
73
|
return false if @category.nil?
|
74
|
+
return false if @server_knowledge.nil?
|
61
75
|
true
|
62
76
|
end
|
63
77
|
|
@@ -66,7 +80,8 @@ module YNAB
|
|
66
80
|
def ==(o)
|
67
81
|
return true if self.equal?(o)
|
68
82
|
self.class == o.class &&
|
69
|
-
category == o.category
|
83
|
+
category == o.category &&
|
84
|
+
server_knowledge == o.server_knowledge
|
70
85
|
end
|
71
86
|
|
72
87
|
# @see the `==` method
|
@@ -78,7 +93,7 @@ module YNAB
|
|
78
93
|
# Calculates hash code according to all attributes.
|
79
94
|
# @return [Fixnum] Hash code
|
80
95
|
def hash
|
81
|
-
[category].hash
|
96
|
+
[category, server_knowledge].hash
|
82
97
|
end
|
83
98
|
|
84
99
|
# Builds the object from hash
|
@@ -16,9 +16,10 @@ module YNAB
|
|
16
16
|
class SaveTransaction
|
17
17
|
attr_accessor :account_id
|
18
18
|
|
19
|
+
# The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored.
|
19
20
|
attr_accessor :date
|
20
21
|
|
21
|
-
# The transaction amount in milliunits format
|
22
|
+
# The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored.
|
22
23
|
attr_accessor :amount
|
23
24
|
|
24
25
|
# The payee for the transaction
|
@@ -41,7 +42,7 @@ module YNAB
|
|
41
42
|
# The transaction flag
|
42
43
|
attr_accessor :flag_color
|
43
44
|
|
44
|
-
# If specified
|
45
|
+
# If specified, the new transaction will be assigned this import_id and considered \"imported\". *At the time of import* we will attempt to match \"imported\" transactions with non-imported (i.e. \"user-entered\") transactions.<br><br>Transactions imported through File Based Import or Direct Import (not through the API) are assigned an import_id in the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. Using a consistent format will prevent duplicates through Direct Import and File Based Import.<br><br>If import_id is omitted or specified as null, the transaction will be treated as a \"user-entered\" transaction. As such, it will be eligible to be matched against transactions later being imported (via DI, FBI, or API).
|
45
46
|
attr_accessor :import_id
|
46
47
|
|
47
48
|
class EnumAttributeValidator
|
@@ -169,6 +170,18 @@ module YNAB
|
|
169
170
|
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
170
171
|
end
|
171
172
|
|
173
|
+
if !@payee_name.nil? && @payee_name.to_s.length > 50
|
174
|
+
invalid_properties.push('invalid value for "payee_name", the character length must be smaller than or equal to 50.')
|
175
|
+
end
|
176
|
+
|
177
|
+
if !@memo.nil? && @memo.to_s.length > 200
|
178
|
+
invalid_properties.push('invalid value for "memo", the character length must be smaller than or equal to 200.')
|
179
|
+
end
|
180
|
+
|
181
|
+
if !@import_id.nil? && @import_id.to_s.length > 36
|
182
|
+
invalid_properties.push('invalid value for "import_id", the character length must be smaller than or equal to 36.')
|
183
|
+
end
|
184
|
+
|
172
185
|
invalid_properties
|
173
186
|
end
|
174
187
|
|
@@ -178,13 +191,36 @@ module YNAB
|
|
178
191
|
return false if @account_id.nil?
|
179
192
|
return false if @date.nil?
|
180
193
|
return false if @amount.nil?
|
194
|
+
return false if !@payee_name.nil? && @payee_name.to_s.length > 50
|
195
|
+
return false if !@memo.nil? && @memo.to_s.length > 200
|
181
196
|
cleared_validator = EnumAttributeValidator.new('String', ['cleared', 'uncleared', 'reconciled'])
|
182
197
|
return false unless cleared_validator.valid?(@cleared)
|
183
198
|
flag_color_validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
|
184
199
|
return false unless flag_color_validator.valid?(@flag_color)
|
200
|
+
return false if !@import_id.nil? && @import_id.to_s.length > 36
|
185
201
|
true
|
186
202
|
end
|
187
203
|
|
204
|
+
# Custom attribute writer method with validation
|
205
|
+
# @param [Object] payee_name Value to be assigned
|
206
|
+
def payee_name=(payee_name)
|
207
|
+
if !payee_name.nil? && payee_name.to_s.length > 50
|
208
|
+
fail ArgumentError, 'invalid value for "payee_name", the character length must be smaller than or equal to 50.'
|
209
|
+
end
|
210
|
+
|
211
|
+
@payee_name = payee_name
|
212
|
+
end
|
213
|
+
|
214
|
+
# Custom attribute writer method with validation
|
215
|
+
# @param [Object] memo Value to be assigned
|
216
|
+
def memo=(memo)
|
217
|
+
if !memo.nil? && memo.to_s.length > 200
|
218
|
+
fail ArgumentError, 'invalid value for "memo", the character length must be smaller than or equal to 200.'
|
219
|
+
end
|
220
|
+
|
221
|
+
@memo = memo
|
222
|
+
end
|
223
|
+
|
188
224
|
# Custom attribute writer method checking allowed values (enum).
|
189
225
|
# @param [Object] cleared Object to be assigned
|
190
226
|
def cleared=(cleared)
|
@@ -205,6 +241,16 @@ module YNAB
|
|
205
241
|
@flag_color = flag_color
|
206
242
|
end
|
207
243
|
|
244
|
+
# Custom attribute writer method with validation
|
245
|
+
# @param [Object] import_id Value to be assigned
|
246
|
+
def import_id=(import_id)
|
247
|
+
if !import_id.nil? && import_id.to_s.length > 36
|
248
|
+
fail ArgumentError, 'invalid value for "import_id", the character length must be smaller than or equal to 36.'
|
249
|
+
end
|
250
|
+
|
251
|
+
@import_id = import_id
|
252
|
+
end
|
253
|
+
|
208
254
|
# Checks equality by comparing each attribute.
|
209
255
|
# @param [Object] Object to be compared
|
210
256
|
def ==(o)
|
@@ -23,16 +23,20 @@ module YNAB
|
|
23
23
|
# If multiple transactions were specified, the transactions that were saved
|
24
24
|
attr_accessor :transactions
|
25
25
|
|
26
|
-
# If multiple transactions were specified, a list of import_ids that were not
|
26
|
+
# If multiple transactions were specified, a list of import_ids that were not created because of an existing import_id found on the same account
|
27
27
|
attr_accessor :duplicate_import_ids
|
28
28
|
|
29
|
+
# The knowledge of the server
|
30
|
+
attr_accessor :server_knowledge
|
31
|
+
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
33
|
def self.attribute_map
|
31
34
|
{
|
32
35
|
:'transaction_ids' => :'transaction_ids',
|
33
36
|
:'transaction' => :'transaction',
|
34
37
|
:'transactions' => :'transactions',
|
35
|
-
:'duplicate_import_ids' => :'duplicate_import_ids'
|
38
|
+
:'duplicate_import_ids' => :'duplicate_import_ids',
|
39
|
+
:'server_knowledge' => :'server_knowledge'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -42,7 +46,8 @@ module YNAB
|
|
42
46
|
:'transaction_ids' => :'Array<String>',
|
43
47
|
:'transaction' => :'TransactionDetail',
|
44
48
|
:'transactions' => :'Array<TransactionDetail>',
|
45
|
-
:'duplicate_import_ids' => :'Array<String>'
|
49
|
+
:'duplicate_import_ids' => :'Array<String>',
|
50
|
+
:'server_knowledge' => :'Integer'
|
46
51
|
}
|
47
52
|
end
|
48
53
|
|
@@ -75,6 +80,10 @@ module YNAB
|
|
75
80
|
self.duplicate_import_ids = value
|
76
81
|
end
|
77
82
|
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'server_knowledge')
|
85
|
+
self.server_knowledge = attributes[:'server_knowledge']
|
86
|
+
end
|
78
87
|
end
|
79
88
|
|
80
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -85,6 +94,10 @@ module YNAB
|
|
85
94
|
invalid_properties.push('invalid value for "transaction_ids", transaction_ids cannot be nil.')
|
86
95
|
end
|
87
96
|
|
97
|
+
if @server_knowledge.nil?
|
98
|
+
invalid_properties.push('invalid value for "server_knowledge", server_knowledge cannot be nil.')
|
99
|
+
end
|
100
|
+
|
88
101
|
invalid_properties
|
89
102
|
end
|
90
103
|
|
@@ -92,6 +105,7 @@ module YNAB
|
|
92
105
|
# @return true if the model is valid
|
93
106
|
def valid?
|
94
107
|
return false if @transaction_ids.nil?
|
108
|
+
return false if @server_knowledge.nil?
|
95
109
|
true
|
96
110
|
end
|
97
111
|
|
@@ -103,7 +117,8 @@ module YNAB
|
|
103
117
|
transaction_ids == o.transaction_ids &&
|
104
118
|
transaction == o.transaction &&
|
105
119
|
transactions == o.transactions &&
|
106
|
-
duplicate_import_ids == o.duplicate_import_ids
|
120
|
+
duplicate_import_ids == o.duplicate_import_ids &&
|
121
|
+
server_knowledge == o.server_knowledge
|
107
122
|
end
|
108
123
|
|
109
124
|
# @see the `==` method
|
@@ -115,7 +130,7 @@ module YNAB
|
|
115
130
|
# Calculates hash code according to all attributes.
|
116
131
|
# @return [Fixnum] Hash code
|
117
132
|
def hash
|
118
|
-
[transaction_ids, transaction, transactions, duplicate_import_ids].hash
|
133
|
+
[transaction_ids, transaction, transactions, duplicate_import_ids, server_knowledge].hash
|
119
134
|
end
|
120
135
|
|
121
136
|
# Builds the object from hash
|
data/lib/ynab/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ynab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- You Need A Budget, LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
252
252
|
version: '0'
|
253
253
|
requirements: []
|
254
254
|
rubyforge_project:
|
255
|
-
rubygems_version: 2.7.
|
255
|
+
rubygems_version: 2.7.9
|
256
256
|
signing_key:
|
257
257
|
specification_version: 4
|
258
258
|
summary: YNAB API Endpoints Ruby Gem
|