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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df9ea24b0ebeb3e14645747e918e4a3654ad7b8a
4
- data.tar.gz: f552b0fba980ba2ec495c1bde80d814e165e4f43
3
+ metadata.gz: f7d7da4f24baccaa3813fd7579e074138cf03410
4
+ data.tar.gz: d60194b11d71357bd19ad03786cc162064e43dbe
5
5
  SHA512:
6
- metadata.gz: 30486289c7320d39173f8c1ed55ff4b422faef8de7dca4c5957275101360c61c44f85b4bd94c134a3bb8da76e5442b6c1041232ff840f6c416fc2ce7d75d4b43
7
- data.tar.gz: 1e594649f9f6b50f3360da6eb96272a6354e81e0dc1735a1b0a5ea29143235c4045b54339dcc9e529f7d331f2d3adef412629c7cf7eaf066659a39f240f9d521
6
+ metadata.gz: c59b23d133e8b97acb3dc0b7eb6f7c2e3c64cb6dc0970d3020f590273766142a3ef3999b48e4c36cdaa3c0243000425f678f26e9194cfa11db86ddac3caccd17
7
+ data.tar.gz: 9df41334d96ca6bfadc98dd1277b86396a52ff847f048dda358a105205a660c4c19ff203bf2b1dfc8dca5571bdd066e4063fb3dad8894e1c2179e07fde6f9e4e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ynab (0.4.0)
4
+ ynab (0.6.0)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
data/config.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "gemName": "ynab",
3
3
  "moduleName": "YnabApi",
4
- "gemVersion": "0.5.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",
@@ -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
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.3.1
11
11
  =end
12
12
 
13
13
  module YnabApi
14
- VERSION = "0.5.0"
14
+ VERSION = "0.6.0"
15
15
  end
data/spec-v1-swagger.json CHANGED
@@ -1823,8 +1823,16 @@
1823
1823
  },
1824
1824
  {
1825
1825
  "type": "object",
1826
- "required": ["payee_name", "category_name", "subtransactions"],
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
  },
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ynab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - You Need A Budget, LLC