ynab 1.15.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ynab.rb +2 -1
  3. data/lib/ynab/api/accounts_api.rb +3 -3
  4. data/lib/ynab/api/budgets_api.rb +6 -3
  5. data/lib/ynab/api/categories_api.rb +7 -7
  6. data/lib/ynab/api/deprecated_api.rb +1 -1
  7. data/lib/ynab/api/months_api.rb +3 -3
  8. data/lib/ynab/api/payee_locations_api.rb +1 -1
  9. data/lib/ynab/api/payees_api.rb +3 -3
  10. data/lib/ynab/api/scheduled_transactions_api.rb +3 -3
  11. data/lib/ynab/api/transactions_api.rb +25 -25
  12. data/lib/ynab/api/user_api.rb +1 -1
  13. data/lib/ynab/api_client.rb +1 -1
  14. data/lib/ynab/configuration.rb +1 -1
  15. data/lib/ynab/models/account.rb +1 -1
  16. data/lib/ynab/models/account_response.rb +1 -1
  17. data/lib/ynab/models/account_response_data.rb +1 -1
  18. data/lib/ynab/models/accounts_response.rb +1 -1
  19. data/lib/ynab/models/accounts_response_data.rb +1 -1
  20. data/lib/ynab/models/budget_detail.rb +1 -1
  21. data/lib/ynab/models/budget_detail_response.rb +1 -1
  22. data/lib/ynab/models/budget_detail_response_data.rb +1 -1
  23. data/lib/ynab/models/budget_settings.rb +1 -1
  24. data/lib/ynab/models/budget_settings_response.rb +1 -1
  25. data/lib/ynab/models/budget_settings_response_data.rb +1 -1
  26. data/lib/ynab/models/budget_summary.rb +17 -5
  27. data/lib/ynab/models/budget_summary_response.rb +1 -1
  28. data/lib/ynab/models/budget_summary_response_data.rb +1 -1
  29. data/lib/ynab/models/bulk_response.rb +1 -1
  30. data/lib/ynab/models/bulk_response_data.rb +1 -1
  31. data/lib/ynab/models/bulk_response_data_bulk.rb +2 -2
  32. data/lib/ynab/models/bulk_transactions.rb +1 -1
  33. data/lib/ynab/models/categories_response.rb +1 -1
  34. data/lib/ynab/models/categories_response_data.rb +1 -1
  35. data/lib/ynab/models/category.rb +3 -3
  36. data/lib/ynab/models/category_group.rb +1 -1
  37. data/lib/ynab/models/category_group_with_categories.rb +1 -1
  38. data/lib/ynab/models/category_response.rb +1 -1
  39. data/lib/ynab/models/category_response_data.rb +1 -1
  40. data/lib/ynab/models/currency_format.rb +1 -1
  41. data/lib/ynab/models/date_format.rb +1 -1
  42. data/lib/ynab/models/error_detail.rb +1 -1
  43. data/lib/ynab/models/error_response.rb +1 -1
  44. data/lib/ynab/models/hybrid_transaction.rb +1 -1
  45. data/lib/ynab/models/hybrid_transactions_response.rb +1 -1
  46. data/lib/ynab/models/hybrid_transactions_response_data.rb +1 -1
  47. data/lib/ynab/models/month_detail.rb +3 -3
  48. data/lib/ynab/models/month_detail_response.rb +1 -1
  49. data/lib/ynab/models/month_detail_response_data.rb +1 -1
  50. data/lib/ynab/models/month_summaries_response.rb +1 -1
  51. data/lib/ynab/models/month_summaries_response_data.rb +1 -1
  52. data/lib/ynab/models/month_summary.rb +3 -3
  53. data/lib/ynab/models/payee.rb +2 -2
  54. data/lib/ynab/models/payee_location.rb +1 -1
  55. data/lib/ynab/models/payee_location_response.rb +1 -1
  56. data/lib/ynab/models/payee_location_response_data.rb +1 -1
  57. data/lib/ynab/models/payee_locations_response.rb +1 -1
  58. data/lib/ynab/models/payee_locations_response_data.rb +1 -1
  59. data/lib/ynab/models/payee_response.rb +1 -1
  60. data/lib/ynab/models/payee_response_data.rb +1 -1
  61. data/lib/ynab/models/payees_response.rb +1 -1
  62. data/lib/ynab/models/payees_response_data.rb +1 -1
  63. data/lib/ynab/models/save_category_response.rb +1 -1
  64. data/lib/ynab/models/save_category_response_data.rb +1 -1
  65. data/lib/ynab/models/save_month_category.rb +1 -1
  66. data/lib/ynab/models/save_month_category_wrapper.rb +1 -1
  67. data/lib/ynab/models/save_sub_transaction.rb +258 -0
  68. data/lib/ynab/models/save_transaction.rb +21 -9
  69. data/lib/ynab/models/save_transaction_wrapper.rb +1 -1
  70. data/lib/ynab/models/save_transactions_response.rb +1 -1
  71. data/lib/ynab/models/save_transactions_response_data.rb +2 -2
  72. data/lib/ynab/models/save_transactions_wrapper.rb +1 -1
  73. data/lib/ynab/models/scheduled_sub_transaction.rb +1 -1
  74. data/lib/ynab/models/scheduled_transaction_detail.rb +1 -1
  75. data/lib/ynab/models/scheduled_transaction_response.rb +1 -1
  76. data/lib/ynab/models/scheduled_transaction_response_data.rb +1 -1
  77. data/lib/ynab/models/scheduled_transaction_summary.rb +1 -1
  78. data/lib/ynab/models/scheduled_transactions_response.rb +1 -1
  79. data/lib/ynab/models/scheduled_transactions_response_data.rb +1 -1
  80. data/lib/ynab/models/sub_transaction.rb +20 -2
  81. data/lib/ynab/models/transaction_detail.rb +1 -1
  82. data/lib/ynab/models/transaction_response.rb +1 -1
  83. data/lib/ynab/models/transaction_response_data.rb +1 -1
  84. data/lib/ynab/models/transaction_summary.rb +1 -1
  85. data/lib/ynab/models/transactions_response.rb +1 -1
  86. data/lib/ynab/models/transactions_response_data.rb +1 -1
  87. data/lib/ynab/models/update_transaction.rb +18 -6
  88. data/lib/ynab/models/update_transactions_wrapper.rb +1 -1
  89. data/lib/ynab/models/user.rb +1 -1
  90. data/lib/ynab/models/user_response.rb +1 -1
  91. data/lib/ynab/models/user_response_data.rb +1 -1
  92. data/lib/ynab/version.rb +1 -1
  93. metadata +3 -2
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -31,6 +31,9 @@ module YNAB
31
31
 
32
32
  attr_accessor :currency_format
33
33
 
34
+ # The budget accounts (only included if `include_accounts=true` specified as query parameter)
35
+ attr_accessor :accounts
36
+
34
37
  # Attribute mapping from ruby-style variable name to JSON key.
35
38
  def self.attribute_map
36
39
  {
@@ -40,7 +43,8 @@ module YNAB
40
43
  :'first_month' => :'first_month',
41
44
  :'last_month' => :'last_month',
42
45
  :'date_format' => :'date_format',
43
- :'currency_format' => :'currency_format'
46
+ :'currency_format' => :'currency_format',
47
+ :'accounts' => :'accounts'
44
48
  }
45
49
  end
46
50
 
@@ -53,7 +57,8 @@ module YNAB
53
57
  :'first_month' => :'Date',
54
58
  :'last_month' => :'Date',
55
59
  :'date_format' => :'DateFormat',
56
- :'currency_format' => :'CurrencyFormat'
60
+ :'currency_format' => :'CurrencyFormat',
61
+ :'accounts' => :'Array<Account>'
57
62
  }
58
63
  end
59
64
 
@@ -92,6 +97,12 @@ module YNAB
92
97
  if attributes.has_key?(:'currency_format')
93
98
  self.currency_format = attributes[:'currency_format']
94
99
  end
100
+
101
+ if attributes.has_key?(:'accounts')
102
+ if (value = attributes[:'accounts']).is_a?(Array)
103
+ self.accounts = value
104
+ end
105
+ end
95
106
  end
96
107
 
97
108
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -128,7 +139,8 @@ module YNAB
128
139
  first_month == o.first_month &&
129
140
  last_month == o.last_month &&
130
141
  date_format == o.date_format &&
131
- currency_format == o.currency_format
142
+ currency_format == o.currency_format &&
143
+ accounts == o.accounts
132
144
  end
133
145
 
134
146
  # @see the `==` method
@@ -140,7 +152,7 @@ module YNAB
140
152
  # Calculates hash code according to all attributes.
141
153
  # @return [Fixnum] Hash code
142
154
  def hash
143
- [id, name, last_modified_on, first_month, last_month, date_format, currency_format].hash
155
+ [id, name, last_modified_on, first_month, last_month, date_format, currency_format, accounts].hash
144
156
  end
145
157
 
146
158
  # Builds the object from hash
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -17,7 +17,7 @@ module YNAB
17
17
  # The list of Transaction ids that were created.
18
18
  attr_accessor :transaction_ids
19
19
 
20
- # If any Transactions were not created because they had an import_id matching a transaction already on the same account, the specified import_id(s) will be included in this list.
20
+ # If any Transactions were not created because they had an `import_id` matching a transaction already on the same account, the specified import_id(s) will be included in this list.
21
21
  attr_accessor :duplicate_import_ids
22
22
 
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -37,7 +37,7 @@ module YNAB
37
37
  # Balance in milliunits format
38
38
  attr_accessor :balance
39
39
 
40
- # The type of goal, if the category has a goal (TB=Target Category Balance, TBD=Target Category Balance by Date, MF=Monthly Funding)
40
+ # The type of goal, if the category has a goal (TB='Target Category Balance', TBD='Target Category Balance by Date', MF='Monthly Funding', NEED='Plan Your Spending')
41
41
  attr_accessor :goal_type
42
42
 
43
43
  # The month a goal was created
@@ -46,7 +46,7 @@ module YNAB
46
46
  # The goal target amount in milliunits
47
47
  attr_accessor :goal_target
48
48
 
49
- # If the goal type is 'TBD' (Target Category Balance by Date), this is the target month for the goal to be completed
49
+ # The target month for the goal to be completed. Only some goal types specify this date.
50
50
  attr_accessor :goal_target_month
51
51
 
52
52
  # The percentage completion of the goal
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -18,13 +18,13 @@ module YNAB
18
18
 
19
19
  attr_accessor :note
20
20
 
21
- # The total amount in transactions categorized to 'Inflow: To be Budgeted' in the month
21
+ # The total amount of transactions categorized to 'Inflow: To be Budgeted' 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 in transactions in the month, excluding those categorized to 'Inflow: To be Budgeted'
27
+ # The total amount of transactions in the month, excluding those categorized to 'Inflow: To be Budgeted'
28
28
  attr_accessor :activity
29
29
 
30
30
  # The available amount for 'To be Budgeted'
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12