ynab 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/config.json +1 -1
- data/docs/TransactionDetail.md +1 -0
- data/lib/ynab/models/transaction_detail.rb +15 -1
- data/lib/ynab/version.rb +1 -1
- data/spec-v1-swagger.json +9 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7d7da4f24baccaa3813fd7579e074138cf03410
|
4
|
+
data.tar.gz: d60194b11d71357bd19ad03786cc162064e43dbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c59b23d133e8b97acb3dc0b7eb6f7c2e3c64cb6dc0970d3020f590273766142a3ef3999b48e4c36cdaa3c0243000425f678f26e9194cfa11db86ddac3caccd17
|
7
|
+
data.tar.gz: 9df41334d96ca6bfadc98dd1277b86396a52ff847f048dda358a105205a660c4c19ff203bf2b1dfc8dca5571bdd066e4063fb3dad8894e1c2179e07fde6f9e4e
|
data/Gemfile.lock
CHANGED
data/config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"gemName": "ynab",
|
3
3
|
"moduleName": "YnabApi",
|
4
|
-
"gemVersion": "0.
|
4
|
+
"gemVersion": "0.6.0",
|
5
5
|
"gemDescription": "Ruby gem wrapper for the YNAB API. Read the documentation at https://api.youneedabudget.com",
|
6
6
|
"gemHomepage": "https://github.com/ynab/ynab-sdk-ruby",
|
7
7
|
"gemLicense": "Apache-2.0",
|
data/docs/TransactionDetail.md
CHANGED
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
|
|
15
15
|
**category_id** | **String** | |
|
16
16
|
**transfer_account_id** | **String** | |
|
17
17
|
**import_id** | **String** | If the Transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have 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'. |
|
18
|
+
**account_name** | **String** | |
|
18
19
|
**payee_name** | **String** | |
|
19
20
|
**category_name** | **String** | |
|
20
21
|
**subtransactions** | [**Array<SubTransaction>**](SubTransaction.md) | If a split transaction, the subtransactions. |
|
@@ -44,6 +44,8 @@ module YnabApi
|
|
44
44
|
# If the Transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have 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'.
|
45
45
|
attr_accessor :import_id
|
46
46
|
|
47
|
+
attr_accessor :account_name
|
48
|
+
|
47
49
|
attr_accessor :payee_name
|
48
50
|
|
49
51
|
attr_accessor :category_name
|
@@ -88,6 +90,7 @@ module YnabApi
|
|
88
90
|
:'category_id' => :'category_id',
|
89
91
|
:'transfer_account_id' => :'transfer_account_id',
|
90
92
|
:'import_id' => :'import_id',
|
93
|
+
:'account_name' => :'account_name',
|
91
94
|
:'payee_name' => :'payee_name',
|
92
95
|
:'category_name' => :'category_name',
|
93
96
|
:'subtransactions' => :'subtransactions'
|
@@ -109,6 +112,7 @@ module YnabApi
|
|
109
112
|
:'category_id' => :'String',
|
110
113
|
:'transfer_account_id' => :'String',
|
111
114
|
:'import_id' => :'String',
|
115
|
+
:'account_name' => :'String',
|
112
116
|
:'payee_name' => :'String',
|
113
117
|
:'category_name' => :'String',
|
114
118
|
:'subtransactions' => :'Array<SubTransaction>'
|
@@ -171,6 +175,10 @@ module YnabApi
|
|
171
175
|
self.import_id = attributes[:'import_id']
|
172
176
|
end
|
173
177
|
|
178
|
+
if attributes.has_key?(:'account_name')
|
179
|
+
self.account_name = attributes[:'account_name']
|
180
|
+
end
|
181
|
+
|
174
182
|
if attributes.has_key?(:'payee_name')
|
175
183
|
self.payee_name = attributes[:'payee_name']
|
176
184
|
end
|
@@ -239,6 +247,10 @@ module YnabApi
|
|
239
247
|
invalid_properties.push("invalid value for 'import_id', import_id cannot be nil.")
|
240
248
|
end
|
241
249
|
|
250
|
+
if @account_name.nil?
|
251
|
+
invalid_properties.push("invalid value for 'account_name', account_name cannot be nil.")
|
252
|
+
end
|
253
|
+
|
242
254
|
if @payee_name.nil?
|
243
255
|
invalid_properties.push("invalid value for 'payee_name', payee_name cannot be nil.")
|
244
256
|
end
|
@@ -273,6 +285,7 @@ module YnabApi
|
|
273
285
|
return false if @category_id.nil?
|
274
286
|
return false if @transfer_account_id.nil?
|
275
287
|
return false if @import_id.nil?
|
288
|
+
return false if @account_name.nil?
|
276
289
|
return false if @payee_name.nil?
|
277
290
|
return false if @category_name.nil?
|
278
291
|
return false if @subtransactions.nil?
|
@@ -316,6 +329,7 @@ module YnabApi
|
|
316
329
|
category_id == o.category_id &&
|
317
330
|
transfer_account_id == o.transfer_account_id &&
|
318
331
|
import_id == o.import_id &&
|
332
|
+
account_name == o.account_name &&
|
319
333
|
payee_name == o.payee_name &&
|
320
334
|
category_name == o.category_name &&
|
321
335
|
subtransactions == o.subtransactions
|
@@ -330,7 +344,7 @@ module YnabApi
|
|
330
344
|
# Calculates hash code according to all attributes.
|
331
345
|
# @return [Fixnum] Hash code
|
332
346
|
def hash
|
333
|
-
[id, date, amount, memo, cleared, approved, flag_color, account_id, payee_id, category_id, transfer_account_id, import_id, payee_name, category_name, subtransactions].hash
|
347
|
+
[id, date, amount, memo, cleared, approved, flag_color, account_id, payee_id, category_id, transfer_account_id, import_id, account_name, payee_name, category_name, subtransactions].hash
|
334
348
|
end
|
335
349
|
|
336
350
|
# Builds the object from hash
|
data/lib/ynab/version.rb
CHANGED
data/spec-v1-swagger.json
CHANGED
@@ -1823,8 +1823,16 @@
|
|
1823
1823
|
},
|
1824
1824
|
{
|
1825
1825
|
"type": "object",
|
1826
|
-
"required": [
|
1826
|
+
"required": [
|
1827
|
+
"account_name",
|
1828
|
+
"payee_name",
|
1829
|
+
"category_name",
|
1830
|
+
"subtransactions"
|
1831
|
+
],
|
1827
1832
|
"properties": {
|
1833
|
+
"account_name": {
|
1834
|
+
"type": "string"
|
1835
|
+
},
|
1828
1836
|
"payee_name": {
|
1829
1837
|
"type": "string"
|
1830
1838
|
},
|