ynab 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +2 -2
  4. data/Rakefile +9 -0
  5. data/config.json +2 -2
  6. data/docs/Account.md +1 -1
  7. data/docs/AccountResponse.md +1 -1
  8. data/docs/AccountWrapper.md +1 -1
  9. data/docs/AccountsApi.md +1 -1
  10. data/docs/AccountsResponse.md +1 -1
  11. data/docs/AccountsWrapper.md +1 -1
  12. data/docs/BudgetDetail.md +1 -1
  13. data/docs/BudgetDetailResponse.md +1 -1
  14. data/docs/BudgetDetailWrapper.md +1 -1
  15. data/docs/BudgetSettings.md +9 -0
  16. data/docs/BudgetSettingsResponse.md +8 -0
  17. data/docs/BudgetSettingsWrapper.md +8 -0
  18. data/docs/BudgetSummary.md +1 -1
  19. data/docs/BudgetSummaryResponse.md +1 -1
  20. data/docs/BudgetSummaryWrapper.md +1 -1
  21. data/docs/BudgetsApi.md +19 -1
  22. data/docs/BulkIdWrapper.md +1 -1
  23. data/docs/BulkIds.md +1 -1
  24. data/docs/BulkResponse.md +1 -1
  25. data/docs/BulkTransactionCreateResponse.md +2 -2
  26. data/docs/BulkTransactionIds.md +2 -2
  27. data/docs/BulkTransactions.md +1 -1
  28. data/docs/CategoriesApi.md +1 -1
  29. data/docs/CategoriesResponse.md +1 -1
  30. data/docs/Category.md +2 -1
  31. data/docs/CategoryGroup.md +1 -1
  32. data/docs/CategoryGroupWithCategories.md +1 -1
  33. data/docs/CategoryGroupsWrapper.md +1 -1
  34. data/docs/CategoryResponse.md +1 -1
  35. data/docs/CategoryWrapper.md +1 -1
  36. data/docs/CurrencyFormat.md +1 -1
  37. data/docs/DateFormat.md +1 -1
  38. data/docs/ErrorDetail.md +1 -1
  39. data/docs/ErrorResponse.md +1 -1
  40. data/docs/HybridTransaction.md +1 -1
  41. data/docs/HybridTransactionsResponse.md +1 -1
  42. data/docs/HybridTransactionsWrapper.md +1 -1
  43. data/docs/MonthDetail.md +1 -1
  44. data/docs/MonthDetailResponse.md +1 -1
  45. data/docs/MonthDetailWrapper.md +1 -1
  46. data/docs/MonthSummariesResponse.md +1 -1
  47. data/docs/MonthSummariesWrapper.md +1 -1
  48. data/docs/MonthSummary.md +1 -1
  49. data/docs/MonthsApi.md +1 -1
  50. data/docs/Payee.md +1 -1
  51. data/docs/PayeeLocation.md +1 -1
  52. data/docs/PayeeLocationResponse.md +1 -1
  53. data/docs/PayeeLocationWrapper.md +1 -1
  54. data/docs/PayeeLocationsApi.md +1 -1
  55. data/docs/PayeeLocationsResponse.md +1 -1
  56. data/docs/PayeeLocationsWrapper.md +1 -1
  57. data/docs/PayeeResponse.md +1 -1
  58. data/docs/PayeeWrapper.md +1 -1
  59. data/docs/PayeesApi.md +1 -1
  60. data/docs/PayeesResponse.md +1 -1
  61. data/docs/PayeesWrapper.md +1 -1
  62. data/docs/SaveTransaction.md +2 -2
  63. data/docs/SaveTransactionWrapper.md +1 -1
  64. data/docs/ScheduledSubTransaction.md +1 -1
  65. data/docs/ScheduledTransactionDetail.md +1 -1
  66. data/docs/ScheduledTransactionResponse.md +1 -1
  67. data/docs/ScheduledTransactionSummary.md +1 -1
  68. data/docs/ScheduledTransactionWrapper.md +1 -1
  69. data/docs/ScheduledTransactionsApi.md +1 -1
  70. data/docs/ScheduledTransactionsResponse.md +1 -1
  71. data/docs/ScheduledTransactionsWrapper.md +1 -1
  72. data/docs/SubTransaction.md +1 -1
  73. data/docs/TransactionDetail.md +1 -1
  74. data/docs/TransactionResponse.md +1 -1
  75. data/docs/TransactionSummary.md +1 -1
  76. data/docs/TransactionWrapper.md +1 -1
  77. data/docs/TransactionsApi.md +5 -2
  78. data/docs/TransactionsResponse.md +1 -1
  79. data/docs/TransactionsWrapper.md +1 -1
  80. data/docs/User.md +1 -1
  81. data/docs/UserApi.md +1 -1
  82. data/docs/UserResponse.md +1 -1
  83. data/docs/UserWrapper.md +1 -1
  84. data/examples/budget-list.rb +1 -1
  85. data/examples/budget-month.rb +1 -1
  86. data/examples/category-balance.rb +1 -1
  87. data/lib/ynab.rb +27 -15
  88. data/lib/ynab/api/accounts_api.rb +1 -1
  89. data/lib/ynab/api/budgets_api.rb +53 -1
  90. data/lib/ynab/api/categories_api.rb +1 -1
  91. data/lib/ynab/api/months_api.rb +1 -1
  92. data/lib/ynab/api/payee_locations_api.rb +1 -1
  93. data/lib/ynab/api/payees_api.rb +1 -1
  94. data/lib/ynab/api/scheduled_transactions_api.rb +1 -1
  95. data/lib/ynab/api/transactions_api.rb +21 -3
  96. data/lib/ynab/api/user_api.rb +1 -1
  97. data/lib/ynab/api_client.rb +2 -2
  98. data/lib/ynab/api_error.rb +1 -1
  99. data/lib/ynab/configuration.rb +1 -1
  100. data/lib/ynab/models/account.rb +2 -2
  101. data/lib/ynab/models/account_response.rb +2 -2
  102. data/lib/ynab/models/account_wrapper.rb +2 -2
  103. data/lib/ynab/models/accounts_response.rb +2 -2
  104. data/lib/ynab/models/accounts_wrapper.rb +2 -2
  105. data/lib/ynab/models/budget_detail.rb +2 -2
  106. data/lib/ynab/models/budget_detail_response.rb +2 -2
  107. data/lib/ynab/models/budget_detail_wrapper.rb +2 -2
  108. data/lib/ynab/models/budget_settings.rb +202 -0
  109. data/lib/ynab/models/budget_settings_response.rb +188 -0
  110. data/lib/ynab/models/budget_settings_wrapper.rb +188 -0
  111. data/lib/ynab/models/budget_summary.rb +2 -2
  112. data/lib/ynab/models/budget_summary_response.rb +2 -2
  113. data/lib/ynab/models/budget_summary_wrapper.rb +2 -2
  114. data/lib/ynab/models/bulk_id_wrapper.rb +2 -2
  115. data/lib/ynab/models/bulk_ids.rb +2 -2
  116. data/lib/ynab/models/bulk_response.rb +2 -2
  117. data/lib/ynab/models/bulk_transaction_create_response.rb +2 -2
  118. data/lib/ynab/models/bulk_transaction_ids.rb +2 -2
  119. data/lib/ynab/models/bulk_transactions.rb +2 -2
  120. data/lib/ynab/models/categories_response.rb +2 -2
  121. data/lib/ynab/models/category.rb +13 -3
  122. data/lib/ynab/models/category_group.rb +2 -2
  123. data/lib/ynab/models/category_group_with_categories.rb +2 -2
  124. data/lib/ynab/models/category_groups_wrapper.rb +2 -2
  125. data/lib/ynab/models/category_response.rb +2 -2
  126. data/lib/ynab/models/category_wrapper.rb +2 -2
  127. data/lib/ynab/models/currency_format.rb +2 -2
  128. data/lib/ynab/models/date_format.rb +2 -2
  129. data/lib/ynab/models/error_detail.rb +2 -2
  130. data/lib/ynab/models/error_response.rb +2 -2
  131. data/lib/ynab/models/hybrid_transaction.rb +2 -2
  132. data/lib/ynab/models/hybrid_transactions_response.rb +2 -2
  133. data/lib/ynab/models/hybrid_transactions_wrapper.rb +2 -2
  134. data/lib/ynab/models/month_detail.rb +2 -2
  135. data/lib/ynab/models/month_detail_response.rb +2 -2
  136. data/lib/ynab/models/month_detail_wrapper.rb +2 -2
  137. data/lib/ynab/models/month_summaries_response.rb +2 -2
  138. data/lib/ynab/models/month_summaries_wrapper.rb +2 -2
  139. data/lib/ynab/models/month_summary.rb +2 -2
  140. data/lib/ynab/models/payee.rb +2 -2
  141. data/lib/ynab/models/payee_location.rb +2 -2
  142. data/lib/ynab/models/payee_location_response.rb +2 -2
  143. data/lib/ynab/models/payee_location_wrapper.rb +2 -2
  144. data/lib/ynab/models/payee_locations_response.rb +2 -2
  145. data/lib/ynab/models/payee_locations_wrapper.rb +2 -2
  146. data/lib/ynab/models/payee_response.rb +2 -2
  147. data/lib/ynab/models/payee_wrapper.rb +2 -2
  148. data/lib/ynab/models/payees_response.rb +2 -2
  149. data/lib/ynab/models/payees_wrapper.rb +2 -2
  150. data/lib/ynab/models/save_transaction.rb +3 -3
  151. data/lib/ynab/models/save_transaction_wrapper.rb +2 -2
  152. data/lib/ynab/models/scheduled_sub_transaction.rb +2 -2
  153. data/lib/ynab/models/scheduled_transaction_detail.rb +2 -2
  154. data/lib/ynab/models/scheduled_transaction_response.rb +2 -2
  155. data/lib/ynab/models/scheduled_transaction_summary.rb +2 -2
  156. data/lib/ynab/models/scheduled_transaction_wrapper.rb +2 -2
  157. data/lib/ynab/models/scheduled_transactions_response.rb +2 -2
  158. data/lib/ynab/models/scheduled_transactions_wrapper.rb +2 -2
  159. data/lib/ynab/models/sub_transaction.rb +2 -2
  160. data/lib/ynab/models/transaction_detail.rb +2 -2
  161. data/lib/ynab/models/transaction_response.rb +2 -2
  162. data/lib/ynab/models/transaction_summary.rb +2 -2
  163. data/lib/ynab/models/transaction_wrapper.rb +2 -2
  164. data/lib/ynab/models/transactions_response.rb +2 -2
  165. data/lib/ynab/models/transactions_wrapper.rb +2 -2
  166. data/lib/ynab/models/user.rb +2 -2
  167. data/lib/ynab/models/user_response.rb +2 -2
  168. data/lib/ynab/models/user_wrapper.rb +2 -2
  169. data/lib/ynab/version.rb +2 -2
  170. data/pkg/ynab-1.0.0.gem +0 -0
  171. data/pkg/ynab-1.1.0.gem +0 -0
  172. data/spec-v1-swagger.json +105 -3
  173. data/spec/api/accounts_spec.rb +13 -4
  174. data/spec/api/budgets_spec.rb +4 -4
  175. data/spec/api/categories_spec.rb +4 -4
  176. data/spec/api/months_spec.rb +4 -4
  177. data/spec/api/payee_locations_spec.rb +4 -4
  178. data/spec/api/payees_spec.rb +4 -4
  179. data/spec/api/scheduled_transactions_spec.rb +4 -4
  180. data/spec/api/transactions_spec.rb +4 -4
  181. data/swagger-templates/gem.mustache +83 -0
  182. data/ynab.gemspec +1 -1
  183. metadata +11 -2
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class BulkIds
17
17
  # The list of Transaction IDs that were created.
18
18
  attr_accessor :transaction_ids
@@ -158,7 +158,7 @@ module YnabApi
158
158
  end
159
159
  end
160
160
  else # model
161
- temp_model = YnabApi.const_get(type).new
161
+ temp_model = YNAB.const_get(type).new
162
162
  temp_model.build_from_hash(value)
163
163
  end
164
164
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class BulkResponse
17
17
  attr_accessor :data
18
18
 
@@ -138,7 +138,7 @@ module YnabApi
138
138
  end
139
139
  end
140
140
  else # model
141
- temp_model = YnabApi.const_get(type).new
141
+ temp_model = YNAB.const_get(type).new
142
142
  temp_model.build_from_hash(value)
143
143
  end
144
144
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.3.1
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
 
17
17
  class BulkTransactionCreateResponse
18
18
  attr_accessor :data
@@ -141,7 +141,7 @@ module YnabApi
141
141
  end
142
142
  end
143
143
  else # model
144
- temp_model = YnabApi.const_get(type).new
144
+ temp_model = YNAB.const_get(type).new
145
145
  temp_model.build_from_hash(value)
146
146
  end
147
147
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.3.1
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
 
17
17
  class BulkTransactionIds
18
18
  attr_accessor :transaction_ids
@@ -143,7 +143,7 @@ module YnabApi
143
143
  end
144
144
  end
145
145
  else # model
146
- temp_model = YnabApi.const_get(type).new
146
+ temp_model = YNAB.const_get(type).new
147
147
  temp_model.build_from_hash(value)
148
148
  end
149
149
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class BulkTransactions
17
17
  attr_accessor :transactions
18
18
 
@@ -140,7 +140,7 @@ module YnabApi
140
140
  end
141
141
  end
142
142
  else # model
143
- temp_model = YnabApi.const_get(type).new
143
+ temp_model = YNAB.const_get(type).new
144
144
  temp_model.build_from_hash(value)
145
145
  end
146
146
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class CategoriesResponse
17
17
  attr_accessor :data
18
18
 
@@ -138,7 +138,7 @@ module YnabApi
138
138
  end
139
139
  end
140
140
  else # model
141
- temp_model = YnabApi.const_get(type).new
141
+ temp_model = YNAB.const_get(type).new
142
142
  temp_model.build_from_hash(value)
143
143
  end
144
144
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class Category
17
17
  attr_accessor :id
18
18
 
@@ -23,6 +23,9 @@ module YnabApi
23
23
  # Whether or not the category is hidden
24
24
  attr_accessor :hidden
25
25
 
26
+ # If category is hidden this is the id of the category group it originally belonged to before it was hidden.
27
+ attr_accessor :original_category_group_id
28
+
26
29
  attr_accessor :note
27
30
 
28
31
  # Budgeted amount in current month in milliunits format
@@ -44,6 +47,7 @@ module YnabApi
44
47
  :'category_group_id' => :'category_group_id',
45
48
  :'name' => :'name',
46
49
  :'hidden' => :'hidden',
50
+ :'original_category_group_id' => :'original_category_group_id',
47
51
  :'note' => :'note',
48
52
  :'budgeted' => :'budgeted',
49
53
  :'activity' => :'activity',
@@ -59,6 +63,7 @@ module YnabApi
59
63
  :'category_group_id' => :'String',
60
64
  :'name' => :'String',
61
65
  :'hidden' => :'BOOLEAN',
66
+ :'original_category_group_id' => :'String',
62
67
  :'note' => :'String',
63
68
  :'budgeted' => :'Float',
64
69
  :'activity' => :'Float',
@@ -91,6 +96,10 @@ module YnabApi
91
96
  self.hidden = attributes[:'hidden']
92
97
  end
93
98
 
99
+ if attributes.has_key?(:'original_category_group_id')
100
+ self.original_category_group_id = attributes[:'original_category_group_id']
101
+ end
102
+
94
103
  if attributes.has_key?(:'note')
95
104
  self.note = attributes[:'note']
96
105
  end
@@ -179,6 +188,7 @@ module YnabApi
179
188
  category_group_id == o.category_group_id &&
180
189
  name == o.name &&
181
190
  hidden == o.hidden &&
191
+ original_category_group_id == o.original_category_group_id &&
182
192
  note == o.note &&
183
193
  budgeted == o.budgeted &&
184
194
  activity == o.activity &&
@@ -195,7 +205,7 @@ module YnabApi
195
205
  # Calculates hash code according to all attributes.
196
206
  # @return [Fixnum] Hash code
197
207
  def hash
198
- [id, category_group_id, name, hidden, note, budgeted, activity, balance, deleted].hash
208
+ [id, category_group_id, name, hidden, original_category_group_id, note, budgeted, activity, balance, deleted].hash
199
209
  end
200
210
 
201
211
  # Builds the object from hash
@@ -255,7 +265,7 @@ module YnabApi
255
265
  end
256
266
  end
257
267
  else # model
258
- temp_model = YnabApi.const_get(type).new
268
+ temp_model = YNAB.const_get(type).new
259
269
  temp_model.build_from_hash(value)
260
270
  end
261
271
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class CategoryGroup
17
17
  attr_accessor :id
18
18
 
@@ -182,7 +182,7 @@ module YnabApi
182
182
  end
183
183
  end
184
184
  else # model
185
- temp_model = YnabApi.const_get(type).new
185
+ temp_model = YNAB.const_get(type).new
186
186
  temp_model.build_from_hash(value)
187
187
  end
188
188
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class CategoryGroupWithCategories
17
17
  attr_accessor :id
18
18
 
@@ -199,7 +199,7 @@ module YnabApi
199
199
  end
200
200
  end
201
201
  else # model
202
- temp_model = YnabApi.const_get(type).new
202
+ temp_model = YNAB.const_get(type).new
203
203
  temp_model.build_from_hash(value)
204
204
  end
205
205
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class CategoryGroupsWrapper
17
17
  attr_accessor :category_groups
18
18
 
@@ -140,7 +140,7 @@ module YnabApi
140
140
  end
141
141
  end
142
142
  else # model
143
- temp_model = YnabApi.const_get(type).new
143
+ temp_model = YNAB.const_get(type).new
144
144
  temp_model.build_from_hash(value)
145
145
  end
146
146
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class CategoryResponse
17
17
  attr_accessor :data
18
18
 
@@ -138,7 +138,7 @@ module YnabApi
138
138
  end
139
139
  end
140
140
  else # model
141
- temp_model = YnabApi.const_get(type).new
141
+ temp_model = YNAB.const_get(type).new
142
142
  temp_model.build_from_hash(value)
143
143
  end
144
144
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class CategoryWrapper
17
17
  attr_accessor :category
18
18
 
@@ -138,7 +138,7 @@ module YnabApi
138
138
  end
139
139
  end
140
140
  else # model
141
- temp_model = YnabApi.const_get(type).new
141
+ temp_model = YNAB.const_get(type).new
142
142
  temp_model.build_from_hash(value)
143
143
  end
144
144
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class CurrencyFormat
17
17
  attr_accessor :iso_code
18
18
 
@@ -236,7 +236,7 @@ module YnabApi
236
236
  end
237
237
  end
238
238
  else # model
239
- temp_model = YnabApi.const_get(type).new
239
+ temp_model = YNAB.const_get(type).new
240
240
  temp_model.build_from_hash(value)
241
241
  end
242
242
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class DateFormat
17
17
  attr_accessor :format
18
18
 
@@ -138,7 +138,7 @@ module YnabApi
138
138
  end
139
139
  end
140
140
  else # model
141
- temp_model = YnabApi.const_get(type).new
141
+ temp_model = YNAB.const_get(type).new
142
142
  temp_model.build_from_hash(value)
143
143
  end
144
144
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class ErrorDetail
17
17
  attr_accessor :id
18
18
 
@@ -166,7 +166,7 @@ module YnabApi
166
166
  end
167
167
  end
168
168
  else # model
169
- temp_model = YnabApi.const_get(type).new
169
+ temp_model = YNAB.const_get(type).new
170
170
  temp_model.build_from_hash(value)
171
171
  end
172
172
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class ErrorResponse
17
17
  attr_accessor :error
18
18
 
@@ -138,7 +138,7 @@ module YnabApi
138
138
  end
139
139
  end
140
140
  else # model
141
- temp_model = YnabApi.const_get(type).new
141
+ temp_model = YNAB.const_get(type).new
142
142
  temp_model.build_from_hash(value)
143
143
  end
144
144
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class HybridTransaction
17
17
  attr_accessor :id
18
18
 
@@ -442,7 +442,7 @@ module YnabApi
442
442
  end
443
443
  end
444
444
  else # model
445
- temp_model = YnabApi.const_get(type).new
445
+ temp_model = YNAB.const_get(type).new
446
446
  temp_model.build_from_hash(value)
447
447
  end
448
448
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class HybridTransactionsResponse
17
17
  attr_accessor :data
18
18
 
@@ -138,7 +138,7 @@ module YnabApi
138
138
  end
139
139
  end
140
140
  else # model
141
- temp_model = YnabApi.const_get(type).new
141
+ temp_model = YNAB.const_get(type).new
142
142
  temp_model.build_from_hash(value)
143
143
  end
144
144
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class HybridTransactionsWrapper
17
17
  attr_accessor :transactions
18
18
 
@@ -140,7 +140,7 @@ module YnabApi
140
140
  end
141
141
  end
142
142
  else # model
143
- temp_model = YnabApi.const_get(type).new
143
+ temp_model = YNAB.const_get(type).new
144
144
  temp_model.build_from_hash(value)
145
145
  end
146
146
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class MonthDetail
17
17
  attr_accessor :month
18
18
 
@@ -198,7 +198,7 @@ module YnabApi
198
198
  end
199
199
  end
200
200
  else # model
201
- temp_model = YnabApi.const_get(type).new
201
+ temp_model = YNAB.const_get(type).new
202
202
  temp_model.build_from_hash(value)
203
203
  end
204
204
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class MonthDetailResponse
17
17
  attr_accessor :data
18
18
 
@@ -138,7 +138,7 @@ module YnabApi
138
138
  end
139
139
  end
140
140
  else # model
141
- temp_model = YnabApi.const_get(type).new
141
+ temp_model = YNAB.const_get(type).new
142
142
  temp_model.build_from_hash(value)
143
143
  end
144
144
  end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  require 'date'
14
14
 
15
- module YnabApi
15
+ module YNAB
16
16
  class MonthDetailWrapper
17
17
  attr_accessor :month
18
18
 
@@ -138,7 +138,7 @@ module YnabApi
138
138
  end
139
139
  end
140
140
  else # model
141
- temp_model = YnabApi.const_get(type).new
141
+ temp_model = YNAB.const_get(type).new
142
142
  temp_model.build_from_hash(value)
143
143
  end
144
144
  end