ynab 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +44 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +57 -0
  6. data/Rakefile +31 -0
  7. data/config.json +10 -0
  8. data/docs/Account.md +16 -0
  9. data/docs/AccountResponse.md +8 -0
  10. data/docs/AccountWrapper.md +8 -0
  11. data/docs/AccountsApi.md +121 -0
  12. data/docs/AccountsResponse.md +8 -0
  13. data/docs/AccountsWrapper.md +8 -0
  14. data/docs/BudgetDetail.md +22 -0
  15. data/docs/BudgetDetailResponse.md +8 -0
  16. data/docs/BudgetDetailWrapper.md +9 -0
  17. data/docs/BudgetSummary.md +12 -0
  18. data/docs/BudgetSummaryResponse.md +8 -0
  19. data/docs/BudgetSummaryWrapper.md +8 -0
  20. data/docs/BudgetsApi.md +116 -0
  21. data/docs/BulkIdWrapper.md +8 -0
  22. data/docs/BulkIds.md +9 -0
  23. data/docs/BulkResponse.md +8 -0
  24. data/docs/BulkTransactionCreateResponse.md +8 -0
  25. data/docs/BulkTransactionIds.md +8 -0
  26. data/docs/BulkTransactions.md +8 -0
  27. data/docs/CategoriesApi.md +121 -0
  28. data/docs/CategoriesResponse.md +8 -0
  29. data/docs/Category.md +15 -0
  30. data/docs/CategoryGroup.md +10 -0
  31. data/docs/CategoryGroupWithCategories.md +11 -0
  32. data/docs/CategoryGroupsWrapper.md +8 -0
  33. data/docs/CategoryResponse.md +8 -0
  34. data/docs/CategoryWrapper.md +8 -0
  35. data/docs/CurrencyFormat.md +8 -0
  36. data/docs/DateFormat.md +8 -0
  37. data/docs/ErrorDetail.md +10 -0
  38. data/docs/ErrorResponse.md +8 -0
  39. data/docs/MonthDetail.md +12 -0
  40. data/docs/MonthDetailResponse.md +8 -0
  41. data/docs/MonthDetailWrapper.md +8 -0
  42. data/docs/MonthSummariesResponse.md +8 -0
  43. data/docs/MonthSummariesWrapper.md +8 -0
  44. data/docs/MonthSummary.md +11 -0
  45. data/docs/MonthsApi.md +121 -0
  46. data/docs/Payee.md +10 -0
  47. data/docs/PayeeLocation.md +11 -0
  48. data/docs/PayeeLocationResponse.md +8 -0
  49. data/docs/PayeeLocationWrapper.md +8 -0
  50. data/docs/PayeeLocationsApi.md +179 -0
  51. data/docs/PayeeLocationsResponse.md +8 -0
  52. data/docs/PayeeLocationsWrapper.md +8 -0
  53. data/docs/PayeeResponse.md +8 -0
  54. data/docs/PayeeWrapper.md +8 -0
  55. data/docs/PayeesApi.md +121 -0
  56. data/docs/PayeesResponse.md +8 -0
  57. data/docs/PayeesWrapper.md +8 -0
  58. data/docs/SaveTransaction.md +18 -0
  59. data/docs/SaveTransactionWrapper.md +8 -0
  60. data/docs/ScheduledSubTransaction.md +14 -0
  61. data/docs/ScheduledTransactionDetail.md +19 -0
  62. data/docs/ScheduledTransactionResponse.md +8 -0
  63. data/docs/ScheduledTransactionSummary.md +18 -0
  64. data/docs/ScheduledTransactionWrapper.md +8 -0
  65. data/docs/ScheduledTransactionsApi.md +121 -0
  66. data/docs/ScheduledTransactionsResponse.md +8 -0
  67. data/docs/ScheduledTransactionsWrapper.md +8 -0
  68. data/docs/SubTransaction.md +14 -0
  69. data/docs/TransactionDetail.md +20 -0
  70. data/docs/TransactionResponse.md +8 -0
  71. data/docs/TransactionSummary.md +19 -0
  72. data/docs/TransactionWrapper.md +8 -0
  73. data/docs/TransactionsApi.md +428 -0
  74. data/docs/TransactionsResponse.md +8 -0
  75. data/docs/TransactionsWrapper.md +8 -0
  76. data/examples/budget-list.rb +25 -0
  77. data/examples/budget-month.rb +36 -0
  78. data/examples/category-balance.rb +27 -0
  79. data/lib/ynab.rb +136 -0
  80. data/lib/ynab/api/accounts_api.rb +135 -0
  81. data/lib/ynab/api/budgets_api.rb +126 -0
  82. data/lib/ynab/api/categories_api.rb +135 -0
  83. data/lib/ynab/api/months_api.rb +135 -0
  84. data/lib/ynab/api/payee_locations_api.rb +194 -0
  85. data/lib/ynab/api/payees_api.rb +135 -0
  86. data/lib/ynab/api/scheduled_transactions_api.rb +135 -0
  87. data/lib/ynab/api/transactions_api.rb +451 -0
  88. data/lib/ynab/api_client.rb +392 -0
  89. data/lib/ynab/api_error.rb +38 -0
  90. data/lib/ynab/configuration.rb +209 -0
  91. data/lib/ynab/models/account.rb +343 -0
  92. data/lib/ynab/models/account_response.rb +193 -0
  93. data/lib/ynab/models/account_wrapper.rb +193 -0
  94. data/lib/ynab/models/accounts_response.rb +193 -0
  95. data/lib/ynab/models/accounts_wrapper.rb +195 -0
  96. data/lib/ynab/models/budget_detail.rb +345 -0
  97. data/lib/ynab/models/budget_detail_response.rb +193 -0
  98. data/lib/ynab/models/budget_detail_wrapper.rb +208 -0
  99. data/lib/ynab/models/budget_summary.rb +235 -0
  100. data/lib/ynab/models/budget_summary_response.rb +193 -0
  101. data/lib/ynab/models/budget_summary_wrapper.rb +195 -0
  102. data/lib/ynab/models/bulk_id_wrapper.rb +193 -0
  103. data/lib/ynab/models/bulk_ids.rb +213 -0
  104. data/lib/ynab/models/bulk_response.rb +193 -0
  105. data/lib/ynab/models/bulk_transaction_create_response.rb +193 -0
  106. data/lib/ynab/models/bulk_transaction_ids.rb +195 -0
  107. data/lib/ynab/models/bulk_transactions.rb +195 -0
  108. data/lib/ynab/models/categories_response.rb +193 -0
  109. data/lib/ynab/models/category.rb +295 -0
  110. data/lib/ynab/models/category_group.rb +222 -0
  111. data/lib/ynab/models/category_group_with_categories.rb +239 -0
  112. data/lib/ynab/models/category_groups_wrapper.rb +195 -0
  113. data/lib/ynab/models/category_response.rb +193 -0
  114. data/lib/ynab/models/category_wrapper.rb +193 -0
  115. data/lib/ynab/models/currency_format.rb +193 -0
  116. data/lib/ynab/models/date_format.rb +193 -0
  117. data/lib/ynab/models/error_detail.rb +221 -0
  118. data/lib/ynab/models/error_response.rb +193 -0
  119. data/lib/ynab/models/month_detail.rb +253 -0
  120. data/lib/ynab/models/month_detail_response.rb +193 -0
  121. data/lib/ynab/models/month_detail_wrapper.rb +193 -0
  122. data/lib/ynab/models/month_summaries_response.rb +193 -0
  123. data/lib/ynab/models/month_summaries_wrapper.rb +195 -0
  124. data/lib/ynab/models/month_summary.rb +236 -0
  125. data/lib/ynab/models/payee.rb +222 -0
  126. data/lib/ynab/models/payee_location.rb +235 -0
  127. data/lib/ynab/models/payee_location_response.rb +193 -0
  128. data/lib/ynab/models/payee_location_wrapper.rb +193 -0
  129. data/lib/ynab/models/payee_locations_response.rb +193 -0
  130. data/lib/ynab/models/payee_locations_wrapper.rb +195 -0
  131. data/lib/ynab/models/payee_response.rb +193 -0
  132. data/lib/ynab/models/payee_wrapper.rb +193 -0
  133. data/lib/ynab/models/payees_response.rb +193 -0
  134. data/lib/ynab/models/payees_wrapper.rb +195 -0
  135. data/lib/ynab/models/save_transaction.rb +346 -0
  136. data/lib/ynab/models/save_transaction_wrapper.rb +193 -0
  137. data/lib/ynab/models/scheduled_sub_transaction.rb +279 -0
  138. data/lib/ynab/models/scheduled_transaction_detail.rb +387 -0
  139. data/lib/ynab/models/scheduled_transaction_response.rb +193 -0
  140. data/lib/ynab/models/scheduled_transaction_summary.rb +370 -0
  141. data/lib/ynab/models/scheduled_transaction_wrapper.rb +193 -0
  142. data/lib/ynab/models/scheduled_transactions_response.rb +193 -0
  143. data/lib/ynab/models/scheduled_transactions_wrapper.rb +195 -0
  144. data/lib/ynab/models/sub_transaction.rb +279 -0
  145. data/lib/ynab/models/transaction_detail.rb +401 -0
  146. data/lib/ynab/models/transaction_response.rb +193 -0
  147. data/lib/ynab/models/transaction_summary.rb +384 -0
  148. data/lib/ynab/models/transaction_wrapper.rb +193 -0
  149. data/lib/ynab/models/transactions_response.rb +193 -0
  150. data/lib/ynab/models/transactions_wrapper.rb +195 -0
  151. data/lib/ynab/version.rb +15 -0
  152. data/pkg/ynab-0.1.0.gem +0 -0
  153. data/spec-v1-swagger.json +2121 -0
  154. data/spec/api/accounts_spec.rb +56 -0
  155. data/spec/api/budgets_spec.rb +55 -0
  156. data/spec/api/categories_spec.rb +57 -0
  157. data/spec/api/months_spec.rb +57 -0
  158. data/spec/api/payee_locations_spec.rb +57 -0
  159. data/spec/api/payees_spec.rb +56 -0
  160. data/spec/api/scheduled_transactions_spec.rb +56 -0
  161. data/spec/api/transactions_spec.rb +122 -0
  162. data/spec/fixtures/.DS_Store +0 -0
  163. data/spec/fixtures/vcr_cassettes/account.yml +46 -0
  164. data/spec/fixtures/vcr_cassettes/accounts.yml +46 -0
  165. data/spec/fixtures/vcr_cassettes/accounts_unauthorized.yml +49 -0
  166. data/spec/fixtures/vcr_cassettes/budget.yml +1413 -0
  167. data/spec/fixtures/vcr_cassettes/budgets.yml +49 -0
  168. data/spec/fixtures/vcr_cassettes/budgets_unauthorized.yml +49 -0
  169. data/spec/fixtures/vcr_cassettes/bulk_transactions.yml +46 -0
  170. data/spec/fixtures/vcr_cassettes/categories.yml +67 -0
  171. data/spec/fixtures/vcr_cassettes/categories_unauthorized.yml +49 -0
  172. data/spec/fixtures/vcr_cassettes/category.yml +46 -0
  173. data/spec/fixtures/vcr_cassettes/create_transaction.yml +46 -0
  174. data/spec/fixtures/vcr_cassettes/month.yml +59 -0
  175. data/spec/fixtures/vcr_cassettes/months.yml +47 -0
  176. data/spec/fixtures/vcr_cassettes/months_unauthorized.yml +49 -0
  177. data/spec/fixtures/vcr_cassettes/payee.yml +47 -0
  178. data/spec/fixtures/vcr_cassettes/payee_location.yml +46 -0
  179. data/spec/fixtures/vcr_cassettes/payee_locations.yml +46 -0
  180. data/spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml +49 -0
  181. data/spec/fixtures/vcr_cassettes/payees.yml +51 -0
  182. data/spec/fixtures/vcr_cassettes/payees_unauthorized.yml +49 -0
  183. data/spec/fixtures/vcr_cassettes/scheduled_transaction.yml +46 -0
  184. data/spec/fixtures/vcr_cassettes/scheduled_transactions.yml +46 -0
  185. data/spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml +49 -0
  186. data/spec/fixtures/vcr_cassettes/transaction.yml +46 -0
  187. data/spec/fixtures/vcr_cassettes/transactions.yml +46 -0
  188. data/spec/fixtures/vcr_cassettes/transactions_unauthorized.yml +49 -0
  189. data/spec/fixtures/vcr_cassettes/update_transaction.yml +46 -0
  190. data/spec/spec_helper.rb +18 -0
  191. data/swagger-templates/api_client.mustache +386 -0
  192. data/swagger-templates/gemspec.mustache +37 -0
  193. data/ynab.gemspec +40 -0
  194. metadata +353 -0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.localhost:3000/v1/budgets
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - api_client/ruby/0.1.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer 9f1a2c4842b614a771aaae9220fc54ae835e298c4654dc2c9205fc1d7bd1a045
18
+ Expect:
19
+ - ''
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Vary:
28
+ - Accept-Encoding, Origin
29
+ ETag:
30
+ - W/"ab6962c846032f67f346997e36a2d21e"
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - cac5447b-f782-466a-9f0e-bf6fc725bf7f
35
+ X-Runtime:
36
+ - '0.176181'
37
+ Transfer-Encoding:
38
+ - chunked
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"data":{"budgets":[{"id":"36e85244-5254-47be-a7d1-28be746a7f72","name":"Hammel
42
+ Budget","last_modified_on":"2018-02-14T20:28:50+00:00","date_format":{"locale":"en_US"},"currency_format":{"locale":"en_US"},"first_month":"2010-10-01","last_month":"2018-02-01"},{"id":"5b202339-ba6a-4498-bc93-f6909ec38153","name":"Household
43
+ Budget","last_modified_on":"2018-02-14T20:28:53+00:00","date_format":{"locale":"en_US"},"currency_format":{"locale":"en_US"},"first_month":"2013-09-01","last_month":"2018-02-01"},{"id":"9db9a05d-c61c-4ce8-95ea-06174910f332","name":"My
44
+ Budget","last_modified_on":"2018-02-15T18:24:02+00:00","date_format":{"format":"MM/DD/YYYY"},"currency_format":{"iso_code":"USD","example_format":"123,456.78","decimal_digits":2,"decimal_separator":".","symbol_first":true,"group_separator":",","currency_symbol":"$","display_symbol":true},"first_month":"2018-02-01","last_month":"2018-02-01"},{"id":"f419ac25-6217-4175-88dc-c3136ff5f6fd","name":"ABC","last_modified_on":"2018-02-15T18:53:19+00:00","date_format":{"format":"MM/DD/YYYY"},"currency_format":{"iso_code":"USD","example_format":"123,456.78","decimal_digits":2,"decimal_separator":".","symbol_first":true,"group_separator":",","currency_symbol":"$","display_symbol":true},"first_month":"2018-02-01","last_month":"2018-02-01"}]}}'
45
+ http_version: '1.1'
46
+ adapter_metadata:
47
+ effective_url: http://api.localhost:3000/v1/budgets
48
+ recorded_at: Thu, 15 Feb 2018 18:59:58 GMT
49
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.localhost:3000/v1/budgets
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - api_client/ruby/0.1.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer not_valid_access_token
18
+ Expect:
19
+ - ''
20
+ response:
21
+ status:
22
+ code: 401
23
+ message: Unauthorized
24
+ headers:
25
+ Cache-Control:
26
+ - no-store
27
+ Pragma:
28
+ - no-cache
29
+ WWW-Authenticate:
30
+ - Bearer realm="Doorkeeper", error="invalid_token", error_description="The access
31
+ token is invalid"
32
+ Content-Type:
33
+ - application/json; charset=utf-8
34
+ Vary:
35
+ - Accept-Encoding, Origin
36
+ X-Request-Id:
37
+ - 45145cc7-12a5-4f74-bf0a-d25b6c28ff73
38
+ X-Runtime:
39
+ - '0.168549'
40
+ Transfer-Encoding:
41
+ - chunked
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"error":{"id":"401","name":"unauthorized","detail":"Unauthorized"}}'
45
+ http_version: '1.1'
46
+ adapter_metadata:
47
+ effective_url: http://api.localhost:3000/v1/budgets
48
+ recorded_at: Thu, 15 Feb 2018 18:59:58 GMT
49
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/bulk
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"transactions":[{"date":"2018-01-01","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","amount":10000},{"date":"2018-01-02","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","amount":20000},{"date":"2018-01-03","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","amount":30000,"import_id":"123456"}]}'
9
+ headers:
10
+ User-Agent:
11
+ - api_client/ruby/0.1.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer 9f1a2c4842b614a771aaae9220fc54ae835e298c4654dc2c9205fc1d7bd1a045
18
+ Expect:
19
+ - ''
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Vary:
28
+ - Accept-Encoding, Origin
29
+ ETag:
30
+ - W/"3e655bb6ce7a97fe7f25d5cb9d1fea8f"
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 1018e016-4962-4a5f-bf49-1eba5493579f
35
+ X-Runtime:
36
+ - '0.288196'
37
+ Transfer-Encoding:
38
+ - chunked
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"data":{"bulk":{"transaction_ids":["7c6ff284-517b-419a-a08b-3f24e2869618","a6e357f4-a233-4f3a-9bb3-87e45fadaf62","27d58f81-2200-4fe8-8df8-2ff100de6563"],"duplicate_import_ids":[]}}}'
42
+ http_version: '1.1'
43
+ adapter_metadata:
44
+ effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions/bulk
45
+ recorded_at: Thu, 15 Feb 2018 19:13:50 GMT
46
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,67 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - api_client/ruby/0.1.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer 9f1a2c4842b614a771aaae9220fc54ae835e298c4654dc2c9205fc1d7bd1a045
18
+ Expect:
19
+ - ''
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Vary:
28
+ - Accept-Encoding, Origin
29
+ ETag:
30
+ - W/"0b8e76bdf0d5cf17a30c78224b4edd2c"
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 94cf8663-d6ba-4f6b-961a-c453d5036ad5
35
+ X-Runtime:
36
+ - '0.191837'
37
+ Transfer-Encoding:
38
+ - chunked
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"data":{"category_groups":[{"id":"96268093-d750-488a-ba1e-317a5097d3b7","name":"Internal
42
+ Master Category","hidden":false,"categories":[{"id":"26513650-523e-4e7a-ac0d-f6e78d0a8a03","category_group_id":"96268093-d750-488a-ba1e-317a5097d3b7","name":"Immediate
43
+ Income SubCategory","hidden":false,"note":null,"budgeted":0,"activity":1000000,"balance":1000000},{"id":"6c0286d1-2efd-4aba-b352-5b42669a397e","category_group_id":"96268093-d750-488a-ba1e-317a5097d3b7","name":"Deferred
44
+ Income SubCategory","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"2941e5c3-fa0f-42cb-8850-20e8f0c3f99b","category_group_id":"96268093-d750-488a-ba1e-317a5097d3b7","name":"None","hidden":false,"note":null,"budgeted":0,"activity":-2000,"balance":-2000}]},{"id":"f6fb29c0-5fad-4438-a181-a610696cd3b1","name":"Credit
45
+ Card Payments","hidden":false,"categories":[]},{"id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Immediate
46
+ Obligations","hidden":false,"categories":[{"id":"00211e75-cd79-4512-9535-c7cf56e6569a","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Rent/Mortgage","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"e53fd48e-a5e4-4007-97c1-c7a8b1447b2f","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Electric","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"c23efa37-0a24-40e8-83e5-a958955bf525","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Water","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"a51d00ed-8d79-4cea-a28a-7d8e602c800f","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Internet","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"574fac19-537d-46a8-be2b-d2f875691165","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Groceries","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"cc7c2a33-6fa2-40cd-8f16-3eeab80c0578","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Transportation","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"755a9e5c-036b-427b-a8fb-b8f03ab84af4","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Interest
47
+ & Fees","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0}]},{"id":"0798c617-9d14-4da7-87e5-93254624493c","name":"True
48
+ Expenses","hidden":false,"categories":[{"id":"af477fe6-3937-4442-bca2-cafbaeb8539c","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Auto
49
+ Maintenance","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"dac47fd6-b760-4f34-b31e-ee78a1ea5623","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Home
50
+ Maintenance","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"1dcd693a-37e1-445f-9840-744e11b978d5","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Renter''s/Home
51
+ Insurance","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"501a9635-d61f-4e5b-a310-3dfbf9ea33f4","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Medical","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"6425ace7-3a55-4df8-be1b-8c45b9e3a4fe","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Clothing","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"b0f48d73-37e7-421e-a1c7-b0b0d411a502","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Gifts","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"ba2af6a5-167c-4f08-ad63-e342eae5d181","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Giving","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"2f714f37-425f-48b1-b111-9b4a2f92a501","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Computer
52
+ Replacement","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"3019b68f-9c42-420a-a58a-07ba365c6101","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Software
53
+ Subscriptions","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"40937a4c-bef1-4869-b4b6-071f84b55934","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Stuff
54
+ I Forgot to Budget For","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0}]},{"id":"d096c60b-a10d-409e-b9ee-1eeca0458e40","name":"Debt
55
+ Payments","hidden":false,"categories":[{"id":"dfefe5f2-d769-4632-bb8f-24cfde6ea353","category_group_id":"d096c60b-a10d-409e-b9ee-1eeca0458e40","name":"Student
56
+ Loan","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"ee9b39cd-8244-4109-b0cb-1ec1baecc451","category_group_id":"d096c60b-a10d-409e-b9ee-1eeca0458e40","name":"Auto
57
+ Loan","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0}]},{"id":"64a9709a-8836-4cb9-a61a-0d9331153c94","name":"Quality
58
+ of Life Goals","hidden":false,"categories":[{"id":"9ddf07fc-064c-4fdd-bf7e-e6dc4fb0d05c","category_group_id":"64a9709a-8836-4cb9-a61a-0d9331153c94","name":"Vacation","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"cbdc3d5b-1d67-4783-b14e-308405883740","category_group_id":"64a9709a-8836-4cb9-a61a-0d9331153c94","name":"Fitness","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"968ff303-22b2-4da2-9755-0da301573f32","category_group_id":"64a9709a-8836-4cb9-a61a-0d9331153c94","name":"Education","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0}]},{"id":"ed7f8bf9-bd6b-48d2-b3ac-30879c8ca534","name":"Just
59
+ for Fun","hidden":false,"categories":[{"id":"eba8f19e-d3aa-4966-acf8-600bcfe19ef9","category_group_id":"ed7f8bf9-bd6b-48d2-b3ac-30879c8ca534","name":"Dining
60
+ Out","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"dc9176f1-2b95-435d-a8fa-5002a0183a17","category_group_id":"ed7f8bf9-bd6b-48d2-b3ac-30879c8ca534","name":"Gaming","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"aa7f459e-a8c3-4ae0-a752-b349fe25630b","category_group_id":"ed7f8bf9-bd6b-48d2-b3ac-30879c8ca534","name":"Music","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"1f14fa6f-76d2-4a4c-af91-43ae0fe2cd13","category_group_id":"ed7f8bf9-bd6b-48d2-b3ac-30879c8ca534","name":"Fun
61
+ Money","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0}]},{"id":"816f034b-ff8f-4d08-9dbc-f4edfd00baea","name":"Hidden
62
+ Categories","hidden":false,"categories":[]}]}}'
63
+ http_version: '1.1'
64
+ adapter_metadata:
65
+ effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories
66
+ recorded_at: Thu, 15 Feb 2018 18:59:58 GMT
67
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - api_client/ruby/0.1.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer not_valid_access_token
18
+ Expect:
19
+ - ''
20
+ response:
21
+ status:
22
+ code: 401
23
+ message: Unauthorized
24
+ headers:
25
+ Cache-Control:
26
+ - no-store
27
+ Pragma:
28
+ - no-cache
29
+ WWW-Authenticate:
30
+ - Bearer realm="Doorkeeper", error="invalid_token", error_description="The access
31
+ token is invalid"
32
+ Content-Type:
33
+ - application/json; charset=utf-8
34
+ Vary:
35
+ - Accept-Encoding, Origin
36
+ X-Request-Id:
37
+ - 93a08156-ba36-4b4e-9a63-765c2a00560a
38
+ X-Runtime:
39
+ - '0.170777'
40
+ Transfer-Encoding:
41
+ - chunked
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"error":{"id":"401","name":"unauthorized","detail":"Unauthorized"}}'
45
+ http_version: '1.1'
46
+ adapter_metadata:
47
+ effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories
48
+ recorded_at: Thu, 15 Feb 2018 18:59:58 GMT
49
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories/574fac19-537d-46a8-be2b-d2f875691165
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - api_client/ruby/0.1.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer 9f1a2c4842b614a771aaae9220fc54ae835e298c4654dc2c9205fc1d7bd1a045
18
+ Expect:
19
+ - ''
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Vary:
28
+ - Accept-Encoding, Origin
29
+ ETag:
30
+ - W/"7839befe092f187d604ddad811587a57"
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 1ddc786e-63fe-45ec-acd8-588e917ade51
35
+ X-Runtime:
36
+ - '0.183579'
37
+ Transfer-Encoding:
38
+ - chunked
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"data":{"category":{"id":"574fac19-537d-46a8-be2b-d2f875691165","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Groceries","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0}}}'
42
+ http_version: '1.1'
43
+ adapter_metadata:
44
+ effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/categories/574fac19-537d-46a8-be2b-d2f875691165
45
+ recorded_at: Thu, 15 Feb 2018 18:59:59 GMT
46
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"transaction":{"date":"2018-01-01","account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","amount":20000}}'
9
+ headers:
10
+ User-Agent:
11
+ - api_client/ruby/0.1.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer 9f1a2c4842b614a771aaae9220fc54ae835e298c4654dc2c9205fc1d7bd1a045
18
+ Expect:
19
+ - ''
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Vary:
28
+ - Accept-Encoding, Origin
29
+ ETag:
30
+ - W/"b7035ecde34f8285e495491652ea37ff"
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 57b66218-70d4-467e-9151-7b223c416f3b
35
+ X-Runtime:
36
+ - '0.265999'
37
+ Transfer-Encoding:
38
+ - chunked
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"data":{"transaction":{"id":"4cd63d34-3814-4f50-abd0-59ce05b40d91","date":"2018-01-01","amount":20000,"memo":null,"cleared":"uncleared","approved":false,"flag_color":null,"account_id":"5982e895-98e5-41ca-9681-0b6de1036a1c","payee_id":null,"category_id":null,"transfer_account_id":null,"import_id":null,"subtransactions":[]}}}'
42
+ http_version: '1.1'
43
+ adapter_metadata:
44
+ effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/transactions
45
+ recorded_at: Thu, 15 Feb 2018 19:06:36 GMT
46
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/months/2018-02-01
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - api_client/ruby/0.1.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer 9f1a2c4842b614a771aaae9220fc54ae835e298c4654dc2c9205fc1d7bd1a045
18
+ Expect:
19
+ - ''
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Vary:
28
+ - Accept-Encoding, Origin
29
+ ETag:
30
+ - W/"1f3a7ba940c0eece12c6ded9c5bd7553"
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 17cedbd2-7895-48a9-9147-8f020266fad4
35
+ X-Runtime:
36
+ - '0.283184'
37
+ Transfer-Encoding:
38
+ - chunked
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"data":{"month":{"month":"2018-02-01","note":"Test Note","to_be_budgeted":1000000,"age_of_money":null,"categories":[{"id":"00211e75-cd79-4512-9535-c7cf56e6569a","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Rent/Mortgage","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"1dcd693a-37e1-445f-9840-744e11b978d5","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Renter''s/Home
42
+ Insurance","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"1f14fa6f-76d2-4a4c-af91-43ae0fe2cd13","category_group_id":"ed7f8bf9-bd6b-48d2-b3ac-30879c8ca534","name":"Fun
43
+ Money","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"26513650-523e-4e7a-ac0d-f6e78d0a8a03","category_group_id":"96268093-d750-488a-ba1e-317a5097d3b7","name":"Immediate
44
+ Income SubCategory","hidden":false,"note":null,"budgeted":0,"activity":1000000,"balance":1000000},{"id":"2941e5c3-fa0f-42cb-8850-20e8f0c3f99b","category_group_id":"96268093-d750-488a-ba1e-317a5097d3b7","name":"None","hidden":false,"note":null,"budgeted":0,"activity":-2000,"balance":-2000},{"id":"2f714f37-425f-48b1-b111-9b4a2f92a501","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Computer
45
+ Replacement","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"3019b68f-9c42-420a-a58a-07ba365c6101","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Software
46
+ Subscriptions","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"40937a4c-bef1-4869-b4b6-071f84b55934","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Stuff
47
+ I Forgot to Budget For","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"501a9635-d61f-4e5b-a310-3dfbf9ea33f4","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Medical","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"574fac19-537d-46a8-be2b-d2f875691165","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Groceries","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"6425ace7-3a55-4df8-be1b-8c45b9e3a4fe","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Clothing","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"6c0286d1-2efd-4aba-b352-5b42669a397e","category_group_id":"96268093-d750-488a-ba1e-317a5097d3b7","name":"Deferred
48
+ Income SubCategory","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"755a9e5c-036b-427b-a8fb-b8f03ab84af4","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Interest
49
+ & Fees","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"968ff303-22b2-4da2-9755-0da301573f32","category_group_id":"64a9709a-8836-4cb9-a61a-0d9331153c94","name":"Education","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"9ddf07fc-064c-4fdd-bf7e-e6dc4fb0d05c","category_group_id":"64a9709a-8836-4cb9-a61a-0d9331153c94","name":"Vacation","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"a51d00ed-8d79-4cea-a28a-7d8e602c800f","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Internet","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"aa7f459e-a8c3-4ae0-a752-b349fe25630b","category_group_id":"ed7f8bf9-bd6b-48d2-b3ac-30879c8ca534","name":"Music","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"af477fe6-3937-4442-bca2-cafbaeb8539c","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Auto
50
+ Maintenance","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"b0f48d73-37e7-421e-a1c7-b0b0d411a502","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Gifts","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"ba2af6a5-167c-4f08-ad63-e342eae5d181","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Giving","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"c23efa37-0a24-40e8-83e5-a958955bf525","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Water","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"cbdc3d5b-1d67-4783-b14e-308405883740","category_group_id":"64a9709a-8836-4cb9-a61a-0d9331153c94","name":"Fitness","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"cc7c2a33-6fa2-40cd-8f16-3eeab80c0578","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Transportation","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"dac47fd6-b760-4f34-b31e-ee78a1ea5623","category_group_id":"0798c617-9d14-4da7-87e5-93254624493c","name":"Home
51
+ Maintenance","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"dc9176f1-2b95-435d-a8fa-5002a0183a17","category_group_id":"ed7f8bf9-bd6b-48d2-b3ac-30879c8ca534","name":"Gaming","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"dfefe5f2-d769-4632-bb8f-24cfde6ea353","category_group_id":"d096c60b-a10d-409e-b9ee-1eeca0458e40","name":"Student
52
+ Loan","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"e53fd48e-a5e4-4007-97c1-c7a8b1447b2f","category_group_id":"2318eeca-0504-41b4-86c8-9426130eb27d","name":"Electric","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"eba8f19e-d3aa-4966-acf8-600bcfe19ef9","category_group_id":"ed7f8bf9-bd6b-48d2-b3ac-30879c8ca534","name":"Dining
53
+ Out","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0},{"id":"ee9b39cd-8244-4109-b0cb-1ec1baecc451","category_group_id":"d096c60b-a10d-409e-b9ee-1eeca0458e40","name":"Auto
54
+ Loan","hidden":false,"note":null,"budgeted":0,"activity":0,"balance":0}]}}}'
55
+ http_version: '1.1'
56
+ adapter_metadata:
57
+ effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/months/2018-02-01
58
+ recorded_at: Thu, 15 Feb 2018 18:59:59 GMT
59
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/months
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - api_client/ruby/0.1.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ Authorization:
17
+ - Bearer 9f1a2c4842b614a771aaae9220fc54ae835e298c4654dc2c9205fc1d7bd1a045
18
+ Expect:
19
+ - ''
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Vary:
28
+ - Accept-Encoding, Origin
29
+ ETag:
30
+ - W/"35fbac0102918d018b79d75ac9c8e0b9"
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 6f8c270d-199a-48fc-a69f-4cbd414d6679
35
+ X-Runtime:
36
+ - '0.178872'
37
+ Transfer-Encoding:
38
+ - chunked
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"data":{"months":[{"month":"2018-01-01","note":null,"to_be_budgeted":null,"age_of_money":null},{"month":"2018-02-01","note":"Test
42
+ Note","to_be_budgeted":1000000,"age_of_money":null},{"month":"2018-03-01","note":null,"to_be_budgeted":998000,"age_of_money":null}]}}'
43
+ http_version: '1.1'
44
+ adapter_metadata:
45
+ effective_url: http://api.localhost:3000/v1/budgets/f419ac25-6217-4175-88dc-c3136ff5f6fd/months
46
+ recorded_at: Thu, 15 Feb 2018 18:59:59 GMT
47
+ recorded_with: VCR 3.0.3