ynab 1.21.0 → 1.22.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/api/accounts_api.rb +1 -1
- 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 +1 -1
- data/lib/ynab/api/payees_api.rb +1 -1
- data/lib/ynab/api/scheduled_transactions_api.rb +1 -1
- data/lib/ynab/api/transactions_api.rb +1 -1
- 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 +2 -33
- data/lib/ynab/models/account_response.rb +1 -1
- data/lib/ynab/models/account_response_data.rb +1 -1
- data/lib/ynab/models/account_type.rb +41 -0
- 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 +2 -2
- 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 +4 -4
- 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 +4 -4
- 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 +2 -33
- 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 +19 -5
- 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
- data/lib/ynab.rb +9 -8
- metadata +16 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 585279e8e48808663d79a26e141548a96997dae0a279a7920ffae89c5897c0bb
|
4
|
+
data.tar.gz: 6b00ac6af6f6e50e61990772e01e1e59fd0216d58142f18eed3fdd2e5b57aa43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '090f48a478f00c25deb2255ce0425aa79139970ddb8742d6bfc6eea39ee00386b7f724f8e142a6db93eb94edb70378e115bf43c9939a7d743adb136e816ae7c1'
|
7
|
+
data.tar.gz: 62642efb9686af3297094407318fde6fc0daa5de20b1ca0f995fac84b245e6c444895621202a8047ad2f416abafef0829e14a0daaf80361ebd5a38f22da2a30a
|
data/README.md
CHANGED
data/lib/ynab/api/budgets_api.rb
CHANGED
data/lib/ynab/api/months_api.rb
CHANGED
data/lib/ynab/api/payees_api.rb
CHANGED
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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,7 +18,6 @@ module YNAB
|
|
18
18
|
|
19
19
|
attr_accessor :name
|
20
20
|
|
21
|
-
# The type of account. Note: payPal, merchantAccount, investmentAccount, and mortgage types have been deprecated and will be removed in the future.
|
22
21
|
attr_accessor :type
|
23
22
|
|
24
23
|
# Whether this account is on budget or not
|
@@ -50,28 +49,6 @@ module YNAB
|
|
50
49
|
# Whether or not the account has been deleted. Deleted accounts will only be included in delta requests.
|
51
50
|
attr_accessor :deleted
|
52
51
|
|
53
|
-
class EnumAttributeValidator
|
54
|
-
attr_reader :datatype
|
55
|
-
attr_reader :allowable_values
|
56
|
-
|
57
|
-
def initialize(datatype, allowable_values)
|
58
|
-
@allowable_values = allowable_values.map do |value|
|
59
|
-
case datatype.to_s
|
60
|
-
when /Integer/i
|
61
|
-
value.to_i
|
62
|
-
when /Float/i
|
63
|
-
value.to_f
|
64
|
-
else
|
65
|
-
value
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
def valid?(value)
|
71
|
-
!value || allowable_values.include?(value)
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
76
53
|
def self.attribute_map
|
77
54
|
{
|
@@ -96,7 +73,7 @@ module YNAB
|
|
96
73
|
{
|
97
74
|
:'id' => :'String',
|
98
75
|
:'name' => :'String',
|
99
|
-
:'type' => :'
|
76
|
+
:'type' => :'AccountType',
|
100
77
|
:'on_budget' => :'BOOLEAN',
|
101
78
|
:'closed' => :'BOOLEAN',
|
102
79
|
:'note' => :'String',
|
@@ -224,8 +201,6 @@ module YNAB
|
|
224
201
|
return false if @id.nil?
|
225
202
|
return false if @name.nil?
|
226
203
|
return false if @type.nil?
|
227
|
-
type_validator = EnumAttributeValidator.new('String', ['checking', 'savings', 'cash', 'creditCard', 'lineOfCredit', 'otherAsset', 'otherLiability', 'payPal', 'merchantAccount', 'investmentAccount', 'mortgage'])
|
228
|
-
return false unless type_validator.valid?(@type)
|
229
204
|
return false if @on_budget.nil?
|
230
205
|
return false if @closed.nil?
|
231
206
|
return false if @balance.nil?
|
@@ -236,12 +211,6 @@ module YNAB
|
|
236
211
|
true
|
237
212
|
end
|
238
213
|
|
239
|
-
# Custom attribute writer method checking allowed values (enum).
|
240
|
-
# @param [Object] type Object to be assigned
|
241
|
-
def type=(type)
|
242
|
-
@type = type
|
243
|
-
end
|
244
|
-
|
245
214
|
# Checks equality by comparing each attribute.
|
246
215
|
# @param [Object] Object to be compared
|
247
216
|
def ==(o)
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#YNAB API Endpoints
|
3
|
+
|
4
|
+
#Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module YNAB
|
16
|
+
class AccountType
|
17
|
+
|
18
|
+
CHECKING = 'checking'.freeze
|
19
|
+
SAVINGS = 'savings'.freeze
|
20
|
+
CASH = 'cash'.freeze
|
21
|
+
CREDIT_CARD = 'creditCard'.freeze
|
22
|
+
LINE_OF_CREDIT = 'lineOfCredit'.freeze
|
23
|
+
OTHER_ASSET = 'otherAsset'.freeze
|
24
|
+
OTHER_LIABILITY = 'otherLiability'.freeze
|
25
|
+
MORTGAGE = 'mortgage'.freeze
|
26
|
+
AUTO_LOAN = 'autoLoan'.freeze
|
27
|
+
STUDENT_LOAN = 'studentLoan'.freeze
|
28
|
+
PERSONAL_LOAN = 'personalLoan'.freeze
|
29
|
+
MEDICAL_DEBT = 'medicalDebt'.freeze
|
30
|
+
OTHER_DEBT = 'otherDebt'.freeze
|
31
|
+
|
32
|
+
# Builds the enum from string
|
33
|
+
# @param [String] The enum value in the form of the string
|
34
|
+
# @return [String] The enum value
|
35
|
+
def build_from_hash(value)
|
36
|
+
constantValues = AccountType.constants.select { |c| AccountType::const_get(c) == value }
|
37
|
+
raise "Invalid ENUM value #{value} for class #AccountType" if constantValues.empty?
|
38
|
+
value
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
data/lib/ynab/models/category.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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -273,7 +273,7 @@ module YNAB
|
|
273
273
|
return false if @budgeted.nil?
|
274
274
|
return false if @activity.nil?
|
275
275
|
return false if @balance.nil?
|
276
|
-
goal_type_validator = EnumAttributeValidator.new('String', ['TB', 'TBD', 'MF', 'NEED'])
|
276
|
+
goal_type_validator = EnumAttributeValidator.new('String', ['TB', 'TBD', 'MF', 'NEED', 'DEBT'])
|
277
277
|
return false unless goal_type_validator.valid?(@goal_type)
|
278
278
|
return false if @deleted.nil?
|
279
279
|
true
|
@@ -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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,16 +18,16 @@ module YNAB
|
|
18
18
|
|
19
19
|
attr_accessor :note
|
20
20
|
|
21
|
-
# The total amount of transactions categorized to 'Inflow:
|
21
|
+
# The total amount of transactions categorized to 'Inflow: Ready to Assign' in the month
|
22
22
|
attr_accessor :income
|
23
23
|
|
24
24
|
# The total amount budgeted in the month
|
25
25
|
attr_accessor :budgeted
|
26
26
|
|
27
|
-
# The total amount of transactions in the month, excluding those categorized to 'Inflow:
|
27
|
+
# The total amount of transactions in the month, excluding those categorized to 'Inflow: Ready to Assign'
|
28
28
|
attr_accessor :activity
|
29
29
|
|
30
|
-
# The available amount for '
|
30
|
+
# The available amount for 'Ready to Assign'
|
31
31
|
attr_accessor :to_be_budgeted
|
32
32
|
|
33
33
|
# The Age of Money as of the month
|