ynab 1.29.0 → 2.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (260) hide show
  1. checksums.yaml +4 -4
  2. data/DEVELOPMENT.md +11 -0
  3. data/Gemfile +8 -0
  4. data/Gemfile.lock +42 -0
  5. data/README.md +6 -6
  6. data/Rakefile +58 -0
  7. data/config.json +9 -0
  8. data/docs/Account.md +25 -0
  9. data/docs/AccountResponse.md +8 -0
  10. data/docs/AccountResponseData.md +8 -0
  11. data/docs/AccountType.md +7 -0
  12. data/docs/AccountWrapper.md +8 -0
  13. data/docs/AccountsApi.md +70 -0
  14. data/docs/AccountsResponse.md +8 -0
  15. data/docs/AccountsResponseData.md +9 -0
  16. data/docs/AccountsWrapper.md +9 -0
  17. data/docs/BudgetDetail.md +24 -0
  18. data/docs/BudgetDetailAllOf.md +17 -0
  19. data/docs/BudgetDetailResponse.md +8 -0
  20. data/docs/BudgetDetailResponseData.md +9 -0
  21. data/docs/BudgetDetailWrapper.md +9 -0
  22. data/docs/BudgetSettings.md +9 -0
  23. data/docs/BudgetSettingsResponse.md +8 -0
  24. data/docs/BudgetSettingsResponseData.md +8 -0
  25. data/docs/BudgetSettingsWrapper.md +8 -0
  26. data/docs/BudgetSummary.md +15 -0
  27. data/docs/BudgetSummaryResponse.md +8 -0
  28. data/docs/BudgetSummaryResponseData.md +9 -0
  29. data/docs/BudgetSummaryWrapper.md +9 -0
  30. data/docs/BudgetsApi.md +68 -0
  31. data/docs/BulkIdWrapper.md +8 -0
  32. data/docs/BulkIds.md +9 -0
  33. data/docs/BulkResponse.md +8 -0
  34. data/docs/BulkResponseData.md +8 -0
  35. data/docs/BulkResponseDataBulk.md +9 -0
  36. data/docs/BulkTransactionCreateResponse.md +8 -0
  37. data/docs/BulkTransactionIds.md +8 -0
  38. data/docs/BulkTransactions.md +8 -0
  39. data/docs/CategoriesApi.md +94 -0
  40. data/docs/CategoriesResponse.md +8 -0
  41. data/docs/CategoriesResponseData.md +9 -0
  42. data/docs/Category.md +30 -0
  43. data/docs/CategoryGroup.md +11 -0
  44. data/docs/CategoryGroupWithCategories.md +12 -0
  45. data/docs/CategoryGroupWithCategoriesAllOf.md +8 -0
  46. data/docs/CategoryGroupsWrapper.md +9 -0
  47. data/docs/CategoryResponse.md +8 -0
  48. data/docs/CategoryResponseData.md +8 -0
  49. data/docs/CategoryWrapper.md +9 -0
  50. data/docs/CurrencyFormat.md +15 -0
  51. data/docs/DateFormat.md +8 -0
  52. data/docs/DeprecatedApi.md +28 -0
  53. data/docs/ErrorDetail.md +10 -0
  54. data/docs/ErrorResponse.md +8 -0
  55. data/docs/HybridTransaction.md +30 -0
  56. data/docs/HybridTransactionAllOf.md +12 -0
  57. data/docs/HybridTransactionsResponse.md +8 -0
  58. data/docs/HybridTransactionsResponseData.md +9 -0
  59. data/docs/HybridTransactionsWrapper.md +8 -0
  60. data/docs/LoanAccountPeriodicValue.md +7 -0
  61. data/docs/MonthDetail.md +16 -0
  62. data/docs/MonthDetailAllOf.md +8 -0
  63. data/docs/MonthDetailResponse.md +8 -0
  64. data/docs/MonthDetailResponseData.md +8 -0
  65. data/docs/MonthDetailWrapper.md +8 -0
  66. data/docs/MonthSummariesResponse.md +8 -0
  67. data/docs/MonthSummariesResponseData.md +9 -0
  68. data/docs/MonthSummariesWrapper.md +9 -0
  69. data/docs/MonthSummary.md +15 -0
  70. data/docs/MonthsApi.md +49 -0
  71. data/docs/PatchMonthCategoryWrapper.md +8 -0
  72. data/docs/PatchTransactionsWrapper.md +8 -0
  73. data/docs/Payee.md +11 -0
  74. data/docs/PayeeLocation.md +12 -0
  75. data/docs/PayeeLocationResponse.md +8 -0
  76. data/docs/PayeeLocationResponseData.md +8 -0
  77. data/docs/PayeeLocationWrapper.md +8 -0
  78. data/docs/PayeeLocationsApi.md +69 -0
  79. data/docs/PayeeLocationsResponse.md +8 -0
  80. data/docs/PayeeLocationsResponseData.md +8 -0
  81. data/docs/PayeeLocationsWrapper.md +8 -0
  82. data/docs/PayeeResponse.md +8 -0
  83. data/docs/PayeeResponseData.md +8 -0
  84. data/docs/PayeeWrapper.md +8 -0
  85. data/docs/PayeesApi.md +49 -0
  86. data/docs/PayeesResponse.md +8 -0
  87. data/docs/PayeesResponseData.md +9 -0
  88. data/docs/PayeesWrapper.md +9 -0
  89. data/docs/PostAccountWrapper.md +8 -0
  90. data/docs/PostTransactionsWrapper.md +9 -0
  91. data/docs/PutTransactionWrapper.md +8 -0
  92. data/docs/SaveAccount.md +10 -0
  93. data/docs/SaveAccountWrapper.md +8 -0
  94. data/docs/SaveCategoryResponse.md +8 -0
  95. data/docs/SaveCategoryResponseData.md +9 -0
  96. data/docs/SaveMonthCategory.md +8 -0
  97. data/docs/SaveMonthCategoryWrapper.md +8 -0
  98. data/docs/SaveSubTransaction.md +12 -0
  99. data/docs/SaveTransaction.md +19 -0
  100. data/docs/SaveTransactionWithId.md +20 -0
  101. data/docs/SaveTransactionWithIdAllOf.md +8 -0
  102. data/docs/SaveTransactionWithOptionalFields.md +19 -0
  103. data/docs/SaveTransactionWrapper.md +8 -0
  104. data/docs/SaveTransactionsResponse.md +8 -0
  105. data/docs/SaveTransactionsResponseData.md +12 -0
  106. data/docs/SaveTransactionsWrapper.md +9 -0
  107. data/docs/ScheduledSubTransaction.md +15 -0
  108. data/docs/ScheduledTransactionDetail.md +23 -0
  109. data/docs/ScheduledTransactionDetailAllOf.md +11 -0
  110. data/docs/ScheduledTransactionResponse.md +8 -0
  111. data/docs/ScheduledTransactionResponseData.md +8 -0
  112. data/docs/ScheduledTransactionSummary.md +19 -0
  113. data/docs/ScheduledTransactionWrapper.md +8 -0
  114. data/docs/ScheduledTransactionsApi.md +49 -0
  115. data/docs/ScheduledTransactionsResponse.md +8 -0
  116. data/docs/ScheduledTransactionsResponseData.md +9 -0
  117. data/docs/ScheduledTransactionsWrapper.md +8 -0
  118. data/docs/SubTransaction.md +18 -0
  119. data/docs/TransactionDetail.md +29 -0
  120. data/docs/TransactionDetailAllOf.md +11 -0
  121. data/docs/TransactionResponse.md +8 -0
  122. data/docs/TransactionResponseData.md +8 -0
  123. data/docs/TransactionSummary.md +25 -0
  124. data/docs/TransactionWrapper.md +8 -0
  125. data/docs/TransactionsApi.md +228 -0
  126. data/docs/TransactionsImportResponse.md +8 -0
  127. data/docs/TransactionsImportResponseData.md +8 -0
  128. data/docs/TransactionsResponse.md +8 -0
  129. data/docs/TransactionsResponseData.md +9 -0
  130. data/docs/TransactionsWrapper.md +9 -0
  131. data/docs/UpdateTransaction.md +20 -0
  132. data/docs/UpdateTransactionsWrapper.md +8 -0
  133. data/docs/User.md +8 -0
  134. data/docs/UserApi.md +25 -0
  135. data/docs/UserResponse.md +8 -0
  136. data/docs/UserResponseData.md +8 -0
  137. data/docs/UserWrapper.md +8 -0
  138. data/examples/budget-list.rb +21 -0
  139. data/examples/budget-month.rb +33 -0
  140. data/examples/category-balance.rb +23 -0
  141. data/examples/create-multiple-transactions.rb +42 -0
  142. data/examples/create-transaction.rb +30 -0
  143. data/examples/update-category-budgeted.rb +25 -0
  144. data/examples/update-multiple-transactions.rb +20 -0
  145. data/lib/ynab/api/accounts_api.rb +79 -42
  146. data/lib/ynab/api/budgets_api.rb +69 -37
  147. data/lib/ynab/api/categories_api.rb +109 -61
  148. data/lib/ynab/api/deprecated_api.rb +33 -18
  149. data/lib/ynab/api/months_api.rb +50 -29
  150. data/lib/ynab/api/payee_locations_api.rb +74 -42
  151. data/lib/ynab/api/payees_api.rb +50 -29
  152. data/lib/ynab/api/scheduled_transactions_api.rb +50 -29
  153. data/lib/ynab/api/transactions_api.rb +269 -141
  154. data/lib/ynab/api/user_api.rb +23 -13
  155. data/lib/ynab/api_client.rb +98 -96
  156. data/lib/ynab/configuration.rb +103 -16
  157. data/lib/ynab/models/account.rb +118 -56
  158. data/lib/ynab/models/account_response.rb +54 -19
  159. data/lib/ynab/models/account_response_data.rb +54 -19
  160. data/lib/ynab/models/account_type.rb +31 -21
  161. data/lib/ynab/models/accounts_response.rb +54 -19
  162. data/lib/ynab/models/accounts_response_data.rb +55 -20
  163. data/lib/ynab/models/budget_detail.rb +81 -36
  164. data/lib/ynab/models/budget_detail_all_of.rb +320 -0
  165. data/lib/ynab/models/budget_detail_response.rb +54 -19
  166. data/lib/ynab/models/budget_detail_response_data.rb +55 -20
  167. data/lib/ynab/models/budget_settings.rb +57 -30
  168. data/lib/ynab/models/budget_settings_response.rb +54 -19
  169. data/lib/ynab/models/budget_settings_response_data.rb +54 -19
  170. data/lib/ynab/models/budget_summary.rb +64 -27
  171. data/lib/ynab/models/budget_summary_response.rb +54 -19
  172. data/lib/ynab/models/budget_summary_response_data.rb +55 -21
  173. data/lib/ynab/models/bulk_response.rb +54 -19
  174. data/lib/ynab/models/bulk_response_data.rb +54 -19
  175. data/lib/ynab/models/bulk_response_data_bulk.rb +55 -20
  176. data/lib/ynab/models/bulk_transactions.rb +54 -19
  177. data/lib/ynab/models/categories_response.rb +54 -19
  178. data/lib/ynab/models/categories_response_data.rb +55 -20
  179. data/lib/ynab/models/category.rb +111 -49
  180. data/lib/ynab/models/category_group.rb +59 -24
  181. data/lib/ynab/models/category_group_with_categories.rb +68 -25
  182. data/lib/ynab/models/{save_month_category_wrapper.rb → category_group_with_categories_all_of.rb} +67 -29
  183. data/lib/ynab/models/category_response.rb +54 -19
  184. data/lib/ynab/models/category_response_data.rb +54 -19
  185. data/lib/ynab/models/currency_format.rb +63 -28
  186. data/lib/ynab/models/date_format.rb +54 -19
  187. data/lib/ynab/models/error_detail.rb +56 -21
  188. data/lib/ynab/models/error_response.rb +54 -19
  189. data/lib/ynab/models/hybrid_transaction.rb +120 -47
  190. data/lib/ynab/models/hybrid_transaction_all_of.rb +304 -0
  191. data/lib/ynab/models/hybrid_transactions_response.rb +54 -19
  192. data/lib/ynab/models/hybrid_transactions_response_data.rb +55 -20
  193. data/lib/ynab/models/month_detail.rb +73 -28
  194. data/lib/ynab/models/{update_transactions_wrapper.rb → month_detail_all_of.rb} +66 -30
  195. data/lib/ynab/models/month_detail_response.rb +54 -19
  196. data/lib/ynab/models/month_detail_response_data.rb +54 -19
  197. data/lib/ynab/models/month_summaries_response.rb +54 -19
  198. data/lib/ynab/models/month_summaries_response_data.rb +55 -20
  199. data/lib/ynab/models/month_summary.rb +64 -27
  200. data/lib/ynab/models/patch_month_category_wrapper.rb +54 -19
  201. data/lib/ynab/models/patch_transactions_wrapper.rb +54 -19
  202. data/lib/ynab/models/payee.rb +59 -23
  203. data/lib/ynab/models/payee_location.rb +59 -24
  204. data/lib/ynab/models/payee_location_response.rb +54 -19
  205. data/lib/ynab/models/payee_location_response_data.rb +54 -19
  206. data/lib/ynab/models/payee_locations_response.rb +54 -19
  207. data/lib/ynab/models/payee_locations_response_data.rb +54 -19
  208. data/lib/ynab/models/payee_response.rb +54 -19
  209. data/lib/ynab/models/payee_response_data.rb +54 -19
  210. data/lib/ynab/models/payees_response.rb +54 -19
  211. data/lib/ynab/models/payees_response_data.rb +55 -20
  212. data/lib/ynab/models/post_account_wrapper.rb +54 -19
  213. data/lib/ynab/models/post_transactions_wrapper.rb +55 -20
  214. data/lib/ynab/models/put_transaction_wrapper.rb +54 -19
  215. data/lib/ynab/models/save_account.rb +78 -21
  216. data/lib/ynab/models/save_category_response.rb +54 -19
  217. data/lib/ynab/models/save_category_response_data.rb +55 -20
  218. data/lib/ynab/models/save_month_category.rb +54 -19
  219. data/lib/ynab/models/save_sub_transaction.rb +62 -23
  220. data/lib/ynab/models/save_transaction.rb +89 -34
  221. data/lib/ynab/models/save_transaction_with_id.rb +103 -47
  222. data/lib/ynab/models/{save_transactions_wrapper.rb → save_transaction_with_id_all_of.rb} +60 -36
  223. data/lib/ynab/models/save_transaction_with_optional_fields.rb +82 -34
  224. data/lib/ynab/models/save_transactions_response.rb +54 -19
  225. data/lib/ynab/models/save_transactions_response_data.rb +58 -24
  226. data/lib/ynab/models/scheduled_sub_transaction.rb +67 -28
  227. data/lib/ynab/models/scheduled_transaction_detail.rb +96 -37
  228. data/lib/ynab/models/scheduled_transaction_detail_all_of.rb +262 -0
  229. data/lib/ynab/models/scheduled_transaction_response.rb +54 -19
  230. data/lib/ynab/models/scheduled_transaction_response_data.rb +54 -19
  231. data/lib/ynab/models/scheduled_transaction_summary.rb +81 -33
  232. data/lib/ynab/models/scheduled_transactions_response.rb +54 -19
  233. data/lib/ynab/models/scheduled_transactions_response_data.rb +55 -20
  234. data/lib/ynab/models/sub_transaction.rb +72 -30
  235. data/lib/ynab/models/transaction_detail.rb +114 -45
  236. data/lib/ynab/models/{save_transaction_wrapper.rb → transaction_detail_all_of.rb} +102 -29
  237. data/lib/ynab/models/transaction_response.rb +54 -19
  238. data/lib/ynab/models/transaction_response_data.rb +54 -19
  239. data/lib/ynab/models/transaction_summary.rb +99 -41
  240. data/lib/ynab/models/transactions_import_response.rb +54 -19
  241. data/lib/ynab/models/transactions_import_response_data.rb +54 -19
  242. data/lib/ynab/models/transactions_response.rb +54 -19
  243. data/lib/ynab/models/transactions_response_data.rb +55 -20
  244. data/lib/ynab/models/user.rb +54 -19
  245. data/lib/ynab/models/user_response.rb +54 -19
  246. data/lib/ynab/models/user_response_data.rb +54 -19
  247. data/lib/ynab/version.rb +1 -1
  248. data/lib/ynab.rb +21 -16
  249. data/open_api_spec.yaml +3012 -0
  250. data/templates/api_client.mustache +274 -0
  251. data/templates/api_client_typhoeus_partial.mustache +156 -0
  252. data/templates/api_doc.mustache +44 -0
  253. data/templates/gem.mustache +84 -0
  254. data/templates/partial_model_generic_doc.mustache +9 -0
  255. data/ynab.gemspec +38 -0
  256. metadata +197 -90
  257. data/lib/ynab/models/loan_account_periodic_value.rb +0 -175
  258. data/lib/ynab/models/save_account_wrapper.rb +0 -189
  259. data/lib/ynab/models/update_transaction.rb +0 -407
  260. data/spec/models/transaction_detail_spec.rb +0 -11
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ynab
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.0
4
+ version: 2.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
- - You Need A Budget, LLC
7
+ - YNAB
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-28 00:00:00.000000000 Z
11
+ date: 2023-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -30,26 +30,6 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.1
33
- - !ruby/object:Gem::Dependency
34
- name: json
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '2.1'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 2.1.0
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '2.1'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 2.1.0
53
33
  - !ruby/object:Gem::Dependency
54
34
  name: rspec
55
35
  requirement: !ruby/object:Gem::Requirement
@@ -70,35 +50,157 @@ dependencies:
70
50
  - - ">="
71
51
  - !ruby/object:Gem::Version
72
52
  version: 3.6.0
73
- - !ruby/object:Gem::Dependency
74
- name: vcr
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: '3.0'
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 3.0.1
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '3.0'
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: 3.0.1
93
- description: Ruby gem wrapper for the YNAB API. Read the documentation at https://api.youneedabudget.com
53
+ description: Ruby gem wrapper for the YNAB API. Read the documentation at https://api.ynab.com
94
54
  email:
95
- - api@youneedabudget.com
55
+ - api@ynab.com
96
56
  executables: []
97
57
  extensions: []
98
58
  extra_rdoc_files: []
99
59
  files:
60
+ - DEVELOPMENT.md
61
+ - Gemfile
62
+ - Gemfile.lock
100
63
  - LICENSE.md
101
64
  - README.md
65
+ - Rakefile
66
+ - config.json
67
+ - docs/Account.md
68
+ - docs/AccountResponse.md
69
+ - docs/AccountResponseData.md
70
+ - docs/AccountType.md
71
+ - docs/AccountWrapper.md
72
+ - docs/AccountsApi.md
73
+ - docs/AccountsResponse.md
74
+ - docs/AccountsResponseData.md
75
+ - docs/AccountsWrapper.md
76
+ - docs/BudgetDetail.md
77
+ - docs/BudgetDetailAllOf.md
78
+ - docs/BudgetDetailResponse.md
79
+ - docs/BudgetDetailResponseData.md
80
+ - docs/BudgetDetailWrapper.md
81
+ - docs/BudgetSettings.md
82
+ - docs/BudgetSettingsResponse.md
83
+ - docs/BudgetSettingsResponseData.md
84
+ - docs/BudgetSettingsWrapper.md
85
+ - docs/BudgetSummary.md
86
+ - docs/BudgetSummaryResponse.md
87
+ - docs/BudgetSummaryResponseData.md
88
+ - docs/BudgetSummaryWrapper.md
89
+ - docs/BudgetsApi.md
90
+ - docs/BulkIdWrapper.md
91
+ - docs/BulkIds.md
92
+ - docs/BulkResponse.md
93
+ - docs/BulkResponseData.md
94
+ - docs/BulkResponseDataBulk.md
95
+ - docs/BulkTransactionCreateResponse.md
96
+ - docs/BulkTransactionIds.md
97
+ - docs/BulkTransactions.md
98
+ - docs/CategoriesApi.md
99
+ - docs/CategoriesResponse.md
100
+ - docs/CategoriesResponseData.md
101
+ - docs/Category.md
102
+ - docs/CategoryGroup.md
103
+ - docs/CategoryGroupWithCategories.md
104
+ - docs/CategoryGroupWithCategoriesAllOf.md
105
+ - docs/CategoryGroupsWrapper.md
106
+ - docs/CategoryResponse.md
107
+ - docs/CategoryResponseData.md
108
+ - docs/CategoryWrapper.md
109
+ - docs/CurrencyFormat.md
110
+ - docs/DateFormat.md
111
+ - docs/DeprecatedApi.md
112
+ - docs/ErrorDetail.md
113
+ - docs/ErrorResponse.md
114
+ - docs/HybridTransaction.md
115
+ - docs/HybridTransactionAllOf.md
116
+ - docs/HybridTransactionsResponse.md
117
+ - docs/HybridTransactionsResponseData.md
118
+ - docs/HybridTransactionsWrapper.md
119
+ - docs/LoanAccountPeriodicValue.md
120
+ - docs/MonthDetail.md
121
+ - docs/MonthDetailAllOf.md
122
+ - docs/MonthDetailResponse.md
123
+ - docs/MonthDetailResponseData.md
124
+ - docs/MonthDetailWrapper.md
125
+ - docs/MonthSummariesResponse.md
126
+ - docs/MonthSummariesResponseData.md
127
+ - docs/MonthSummariesWrapper.md
128
+ - docs/MonthSummary.md
129
+ - docs/MonthsApi.md
130
+ - docs/PatchMonthCategoryWrapper.md
131
+ - docs/PatchTransactionsWrapper.md
132
+ - docs/Payee.md
133
+ - docs/PayeeLocation.md
134
+ - docs/PayeeLocationResponse.md
135
+ - docs/PayeeLocationResponseData.md
136
+ - docs/PayeeLocationWrapper.md
137
+ - docs/PayeeLocationsApi.md
138
+ - docs/PayeeLocationsResponse.md
139
+ - docs/PayeeLocationsResponseData.md
140
+ - docs/PayeeLocationsWrapper.md
141
+ - docs/PayeeResponse.md
142
+ - docs/PayeeResponseData.md
143
+ - docs/PayeeWrapper.md
144
+ - docs/PayeesApi.md
145
+ - docs/PayeesResponse.md
146
+ - docs/PayeesResponseData.md
147
+ - docs/PayeesWrapper.md
148
+ - docs/PostAccountWrapper.md
149
+ - docs/PostTransactionsWrapper.md
150
+ - docs/PutTransactionWrapper.md
151
+ - docs/SaveAccount.md
152
+ - docs/SaveAccountWrapper.md
153
+ - docs/SaveCategoryResponse.md
154
+ - docs/SaveCategoryResponseData.md
155
+ - docs/SaveMonthCategory.md
156
+ - docs/SaveMonthCategoryWrapper.md
157
+ - docs/SaveSubTransaction.md
158
+ - docs/SaveTransaction.md
159
+ - docs/SaveTransactionWithId.md
160
+ - docs/SaveTransactionWithIdAllOf.md
161
+ - docs/SaveTransactionWithOptionalFields.md
162
+ - docs/SaveTransactionWrapper.md
163
+ - docs/SaveTransactionsResponse.md
164
+ - docs/SaveTransactionsResponseData.md
165
+ - docs/SaveTransactionsWrapper.md
166
+ - docs/ScheduledSubTransaction.md
167
+ - docs/ScheduledTransactionDetail.md
168
+ - docs/ScheduledTransactionDetailAllOf.md
169
+ - docs/ScheduledTransactionResponse.md
170
+ - docs/ScheduledTransactionResponseData.md
171
+ - docs/ScheduledTransactionSummary.md
172
+ - docs/ScheduledTransactionWrapper.md
173
+ - docs/ScheduledTransactionsApi.md
174
+ - docs/ScheduledTransactionsResponse.md
175
+ - docs/ScheduledTransactionsResponseData.md
176
+ - docs/ScheduledTransactionsWrapper.md
177
+ - docs/SubTransaction.md
178
+ - docs/TransactionDetail.md
179
+ - docs/TransactionDetailAllOf.md
180
+ - docs/TransactionResponse.md
181
+ - docs/TransactionResponseData.md
182
+ - docs/TransactionSummary.md
183
+ - docs/TransactionWrapper.md
184
+ - docs/TransactionsApi.md
185
+ - docs/TransactionsImportResponse.md
186
+ - docs/TransactionsImportResponseData.md
187
+ - docs/TransactionsResponse.md
188
+ - docs/TransactionsResponseData.md
189
+ - docs/TransactionsWrapper.md
190
+ - docs/UpdateTransaction.md
191
+ - docs/UpdateTransactionsWrapper.md
192
+ - docs/User.md
193
+ - docs/UserApi.md
194
+ - docs/UserResponse.md
195
+ - docs/UserResponseData.md
196
+ - docs/UserWrapper.md
197
+ - examples/budget-list.rb
198
+ - examples/budget-month.rb
199
+ - examples/category-balance.rb
200
+ - examples/create-multiple-transactions.rb
201
+ - examples/create-transaction.rb
202
+ - examples/update-category-budgeted.rb
203
+ - examples/update-multiple-transactions.rb
102
204
  - lib/ynab.rb
103
205
  - lib/ynab/api/accounts_api.rb
104
206
  - lib/ynab/api/budgets_api.rb
@@ -120,6 +222,7 @@ files:
120
222
  - lib/ynab/models/accounts_response.rb
121
223
  - lib/ynab/models/accounts_response_data.rb
122
224
  - lib/ynab/models/budget_detail.rb
225
+ - lib/ynab/models/budget_detail_all_of.rb
123
226
  - lib/ynab/models/budget_detail_response.rb
124
227
  - lib/ynab/models/budget_detail_response_data.rb
125
228
  - lib/ynab/models/budget_settings.rb
@@ -137,6 +240,7 @@ files:
137
240
  - lib/ynab/models/category.rb
138
241
  - lib/ynab/models/category_group.rb
139
242
  - lib/ynab/models/category_group_with_categories.rb
243
+ - lib/ynab/models/category_group_with_categories_all_of.rb
140
244
  - lib/ynab/models/category_response.rb
141
245
  - lib/ynab/models/category_response_data.rb
142
246
  - lib/ynab/models/currency_format.rb
@@ -144,10 +248,11 @@ files:
144
248
  - lib/ynab/models/error_detail.rb
145
249
  - lib/ynab/models/error_response.rb
146
250
  - lib/ynab/models/hybrid_transaction.rb
251
+ - lib/ynab/models/hybrid_transaction_all_of.rb
147
252
  - lib/ynab/models/hybrid_transactions_response.rb
148
253
  - lib/ynab/models/hybrid_transactions_response_data.rb
149
- - lib/ynab/models/loan_account_periodic_value.rb
150
254
  - lib/ynab/models/month_detail.rb
255
+ - lib/ynab/models/month_detail_all_of.rb
151
256
  - lib/ynab/models/month_detail_response.rb
152
257
  - lib/ynab/models/month_detail_response_data.rb
153
258
  - lib/ynab/models/month_summaries_response.rb
@@ -169,21 +274,19 @@ files:
169
274
  - lib/ynab/models/post_transactions_wrapper.rb
170
275
  - lib/ynab/models/put_transaction_wrapper.rb
171
276
  - lib/ynab/models/save_account.rb
172
- - lib/ynab/models/save_account_wrapper.rb
173
277
  - lib/ynab/models/save_category_response.rb
174
278
  - lib/ynab/models/save_category_response_data.rb
175
279
  - lib/ynab/models/save_month_category.rb
176
- - lib/ynab/models/save_month_category_wrapper.rb
177
280
  - lib/ynab/models/save_sub_transaction.rb
178
281
  - lib/ynab/models/save_transaction.rb
179
282
  - lib/ynab/models/save_transaction_with_id.rb
283
+ - lib/ynab/models/save_transaction_with_id_all_of.rb
180
284
  - lib/ynab/models/save_transaction_with_optional_fields.rb
181
- - lib/ynab/models/save_transaction_wrapper.rb
182
285
  - lib/ynab/models/save_transactions_response.rb
183
286
  - lib/ynab/models/save_transactions_response_data.rb
184
- - lib/ynab/models/save_transactions_wrapper.rb
185
287
  - lib/ynab/models/scheduled_sub_transaction.rb
186
288
  - lib/ynab/models/scheduled_transaction_detail.rb
289
+ - lib/ynab/models/scheduled_transaction_detail_all_of.rb
187
290
  - lib/ynab/models/scheduled_transaction_response.rb
188
291
  - lib/ynab/models/scheduled_transaction_response_data.rb
189
292
  - lib/ynab/models/scheduled_transaction_summary.rb
@@ -191,6 +294,7 @@ files:
191
294
  - lib/ynab/models/scheduled_transactions_response_data.rb
192
295
  - lib/ynab/models/sub_transaction.rb
193
296
  - lib/ynab/models/transaction_detail.rb
297
+ - lib/ynab/models/transaction_detail_all_of.rb
194
298
  - lib/ynab/models/transaction_response.rb
195
299
  - lib/ynab/models/transaction_response_data.rb
196
300
  - lib/ynab/models/transaction_summary.rb
@@ -198,13 +302,12 @@ files:
198
302
  - lib/ynab/models/transactions_import_response_data.rb
199
303
  - lib/ynab/models/transactions_response.rb
200
304
  - lib/ynab/models/transactions_response_data.rb
201
- - lib/ynab/models/update_transaction.rb
202
- - lib/ynab/models/update_transactions_wrapper.rb
203
305
  - lib/ynab/models/user.rb
204
306
  - lib/ynab/models/user_response.rb
205
307
  - lib/ynab/models/user_response_data.rb
206
308
  - lib/ynab/overrides/transactions_api.rb
207
309
  - lib/ynab/version.rb
310
+ - open_api_spec.yaml
208
311
  - spec/api/accounts_spec.rb
209
312
  - spec/api/budgets_spec.rb
210
313
  - spec/api/categories_spec.rb
@@ -249,8 +352,13 @@ files:
249
352
  - spec/fixtures/vcr_cassettes/transactions_unauthorized.yml
250
353
  - spec/fixtures/vcr_cassettes/update_transaction.yml
251
354
  - spec/fixtures/vcr_cassettes/update_transactions.yml
252
- - spec/models/transaction_detail_spec.rb
253
355
  - spec/spec_helper.rb
356
+ - templates/api_client.mustache
357
+ - templates/api_client_typhoeus_partial.mustache
358
+ - templates/api_doc.mustache
359
+ - templates/gem.mustache
360
+ - templates/partial_model_generic_doc.mustache
361
+ - ynab.gemspec
254
362
  homepage: https://github.com/ynab/ynab-sdk-ruby
255
363
  licenses:
256
364
  - Apache-2.0
@@ -263,61 +371,60 @@ required_ruby_version: !ruby/object:Gem::Requirement
263
371
  requirements:
264
372
  - - ">="
265
373
  - !ruby/object:Gem::Version
266
- version: '2.2'
374
+ version: '2.7'
267
375
  required_rubygems_version: !ruby/object:Gem::Requirement
268
376
  requirements:
269
- - - ">="
377
+ - - ">"
270
378
  - !ruby/object:Gem::Version
271
- version: '0'
379
+ version: 1.3.1
272
380
  requirements: []
273
- rubygems_version: 3.4.7
381
+ rubygems_version: 3.1.6
274
382
  signing_key:
275
383
  specification_version: 4
276
384
  summary: YNAB API Endpoints Ruby Gem
277
385
  test_files:
278
- - spec/api/transactions_spec.rb
279
- - spec/api/budgets_spec.rb
280
- - spec/api/payees_spec.rb
281
- - spec/api/months_spec.rb
282
- - spec/api/payee_locations_spec.rb
386
+ - spec/api/scheduled_transactions_spec.rb
283
387
  - spec/api/accounts_spec.rb
284
388
  - spec/api/categories_spec.rb
285
- - spec/api/scheduled_transactions_spec.rb
389
+ - spec/api/payee_locations_spec.rb
390
+ - spec/api/payees_spec.rb
391
+ - spec/api/budgets_spec.rb
392
+ - spec/api/months_spec.rb
393
+ - spec/api/transactions_spec.rb
286
394
  - spec/api_error_spec.rb
287
- - spec/fixtures/vcr_cassettes/create_transaction.yml
288
- - spec/fixtures/vcr_cassettes/bulk_transactions.yml
289
- - spec/fixtures/vcr_cassettes/payees.yml
290
395
  - spec/fixtures/vcr_cassettes/multiple_transactions.yml
291
- - spec/fixtures/vcr_cassettes/transaction.yml
292
- - spec/fixtures/vcr_cassettes/month.yml
293
- - spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml
396
+ - spec/fixtures/vcr_cassettes/payee_transactions.yml
397
+ - spec/fixtures/vcr_cassettes/categories.yml
294
398
  - spec/fixtures/vcr_cassettes/scheduled_transactions.yml
295
- - spec/fixtures/vcr_cassettes/account.yml
296
- - spec/fixtures/vcr_cassettes/transactions.yml
399
+ - spec/fixtures/vcr_cassettes/accounts_unauthorized.yml
297
400
  - spec/fixtures/vcr_cassettes/budget.yml
298
- - spec/fixtures/vcr_cassettes/payee_transactions.yml
299
- - spec/fixtures/vcr_cassettes/payee_location.yml
401
+ - spec/fixtures/vcr_cassettes/scheduled_transaction.yml
402
+ - spec/fixtures/vcr_cassettes/update_transaction.yml
403
+ - spec/fixtures/vcr_cassettes/create_transactions.yml
404
+ - spec/fixtures/vcr_cassettes/payees_unauthorized.yml
405
+ - spec/fixtures/vcr_cassettes/create_transaction.yml
300
406
  - spec/fixtures/vcr_cassettes/budgets.yml
301
- - spec/fixtures/vcr_cassettes/category.yml
302
- - spec/fixtures/vcr_cassettes/payee.yml
303
407
  - spec/fixtures/vcr_cassettes/category_transactions.yml
304
- - spec/fixtures/vcr_cassettes/months.yml
305
- - spec/fixtures/vcr_cassettes/transactions_unauthorized.yml
306
- - spec/fixtures/vcr_cassettes/payee_locations.yml
307
- - spec/fixtures/vcr_cassettes/categories_unauthorized.yml
308
- - spec/fixtures/vcr_cassettes/update_transactions.yml
309
- - spec/fixtures/vcr_cassettes/accounts_unauthorized.yml
408
+ - spec/fixtures/vcr_cassettes/accounts.yml
310
409
  - spec/fixtures/vcr_cassettes/patch_month_category.yml
410
+ - spec/fixtures/vcr_cassettes/payee.yml
411
+ - spec/fixtures/vcr_cassettes/payee_location.yml
412
+ - spec/fixtures/vcr_cassettes/update_transactions.yml
413
+ - spec/fixtures/vcr_cassettes/import_transactions.yml
414
+ - spec/fixtures/vcr_cassettes/bulk_transactions.yml
415
+ - spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml
416
+ - spec/fixtures/vcr_cassettes/payees.yml
311
417
  - spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml
418
+ - spec/fixtures/vcr_cassettes/account.yml
419
+ - spec/fixtures/vcr_cassettes/payee_locations.yml
312
420
  - spec/fixtures/vcr_cassettes/months_unauthorized.yml
313
- - spec/fixtures/vcr_cassettes/create_transactions.yml
314
- - spec/fixtures/vcr_cassettes/accounts.yml
315
- - spec/fixtures/vcr_cassettes/update_transaction.yml
316
- - spec/fixtures/vcr_cassettes/payees_unauthorized.yml
317
- - spec/fixtures/vcr_cassettes/import_transactions.yml
318
- - spec/fixtures/vcr_cassettes/categories.yml
319
- - spec/fixtures/vcr_cassettes/create_account.yml
421
+ - spec/fixtures/vcr_cassettes/months.yml
422
+ - spec/fixtures/vcr_cassettes/category.yml
320
423
  - spec/fixtures/vcr_cassettes/budgets_unauthorized.yml
321
- - spec/fixtures/vcr_cassettes/scheduled_transaction.yml
322
- - spec/models/transaction_detail_spec.rb
424
+ - spec/fixtures/vcr_cassettes/transaction.yml
425
+ - spec/fixtures/vcr_cassettes/transactions.yml
426
+ - spec/fixtures/vcr_cassettes/month.yml
427
+ - spec/fixtures/vcr_cassettes/categories_unauthorized.yml
428
+ - spec/fixtures/vcr_cassettes/transactions_unauthorized.yml
429
+ - spec/fixtures/vcr_cassettes/create_account.yml
323
430
  - spec/spec_helper.rb
@@ -1,175 +0,0 @@
1
- =begin
2
- #YNAB API Endpoints
3
-
4
- #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
5
-
6
- OpenAPI spec version: 1.0.0
7
-
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.14
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module YNAB
16
- class LoanAccountPeriodicValue
17
- # Attribute mapping from ruby-style variable name to JSON key.
18
- def self.attribute_map
19
- {
20
- }
21
- end
22
-
23
- # Attribute type mapping.
24
- def self.swagger_types
25
- {
26
- }
27
- end
28
-
29
- # Initializes the object
30
- # @param [Hash] attributes Model attributes in the form of hash
31
- def initialize(attributes = {})
32
- return unless attributes.is_a?(Hash)
33
-
34
- # convert string to symbol for hash key
35
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
36
- end
37
-
38
- # Show invalid properties with the reasons. Usually used together with valid?
39
- # @return Array for valid properties with the reasons
40
- def list_invalid_properties
41
- invalid_properties = Array.new
42
- invalid_properties
43
- end
44
-
45
- # Check to see if the all the properties in the model are valid
46
- # @return true if the model is valid
47
- def valid?
48
- true
49
- end
50
-
51
- # Checks equality by comparing each attribute.
52
- # @param [Object] Object to be compared
53
- def ==(o)
54
- return true if self.equal?(o)
55
- self.class == o.class
56
- end
57
-
58
- # @see the `==` method
59
- # @param [Object] Object to be compared
60
- def eql?(o)
61
- self == o
62
- end
63
-
64
- # Calculates hash code according to all attributes.
65
- # @return [Fixnum] Hash code
66
- def hash
67
- [].hash
68
- end
69
- # Builds the object from hash
70
- # @param [Hash] attributes Model attributes in the form of hash
71
- # @return [Object] Returns the model itself
72
- def build_from_hash(attributes)
73
- return nil unless attributes.is_a?(Hash)
74
- self.class.swagger_types.each_pair do |key, type|
75
- if type =~ /\AArray<(.*)>/i
76
- # check to ensure the input is an array given that the attribute
77
- # is documented as an array but the input is not
78
- if attributes[self.class.attribute_map[key]].is_a?(Array)
79
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
80
- end
81
- elsif !attributes[self.class.attribute_map[key]].nil?
82
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
83
- end # or else data not found in attributes(hash), not an issue as the data can be optional
84
- end
85
-
86
- self
87
- end
88
-
89
- # Deserializes the data based on type
90
- # @param string type Data type
91
- # @param string value Value to be deserialized
92
- # @return [Object] Deserialized data
93
- def _deserialize(type, value)
94
- case type.to_sym
95
- when :DateTime
96
- DateTime.parse(value)
97
- when :Date
98
- Date.parse(value)
99
- when :String
100
- value.to_s
101
- when :Integer
102
- value.to_i
103
- when :Float
104
- value.to_f
105
- when :BOOLEAN
106
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
107
- true
108
- else
109
- false
110
- end
111
- when :Object
112
- # generic object (usually a Hash), return directly
113
- value
114
- when /\AArray<(?<inner_type>.+)>\z/
115
- inner_type = Regexp.last_match[:inner_type]
116
- value.map { |v| _deserialize(inner_type, v) }
117
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
118
- k_type = Regexp.last_match[:k_type]
119
- v_type = Regexp.last_match[:v_type]
120
- {}.tap do |hash|
121
- value.each do |k, v|
122
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
123
- end
124
- end
125
- else # model
126
- temp_model = YNAB.const_get(type).new
127
- temp_model.build_from_hash(value)
128
- end
129
- end
130
-
131
- # Returns the string representation of the object
132
- # @return [String] String presentation of the object
133
- def to_s
134
- to_hash.to_s
135
- end
136
-
137
- # to_body is an alias to to_hash (backward compatibility)
138
- # @return [Hash] Returns the object in the form of hash
139
- def to_body
140
- to_hash
141
- end
142
-
143
- # Returns the object in the form of hash
144
- # @return [Hash] Returns the object in the form of hash
145
- def to_hash
146
- hash = {}
147
- self.class.attribute_map.each_pair do |attr, param|
148
- value = self.send(attr)
149
- next if value.nil?
150
- hash[param] = _to_hash(value)
151
- end
152
- hash
153
- end
154
-
155
- # Outputs non-array value in the form of hash
156
- # For object, use to_hash. Otherwise, just return the value
157
- # @param [Object] value Any valid value
158
- # @return [Hash] Returns the value in the form of hash
159
- def _to_hash(value)
160
- if value.is_a?(Array)
161
- value.compact.map { |v| _to_hash(v) }
162
- elsif value.is_a?(Hash)
163
- {}.tap do |hash|
164
- value.each { |k, v| hash[k] = _to_hash(v) }
165
- end
166
- elsif value.respond_to? :to_hash
167
- value.to_hash
168
- else
169
- value
170
- end
171
- end
172
-
173
- end
174
-
175
- end