ynab 1.20.0 → 1.21.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 +1 -1
- data/lib/ynab.rb +1 -1
- data/lib/ynab/api/accounts_api.rb +3 -3
- data/lib/ynab/api/budgets_api.rb +1 -1
- data/lib/ynab/api/categories_api.rb +1 -1
- data/lib/ynab/api/deprecated_api.rb +1 -1
- data/lib/ynab/api/months_api.rb +1 -1
- data/lib/ynab/api/payee_locations_api.rb +3 -3
- data/lib/ynab/api/payees_api.rb +3 -3
- data/lib/ynab/api/scheduled_transactions_api.rb +1 -1
- data/lib/ynab/api/transactions_api.rb +5 -5
- data/lib/ynab/api/user_api.rb +1 -1
- data/lib/ynab/api_client.rb +1 -1
- data/lib/ynab/configuration.rb +1 -1
- data/lib/ynab/models/account.rb +22 -2
- data/lib/ynab/models/account_response.rb +1 -1
- data/lib/ynab/models/account_response_data.rb +1 -1
- data/lib/ynab/models/accounts_response.rb +1 -1
- data/lib/ynab/models/accounts_response_data.rb +1 -1
- data/lib/ynab/models/budget_detail.rb +1 -1
- data/lib/ynab/models/budget_detail_response.rb +1 -1
- data/lib/ynab/models/budget_detail_response_data.rb +1 -1
- data/lib/ynab/models/budget_settings.rb +1 -1
- data/lib/ynab/models/budget_settings_response.rb +1 -1
- data/lib/ynab/models/budget_settings_response_data.rb +1 -1
- data/lib/ynab/models/budget_summary.rb +1 -1
- data/lib/ynab/models/budget_summary_response.rb +1 -1
- data/lib/ynab/models/budget_summary_response_data.rb +1 -1
- data/lib/ynab/models/bulk_response.rb +1 -1
- data/lib/ynab/models/bulk_response_data.rb +1 -1
- data/lib/ynab/models/bulk_response_data_bulk.rb +1 -1
- data/lib/ynab/models/bulk_transactions.rb +1 -1
- data/lib/ynab/models/categories_response.rb +1 -1
- data/lib/ynab/models/categories_response_data.rb +1 -1
- data/lib/ynab/models/category.rb +43 -3
- data/lib/ynab/models/category_group.rb +1 -1
- data/lib/ynab/models/category_group_with_categories.rb +1 -1
- data/lib/ynab/models/category_response.rb +1 -1
- data/lib/ynab/models/category_response_data.rb +1 -1
- data/lib/ynab/models/currency_format.rb +1 -1
- data/lib/ynab/models/date_format.rb +1 -1
- data/lib/ynab/models/error_detail.rb +1 -1
- data/lib/ynab/models/error_response.rb +1 -1
- data/lib/ynab/models/hybrid_transaction.rb +1 -1
- data/lib/ynab/models/hybrid_transactions_response.rb +1 -1
- data/lib/ynab/models/hybrid_transactions_response_data.rb +1 -1
- data/lib/ynab/models/month_detail.rb +1 -1
- data/lib/ynab/models/month_detail_response.rb +1 -1
- data/lib/ynab/models/month_detail_response_data.rb +1 -1
- data/lib/ynab/models/month_summaries_response.rb +1 -1
- data/lib/ynab/models/month_summaries_response_data.rb +1 -1
- data/lib/ynab/models/month_summary.rb +1 -1
- data/lib/ynab/models/payee.rb +1 -1
- data/lib/ynab/models/payee_location.rb +1 -1
- data/lib/ynab/models/payee_location_response.rb +1 -1
- data/lib/ynab/models/payee_location_response_data.rb +1 -1
- data/lib/ynab/models/payee_locations_response.rb +1 -1
- data/lib/ynab/models/payee_locations_response_data.rb +1 -1
- data/lib/ynab/models/payee_response.rb +1 -1
- data/lib/ynab/models/payee_response_data.rb +1 -1
- data/lib/ynab/models/payees_response.rb +1 -1
- data/lib/ynab/models/payees_response_data.rb +1 -1
- data/lib/ynab/models/save_account.rb +1 -1
- data/lib/ynab/models/save_account_wrapper.rb +1 -1
- data/lib/ynab/models/save_category_response.rb +1 -1
- data/lib/ynab/models/save_category_response_data.rb +1 -1
- data/lib/ynab/models/save_month_category.rb +1 -1
- data/lib/ynab/models/save_month_category_wrapper.rb +1 -1
- data/lib/ynab/models/save_sub_transaction.rb +1 -1
- data/lib/ynab/models/save_transaction.rb +1 -1
- data/lib/ynab/models/save_transaction_wrapper.rb +1 -1
- data/lib/ynab/models/save_transactions_response.rb +1 -1
- data/lib/ynab/models/save_transactions_response_data.rb +1 -1
- data/lib/ynab/models/save_transactions_wrapper.rb +1 -1
- data/lib/ynab/models/scheduled_sub_transaction.rb +1 -1
- data/lib/ynab/models/scheduled_transaction_detail.rb +1 -1
- data/lib/ynab/models/scheduled_transaction_response.rb +1 -1
- data/lib/ynab/models/scheduled_transaction_response_data.rb +1 -1
- data/lib/ynab/models/scheduled_transaction_summary.rb +1 -1
- data/lib/ynab/models/scheduled_transactions_response.rb +1 -1
- data/lib/ynab/models/scheduled_transactions_response_data.rb +1 -1
- data/lib/ynab/models/sub_transaction.rb +1 -1
- data/lib/ynab/models/transaction_detail.rb +1 -1
- data/lib/ynab/models/transaction_response.rb +1 -1
- data/lib/ynab/models/transaction_response_data.rb +1 -1
- data/lib/ynab/models/transaction_summary.rb +1 -1
- data/lib/ynab/models/transactions_import_response.rb +1 -1
- data/lib/ynab/models/transactions_import_response_data.rb +1 -1
- data/lib/ynab/models/transactions_response.rb +1 -1
- data/lib/ynab/models/transactions_response_data.rb +1 -1
- data/lib/ynab/models/update_transaction.rb +1 -1
- data/lib/ynab/models/update_transactions_wrapper.rb +1 -1
- data/lib/ynab/models/user.rb +1 -1
- data/lib/ynab/models/user_response.rb +1 -1
- data/lib/ynab/models/user_response_data.rb +1 -1
- data/lib/ynab/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c28bd8d2707f18314c982fcfb0f3b61ed6ee4956245c2a3056e7ce2953daf2ed
|
4
|
+
data.tar.gz: 6c4daad7d0b99f2b176efca608262a460ee77255239e90d5a175f7c7d7661682
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51e285cf2ff977891f4c5702401e8f7569f8e2370eba5115f3a861cc3519f76001d4cb8944669a7149e344cfd271b7697654d1486304a94aa09b485d319236d0
|
7
|
+
data.tar.gz: 646ddafbdbb06e1cdb4b583d7ebbfb57ee4d62b9e4fc59ecdbf17cd582448751cc0626aad3bc45a19bef83ef274dcd7b2bf4e780741173c3ea7948623d2e6ebb
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ gem install ynab
|
|
19
19
|
## Usage
|
20
20
|
To use this client you must
|
21
21
|
[obtain an access token](https://api.youneedabudget.com/#authentication-overview) from
|
22
|
-
your [
|
22
|
+
your [Account Settings](https://app.youneedabudget.com/settings) page of the YNAB web
|
23
23
|
app.
|
24
24
|
|
25
25
|
```ruby
|
data/lib/ynab.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,7 +20,7 @@ module YNAB
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Create a new account
|
23
|
-
# Creates a new account
|
23
|
+
# Creates a new account
|
24
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 account to create.
|
26
26
|
# @param [Hash] opts the optional parameters
|
@@ -31,7 +31,7 @@ module YNAB
|
|
31
31
|
end
|
32
32
|
|
33
33
|
# Create a new account
|
34
|
-
# Creates a new account
|
34
|
+
# Creates a new account
|
35
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 account to create.
|
37
37
|
# @param [Hash] opts the optional parameters
|
data/lib/ynab/api/budgets_api.rb
CHANGED
data/lib/ynab/api/months_api.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -130,7 +130,7 @@ module YNAB
|
|
130
130
|
return data, status_code, headers
|
131
131
|
end
|
132
132
|
# List locations for a payee
|
133
|
-
# Returns all payee locations for
|
133
|
+
# Returns all payee locations for a specified payee
|
134
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
|
@@ -141,7 +141,7 @@ module YNAB
|
|
141
141
|
end
|
142
142
|
|
143
143
|
# List locations for a payee
|
144
|
-
# Returns all payee locations for
|
144
|
+
# Returns all payee locations for a specified payee
|
145
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
|
data/lib/ynab/api/payees_api.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,7 +20,7 @@ module YNAB
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Single payee
|
23
|
-
# Returns single payee
|
23
|
+
# Returns a single payee
|
24
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
|
@@ -31,7 +31,7 @@ module YNAB
|
|
31
31
|
end
|
32
32
|
|
33
33
|
# Single payee
|
34
|
-
# Returns single payee
|
34
|
+
# Returns a single payee
|
35
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
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -410,7 +410,7 @@ module YNAB
|
|
410
410
|
return data, status_code, headers
|
411
411
|
end
|
412
412
|
# Import transactions
|
413
|
-
# Imports transactions.
|
413
|
+
# Imports available transactions on all linked accounts for the given budget. Linked accounts allow transactions to be imported directly from a specified financial institution and this endpoint initiates that import. Sending a request to this endpoint is the equivalent of clicking \"Import\" on each account in the web application or tapping the \"New Transactions\" banner in the mobile applications. The response for this endpoint contains the transaction ids that have been imported.
|
414
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 [Hash] opts the optional parameters
|
416
416
|
# @return [TransactionsImportResponse]
|
@@ -420,7 +420,7 @@ module YNAB
|
|
420
420
|
end
|
421
421
|
|
422
422
|
# Import transactions
|
423
|
-
# Imports transactions.
|
423
|
+
# Imports available transactions on all linked accounts for the given budget. Linked accounts allow transactions to be imported directly from a specified financial institution and this endpoint initiates that import. Sending a request to this endpoint is the equivalent of clicking \"Import\" on each account in the web application or tapping the \"New Transactions\" banner in the mobile applications. The response for this endpoint contains the transaction ids that have been imported.
|
424
424
|
# @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).
|
425
425
|
# @param [Hash] opts the optional parameters
|
426
426
|
# @return [Array<(TransactionsImportResponse, Fixnum, Hash)>] TransactionsImportResponse data, response status code and response headers
|
@@ -462,7 +462,7 @@ module YNAB
|
|
462
462
|
return data, status_code, headers
|
463
463
|
end
|
464
464
|
# Updates an existing transaction
|
465
|
-
# Updates a transaction
|
465
|
+
# Updates a single transaction
|
466
466
|
# @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).
|
467
467
|
# @param transaction_id The id of the transaction
|
468
468
|
# @param data The transaction to update
|
@@ -474,7 +474,7 @@ module YNAB
|
|
474
474
|
end
|
475
475
|
|
476
476
|
# Updates an existing transaction
|
477
|
-
# Updates a transaction
|
477
|
+
# Updates a single transaction
|
478
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 transaction_id The id of the transaction
|
480
480
|
# @param data The transaction to update
|
data/lib/ynab/api/user_api.rb
CHANGED
data/lib/ynab/api_client.rb
CHANGED
data/lib/ynab/configuration.rb
CHANGED
data/lib/ynab/models/account.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -41,6 +41,12 @@ module YNAB
|
|
41
41
|
# The payee id which should be used when transferring to this account
|
42
42
|
attr_accessor :transfer_payee_id
|
43
43
|
|
44
|
+
# Whether or not the account is linked to a financial institution for automatic transaction import.
|
45
|
+
attr_accessor :direct_import_linked
|
46
|
+
|
47
|
+
# If an account linked to a financial institution (direct_import_linked=true) and the linked connection is not in a healthy state, this will be true.
|
48
|
+
attr_accessor :direct_import_in_error
|
49
|
+
|
44
50
|
# Whether or not the account has been deleted. Deleted accounts will only be included in delta requests.
|
45
51
|
attr_accessor :deleted
|
46
52
|
|
@@ -79,6 +85,8 @@ module YNAB
|
|
79
85
|
:'cleared_balance' => :'cleared_balance',
|
80
86
|
:'uncleared_balance' => :'uncleared_balance',
|
81
87
|
:'transfer_payee_id' => :'transfer_payee_id',
|
88
|
+
:'direct_import_linked' => :'direct_import_linked',
|
89
|
+
:'direct_import_in_error' => :'direct_import_in_error',
|
82
90
|
:'deleted' => :'deleted'
|
83
91
|
}
|
84
92
|
end
|
@@ -96,6 +104,8 @@ module YNAB
|
|
96
104
|
:'cleared_balance' => :'Integer',
|
97
105
|
:'uncleared_balance' => :'Integer',
|
98
106
|
:'transfer_payee_id' => :'String',
|
107
|
+
:'direct_import_linked' => :'BOOLEAN',
|
108
|
+
:'direct_import_in_error' => :'BOOLEAN',
|
99
109
|
:'deleted' => :'BOOLEAN'
|
100
110
|
}
|
101
111
|
end
|
@@ -148,6 +158,14 @@ module YNAB
|
|
148
158
|
self.transfer_payee_id = attributes[:'transfer_payee_id']
|
149
159
|
end
|
150
160
|
|
161
|
+
if attributes.has_key?(:'direct_import_linked')
|
162
|
+
self.direct_import_linked = attributes[:'direct_import_linked']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.has_key?(:'direct_import_in_error')
|
166
|
+
self.direct_import_in_error = attributes[:'direct_import_in_error']
|
167
|
+
end
|
168
|
+
|
151
169
|
if attributes.has_key?(:'deleted')
|
152
170
|
self.deleted = attributes[:'deleted']
|
153
171
|
end
|
@@ -239,6 +257,8 @@ module YNAB
|
|
239
257
|
cleared_balance == o.cleared_balance &&
|
240
258
|
uncleared_balance == o.uncleared_balance &&
|
241
259
|
transfer_payee_id == o.transfer_payee_id &&
|
260
|
+
direct_import_linked == o.direct_import_linked &&
|
261
|
+
direct_import_in_error == o.direct_import_in_error &&
|
242
262
|
deleted == o.deleted
|
243
263
|
end
|
244
264
|
|
@@ -251,7 +271,7 @@ module YNAB
|
|
251
271
|
# Calculates hash code according to all attributes.
|
252
272
|
# @return [Fixnum] Hash code
|
253
273
|
def hash
|
254
|
-
[id, name, type, on_budget, closed, note, balance, cleared_balance, uncleared_balance, transfer_payee_id, deleted].hash
|
274
|
+
[id, name, type, on_budget, closed, note, balance, cleared_balance, uncleared_balance, transfer_payee_id, direct_import_linked, direct_import_in_error, deleted].hash
|
255
275
|
end
|
256
276
|
# Builds the object from hash
|
257
277
|
# @param [Hash] attributes Model attributes in the form of hash
|