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
@@ -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
|
data/lib/ynab/models/payee.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
|
|
@@ -17,34 +17,11 @@ module YNAB
|
|
17
17
|
# The name of the account
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
-
# The account type
|
21
20
|
attr_accessor :type
|
22
21
|
|
23
22
|
# The current balance of the account in milliunits format
|
24
23
|
attr_accessor :balance
|
25
24
|
|
26
|
-
class EnumAttributeValidator
|
27
|
-
attr_reader :datatype
|
28
|
-
attr_reader :allowable_values
|
29
|
-
|
30
|
-
def initialize(datatype, allowable_values)
|
31
|
-
@allowable_values = allowable_values.map do |value|
|
32
|
-
case datatype.to_s
|
33
|
-
when /Integer/i
|
34
|
-
value.to_i
|
35
|
-
when /Float/i
|
36
|
-
value.to_f
|
37
|
-
else
|
38
|
-
value
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
def valid?(value)
|
44
|
-
!value || allowable_values.include?(value)
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
26
|
def self.attribute_map
|
50
27
|
{
|
@@ -58,7 +35,7 @@ module YNAB
|
|
58
35
|
def self.swagger_types
|
59
36
|
{
|
60
37
|
:'name' => :'String',
|
61
|
-
:'type' => :'
|
38
|
+
:'type' => :'AccountType',
|
62
39
|
:'balance' => :'Integer'
|
63
40
|
}
|
64
41
|
end
|
@@ -108,18 +85,10 @@ module YNAB
|
|
108
85
|
def valid?
|
109
86
|
return false if @name.nil?
|
110
87
|
return false if @type.nil?
|
111
|
-
type_validator = EnumAttributeValidator.new('String', ['checking', 'savings', 'creditCard', 'cash', 'lineOfCredit', 'otherAsset', 'otherLiability'])
|
112
|
-
return false unless type_validator.valid?(@type)
|
113
88
|
return false if @balance.nil?
|
114
89
|
true
|
115
90
|
end
|
116
91
|
|
117
|
-
# Custom attribute writer method checking allowed values (enum).
|
118
|
-
# @param [Object] type Object to be assigned
|
119
|
-
def type=(type)
|
120
|
-
@type = type
|
121
|
-
end
|
122
|
-
|
123
92
|
# Checks equality by comparing each attribute.
|
124
93
|
# @param [Object] Object to be compared
|
125
94
|
def ==(o)
|
@@ -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
|
|
@@ -48,6 +48,8 @@ module YNAB
|
|
48
48
|
# An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported.
|
49
49
|
attr_accessor :subtransactions
|
50
50
|
|
51
|
+
attr_accessor :id
|
52
|
+
|
51
53
|
class EnumAttributeValidator
|
52
54
|
attr_reader :datatype
|
53
55
|
attr_reader :allowable_values
|
@@ -84,7 +86,8 @@ module YNAB
|
|
84
86
|
:'approved' => :'approved',
|
85
87
|
:'flag_color' => :'flag_color',
|
86
88
|
:'import_id' => :'import_id',
|
87
|
-
:'subtransactions' => :'subtransactions'
|
89
|
+
:'subtransactions' => :'subtransactions',
|
90
|
+
:'id' => :'id'
|
88
91
|
}
|
89
92
|
end
|
90
93
|
|
@@ -102,7 +105,8 @@ module YNAB
|
|
102
105
|
:'approved' => :'BOOLEAN',
|
103
106
|
:'flag_color' => :'String',
|
104
107
|
:'import_id' => :'String',
|
105
|
-
:'subtransactions' => :'Array<SaveSubTransaction>'
|
108
|
+
:'subtransactions' => :'Array<SaveSubTransaction>',
|
109
|
+
:'id' => :'String'
|
106
110
|
}
|
107
111
|
end
|
108
112
|
|
@@ -163,6 +167,10 @@ module YNAB
|
|
163
167
|
self.subtransactions = value
|
164
168
|
end
|
165
169
|
end
|
170
|
+
|
171
|
+
if attributes.has_key?(:'id')
|
172
|
+
self.id = attributes[:'id']
|
173
|
+
end
|
166
174
|
end
|
167
175
|
|
168
176
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -193,6 +201,10 @@ module YNAB
|
|
193
201
|
invalid_properties.push('invalid value for "import_id", the character length must be smaller than or equal to 36.')
|
194
202
|
end
|
195
203
|
|
204
|
+
if @id.nil?
|
205
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
206
|
+
end
|
207
|
+
|
196
208
|
invalid_properties
|
197
209
|
end
|
198
210
|
|
@@ -209,6 +221,7 @@ module YNAB
|
|
209
221
|
flag_color_validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
|
210
222
|
return false unless flag_color_validator.valid?(@flag_color)
|
211
223
|
return false if !@import_id.nil? && @import_id.to_s.length > 36
|
224
|
+
return false if @id.nil?
|
212
225
|
true
|
213
226
|
end
|
214
227
|
|
@@ -270,7 +283,8 @@ module YNAB
|
|
270
283
|
approved == o.approved &&
|
271
284
|
flag_color == o.flag_color &&
|
272
285
|
import_id == o.import_id &&
|
273
|
-
subtransactions == o.subtransactions
|
286
|
+
subtransactions == o.subtransactions &&
|
287
|
+
id == o.id
|
274
288
|
end
|
275
289
|
|
276
290
|
# @see the `==` method
|
@@ -282,7 +296,7 @@ module YNAB
|
|
282
296
|
# Calculates hash code according to all attributes.
|
283
297
|
# @return [Fixnum] Hash code
|
284
298
|
def hash
|
285
|
-
[account_id, date, amount, payee_id, payee_name, category_id, memo, cleared, approved, flag_color, import_id, subtransactions].hash
|
299
|
+
[account_id, date, amount, payee_id, payee_name, category_id, memo, cleared, approved, flag_color, import_id, subtransactions, id].hash
|
286
300
|
end
|
287
301
|
# Builds the object from hash
|
288
302
|
# @param [Hash] attributes Model attributes in the form of hash
|
data/lib/ynab/models/user.rb
CHANGED
data/lib/ynab/version.rb
CHANGED