ynab 2.9.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/README.md +51 -43
  2. package/dist/apis/AccountsApi.d.ts +12 -12
  3. package/dist/apis/AccountsApi.js +38 -28
  4. package/dist/apis/CategoriesApi.d.ts +68 -25
  5. package/dist/apis/CategoriesApi.js +176 -46
  6. package/dist/apis/DeprecatedApi.js +17 -7
  7. package/dist/apis/MoneyMovementsApi.d.ts +67 -0
  8. package/dist/apis/MoneyMovementsApi.js +194 -0
  9. package/dist/apis/MonthsApi.d.ts +16 -16
  10. package/dist/apis/MonthsApi.js +38 -28
  11. package/dist/apis/PayeeLocationsApi.d.ts +12 -12
  12. package/dist/apis/PayeeLocationsApi.js +38 -28
  13. package/dist/apis/PayeesApi.d.ts +10 -10
  14. package/dist/apis/PayeesApi.js +36 -26
  15. package/dist/apis/PlansApi.d.ts +53 -0
  16. package/dist/apis/{BudgetsApi.js → PlansApi.js} +50 -40
  17. package/dist/apis/ScheduledTransactionsApi.d.ts +20 -20
  18. package/dist/apis/ScheduledTransactionsApi.js +52 -42
  19. package/dist/apis/TransactionsApi.d.ts +49 -49
  20. package/dist/apis/TransactionsApi.js +99 -89
  21. package/dist/apis/UserApi.d.ts +2 -2
  22. package/dist/apis/UserApi.js +19 -9
  23. package/dist/apis/index.d.ts +2 -1
  24. package/dist/apis/index.js +2 -1
  25. package/dist/browser/ynab.js +1 -1
  26. package/dist/esm/apis/AccountsApi.d.ts +12 -12
  27. package/dist/esm/apis/AccountsApi.js +23 -23
  28. package/dist/esm/apis/CategoriesApi.d.ts +68 -25
  29. package/dist/esm/apis/CategoriesApi.js +228 -42
  30. package/dist/esm/apis/DeprecatedApi.js +2 -2
  31. package/dist/esm/apis/MoneyMovementsApi.d.ts +67 -0
  32. package/dist/esm/apis/MoneyMovementsApi.js +302 -0
  33. package/dist/esm/apis/MonthsApi.d.ts +16 -16
  34. package/dist/esm/apis/MonthsApi.js +23 -23
  35. package/dist/esm/apis/PayeeLocationsApi.d.ts +12 -12
  36. package/dist/esm/apis/PayeeLocationsApi.js +23 -23
  37. package/dist/esm/apis/PayeesApi.d.ts +10 -10
  38. package/dist/esm/apis/PayeesApi.js +21 -21
  39. package/dist/esm/apis/PlansApi.d.ts +53 -0
  40. package/dist/esm/apis/{BudgetsApi.js → PlansApi.js} +38 -38
  41. package/dist/esm/apis/ScheduledTransactionsApi.d.ts +20 -20
  42. package/dist/esm/apis/ScheduledTransactionsApi.js +37 -37
  43. package/dist/esm/apis/TransactionsApi.d.ts +49 -49
  44. package/dist/esm/apis/TransactionsApi.js +84 -84
  45. package/dist/esm/apis/UserApi.d.ts +2 -2
  46. package/dist/esm/apis/UserApi.js +4 -4
  47. package/dist/esm/apis/index.d.ts +2 -1
  48. package/dist/esm/apis/index.js +2 -1
  49. package/dist/esm/index.d.ts +3 -3
  50. package/dist/esm/index.js +5 -5
  51. package/dist/esm/models/Account.d.ts +6 -6
  52. package/dist/esm/models/Category.d.ts +16 -4
  53. package/dist/esm/models/Category.js +4 -0
  54. package/dist/esm/models/CategoryGroupWithCategories.d.ts +1 -1
  55. package/dist/esm/models/CurrencyFormat.d.ts +1 -1
  56. package/dist/esm/models/DateFormat.d.ts +1 -1
  57. package/dist/esm/models/ExistingCategory.d.ts +51 -0
  58. package/dist/esm/models/ExistingCategory.js +45 -0
  59. package/dist/esm/models/ExistingTransaction.d.ts +4 -4
  60. package/dist/esm/models/HybridTransaction.d.ts +12 -12
  61. package/dist/esm/models/MoneyMovement.d.ts +75 -0
  62. package/dist/esm/models/MoneyMovement.js +57 -0
  63. package/dist/esm/models/MoneyMovementGroup.d.ts +51 -0
  64. package/dist/esm/models/MoneyMovementGroup.js +51 -0
  65. package/dist/esm/models/MoneyMovementGroupsResponse.d.ts +28 -0
  66. package/dist/esm/models/MoneyMovementGroupsResponse.js +40 -0
  67. package/dist/esm/models/MoneyMovementGroupsResponseData.d.ts +34 -0
  68. package/dist/esm/models/MoneyMovementGroupsResponseData.js +44 -0
  69. package/dist/esm/models/MoneyMovementsResponse.d.ts +28 -0
  70. package/dist/esm/models/{BudgetSettingsResponse.js → MoneyMovementsResponse.js} +11 -11
  71. package/dist/esm/models/MoneyMovementsResponseData.d.ts +34 -0
  72. package/dist/esm/models/MoneyMovementsResponseData.js +44 -0
  73. package/dist/esm/models/MonthDetail.d.ts +4 -4
  74. package/dist/esm/models/MonthSummary.d.ts +1 -1
  75. package/dist/esm/models/NewCategory.d.ts +51 -0
  76. package/dist/esm/models/NewCategory.js +45 -0
  77. package/dist/esm/models/NewTransaction.d.ts +4 -4
  78. package/dist/esm/models/PatchCategoryGroupWrapper.d.ts +28 -0
  79. package/dist/esm/models/PatchCategoryGroupWrapper.js +40 -0
  80. package/dist/esm/models/PatchCategoryWrapper.d.ts +3 -3
  81. package/dist/esm/models/PatchCategoryWrapper.js +3 -3
  82. package/dist/{models/BudgetDetail.d.ts → esm/models/PlanDetail.d.ts} +30 -30
  83. package/dist/esm/models/{BudgetDetail.js → PlanDetail.js} +8 -8
  84. package/dist/esm/models/PlanDetailResponse.d.ts +28 -0
  85. package/dist/esm/models/PlanDetailResponse.js +40 -0
  86. package/dist/esm/models/PlanDetailResponseData.d.ts +34 -0
  87. package/dist/esm/models/{BudgetDetailResponseData.js → PlanDetailResponseData.js} +11 -11
  88. package/dist/esm/models/PlanSettings.d.ts +35 -0
  89. package/dist/esm/models/{BudgetSettings.js → PlanSettings.js} +8 -8
  90. package/dist/esm/models/PlanSettingsResponse.d.ts +28 -0
  91. package/dist/esm/models/{BudgetDetailResponse.js → PlanSettingsResponse.js} +11 -11
  92. package/dist/esm/models/PlanSettingsResponseData.d.ts +28 -0
  93. package/dist/esm/models/PlanSettingsResponseData.js +40 -0
  94. package/dist/esm/models/PlanSummary.d.ts +72 -0
  95. package/dist/esm/models/{BudgetSummary.js → PlanSummary.js} +8 -8
  96. package/dist/esm/models/PlanSummaryResponse.d.ts +28 -0
  97. package/dist/esm/models/PlanSummaryResponse.js +40 -0
  98. package/dist/esm/models/PlanSummaryResponseData.d.ts +34 -0
  99. package/dist/esm/models/PlanSummaryResponseData.js +42 -0
  100. package/dist/esm/models/PostCategoryGroupWrapper.d.ts +28 -0
  101. package/dist/esm/models/PostCategoryGroupWrapper.js +40 -0
  102. package/dist/esm/models/PostCategoryWrapper.d.ts +28 -0
  103. package/dist/esm/models/PostCategoryWrapper.js +40 -0
  104. package/dist/esm/models/SaveCategory.d.ts +7 -1
  105. package/dist/esm/models/SaveCategory.js +2 -0
  106. package/dist/esm/models/SaveCategoryGroup.d.ts +27 -0
  107. package/dist/esm/models/SaveCategoryGroup.js +39 -0
  108. package/dist/esm/models/SaveCategoryGroupResponse.d.ts +28 -0
  109. package/dist/esm/models/SaveCategoryGroupResponse.js +40 -0
  110. package/dist/esm/models/SaveCategoryGroupResponseData.d.ts +34 -0
  111. package/dist/esm/models/SaveCategoryGroupResponseData.js +44 -0
  112. package/dist/esm/models/SaveMonthCategory.d.ts +1 -1
  113. package/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
  114. package/dist/esm/models/ScheduledTransactionDetail.d.ts +6 -6
  115. package/dist/esm/models/ScheduledTransactionSummary.d.ts +1 -1
  116. package/dist/esm/models/TransactionDetail.d.ts +11 -11
  117. package/dist/esm/models/TransactionFlagColor.d.ts +1 -0
  118. package/dist/esm/models/TransactionFlagColor.js +2 -1
  119. package/dist/esm/models/TransactionResponseData.d.ts +6 -0
  120. package/dist/esm/models/TransactionResponseData.js +4 -0
  121. package/dist/esm/models/TransactionSummary.d.ts +1 -1
  122. package/dist/esm/models/index.d.ts +23 -9
  123. package/dist/esm/models/index.js +23 -9
  124. package/dist/esm/runtime.js +3 -3
  125. package/dist/index.d.ts +3 -3
  126. package/dist/index.js +22 -12
  127. package/dist/models/Account.d.ts +6 -6
  128. package/dist/models/Account.js +5 -6
  129. package/dist/models/AccountResponse.js +5 -6
  130. package/dist/models/AccountResponseData.js +5 -6
  131. package/dist/models/AccountType.js +6 -6
  132. package/dist/models/AccountsResponse.js +5 -6
  133. package/dist/models/AccountsResponseData.js +5 -6
  134. package/dist/models/BulkResponse.js +5 -6
  135. package/dist/models/BulkResponseData.js +5 -6
  136. package/dist/models/BulkResponseDataBulk.js +5 -6
  137. package/dist/models/BulkTransactions.js +5 -6
  138. package/dist/models/CategoriesResponse.js +5 -6
  139. package/dist/models/CategoriesResponseData.js +5 -6
  140. package/dist/models/Category.d.ts +16 -4
  141. package/dist/models/Category.js +10 -6
  142. package/dist/models/CategoryGoalType.js +4 -5
  143. package/dist/models/CategoryGroup.js +5 -6
  144. package/dist/models/CategoryGroupWithCategories.d.ts +1 -1
  145. package/dist/models/CategoryGroupWithCategories.js +5 -6
  146. package/dist/models/CategoryGroupWithCategoriesAllOf.js +4 -5
  147. package/dist/models/CategoryResponse.js +5 -6
  148. package/dist/models/CategoryResponseData.js +5 -6
  149. package/dist/models/CurrencyFormat.d.ts +1 -1
  150. package/dist/models/CurrencyFormat.js +5 -6
  151. package/dist/models/DateFormat.d.ts +1 -1
  152. package/dist/models/DateFormat.js +5 -6
  153. package/dist/models/ErrorDetail.js +5 -6
  154. package/dist/models/ErrorResponse.js +5 -6
  155. package/dist/models/ExistingCategory.d.ts +51 -0
  156. package/dist/models/ExistingCategory.js +51 -0
  157. package/dist/models/ExistingTransaction.d.ts +4 -4
  158. package/dist/models/ExistingTransaction.js +5 -6
  159. package/dist/models/HybridTransaction.d.ts +12 -12
  160. package/dist/models/HybridTransaction.js +6 -6
  161. package/dist/models/HybridTransactionAllOf.js +5 -5
  162. package/dist/models/HybridTransactionsResponse.js +5 -6
  163. package/dist/models/HybridTransactionsResponseData.js +5 -6
  164. package/dist/models/MoneyMovement.d.ts +75 -0
  165. package/dist/models/MoneyMovement.js +63 -0
  166. package/dist/models/MoneyMovementGroup.d.ts +51 -0
  167. package/dist/models/MoneyMovementGroup.js +57 -0
  168. package/dist/models/MoneyMovementGroupsResponse.d.ts +28 -0
  169. package/dist/models/MoneyMovementGroupsResponse.js +46 -0
  170. package/dist/models/MoneyMovementGroupsResponseData.d.ts +34 -0
  171. package/dist/models/MoneyMovementGroupsResponseData.js +50 -0
  172. package/dist/models/MoneyMovementsResponse.d.ts +28 -0
  173. package/dist/models/MoneyMovementsResponse.js +46 -0
  174. package/dist/models/MoneyMovementsResponseData.d.ts +34 -0
  175. package/dist/models/MoneyMovementsResponseData.js +50 -0
  176. package/dist/models/MonthDetail.d.ts +4 -4
  177. package/dist/models/MonthDetail.js +5 -6
  178. package/dist/models/MonthDetailAllOf.js +4 -5
  179. package/dist/models/MonthDetailResponse.js +5 -6
  180. package/dist/models/MonthDetailResponseData.js +5 -6
  181. package/dist/models/MonthSummariesResponse.js +5 -6
  182. package/dist/models/MonthSummariesResponseData.js +5 -6
  183. package/dist/models/MonthSummary.d.ts +1 -1
  184. package/dist/models/MonthSummary.js +5 -6
  185. package/dist/models/NewCategory.d.ts +51 -0
  186. package/dist/models/NewCategory.js +51 -0
  187. package/dist/models/NewTransaction.d.ts +4 -4
  188. package/dist/models/NewTransaction.js +5 -6
  189. package/dist/models/PatchCategoryGroupWrapper.d.ts +28 -0
  190. package/dist/models/PatchCategoryGroupWrapper.js +46 -0
  191. package/dist/models/PatchCategoryWrapper.d.ts +3 -3
  192. package/dist/models/PatchCategoryWrapper.js +8 -9
  193. package/dist/models/PatchMonthCategoryWrapper.js +5 -6
  194. package/dist/models/PatchPayeeWrapper.js +5 -6
  195. package/dist/models/PatchTransactionsWrapper.js +5 -6
  196. package/dist/models/Payee.js +5 -6
  197. package/dist/models/PayeeLocation.js +5 -6
  198. package/dist/models/PayeeLocationResponse.js +5 -6
  199. package/dist/models/PayeeLocationResponseData.js +5 -6
  200. package/dist/models/PayeeLocationsResponse.js +5 -6
  201. package/dist/models/PayeeLocationsResponseData.js +5 -6
  202. package/dist/models/PayeeResponse.js +5 -6
  203. package/dist/models/PayeeResponseData.js +5 -6
  204. package/dist/models/PayeesResponse.js +5 -6
  205. package/dist/models/PayeesResponseData.js +5 -6
  206. package/dist/{esm/models/BudgetDetail.d.ts → models/PlanDetail.d.ts} +30 -30
  207. package/dist/models/{BudgetDetail.js → PlanDetail.js} +13 -14
  208. package/dist/models/PlanDetailResponse.d.ts +28 -0
  209. package/dist/models/PlanDetailResponse.js +46 -0
  210. package/dist/models/PlanDetailResponseData.d.ts +34 -0
  211. package/dist/models/PlanDetailResponseData.js +50 -0
  212. package/dist/models/PlanSettings.d.ts +35 -0
  213. package/dist/models/{BudgetSettings.js → PlanSettings.js} +13 -14
  214. package/dist/models/PlanSettingsResponse.d.ts +28 -0
  215. package/dist/models/PlanSettingsResponse.js +46 -0
  216. package/dist/models/PlanSettingsResponseData.d.ts +28 -0
  217. package/dist/models/PlanSettingsResponseData.js +46 -0
  218. package/dist/models/PlanSummary.d.ts +72 -0
  219. package/dist/models/{BudgetSummary.js → PlanSummary.js} +13 -14
  220. package/dist/models/PlanSummaryResponse.d.ts +28 -0
  221. package/dist/models/PlanSummaryResponse.js +46 -0
  222. package/dist/models/PlanSummaryResponseData.d.ts +34 -0
  223. package/dist/models/PlanSummaryResponseData.js +48 -0
  224. package/dist/models/PostAccountWrapper.js +5 -6
  225. package/dist/models/PostCategoryGroupWrapper.d.ts +28 -0
  226. package/dist/models/PostCategoryGroupWrapper.js +46 -0
  227. package/dist/models/PostCategoryWrapper.d.ts +28 -0
  228. package/dist/models/PostCategoryWrapper.js +46 -0
  229. package/dist/models/PostScheduledTransactionWrapper.js +5 -6
  230. package/dist/models/PostTransactionsWrapper.js +5 -6
  231. package/dist/models/PutScheduledTransactionWrapper.js +5 -6
  232. package/dist/models/PutTransactionWrapper.js +5 -6
  233. package/dist/models/SaveAccount.js +5 -6
  234. package/dist/models/SaveCategory.d.ts +7 -1
  235. package/dist/models/SaveCategory.js +7 -6
  236. package/dist/models/SaveCategoryGroup.d.ts +27 -0
  237. package/dist/models/SaveCategoryGroup.js +45 -0
  238. package/dist/models/SaveCategoryGroupResponse.d.ts +28 -0
  239. package/dist/models/SaveCategoryGroupResponse.js +46 -0
  240. package/dist/models/SaveCategoryGroupResponseData.d.ts +34 -0
  241. package/dist/models/SaveCategoryGroupResponseData.js +50 -0
  242. package/dist/models/SaveCategoryResponse.js +5 -6
  243. package/dist/models/SaveCategoryResponseData.js +5 -6
  244. package/dist/models/SaveMonthCategory.d.ts +1 -1
  245. package/dist/models/SaveMonthCategory.js +5 -6
  246. package/dist/models/SavePayee.js +5 -6
  247. package/dist/models/SavePayeeResponse.js +5 -6
  248. package/dist/models/SavePayeeResponseData.js +5 -6
  249. package/dist/models/SaveScheduledTransaction.js +5 -6
  250. package/dist/models/SaveSubTransaction.js +5 -6
  251. package/dist/models/SaveTransaction.js +4 -5
  252. package/dist/models/SaveTransactionWithId.js +4 -5
  253. package/dist/models/SaveTransactionWithIdAllOf.js +4 -5
  254. package/dist/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
  255. package/dist/models/SaveTransactionWithIdOrImportId.js +5 -6
  256. package/dist/models/SaveTransactionWithOptionalFields.js +5 -6
  257. package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.js +4 -5
  258. package/dist/models/SaveTransactionsResponse.js +5 -6
  259. package/dist/models/SaveTransactionsResponseData.js +5 -6
  260. package/dist/models/ScheduledSubTransaction.js +5 -6
  261. package/dist/models/ScheduledTransactionDetail.d.ts +6 -6
  262. package/dist/models/ScheduledTransactionDetail.js +6 -6
  263. package/dist/models/ScheduledTransactionDetailAllOf.js +4 -5
  264. package/dist/models/ScheduledTransactionFrequency.js +6 -6
  265. package/dist/models/ScheduledTransactionResponse.js +5 -6
  266. package/dist/models/ScheduledTransactionResponseData.js +5 -6
  267. package/dist/models/ScheduledTransactionSummary.d.ts +1 -1
  268. package/dist/models/ScheduledTransactionSummary.js +6 -6
  269. package/dist/models/ScheduledTransactionSummaryFlagColor.js +4 -5
  270. package/dist/models/ScheduledTransactionsResponse.js +5 -6
  271. package/dist/models/ScheduledTransactionsResponseData.js +5 -6
  272. package/dist/models/SubTransaction.js +5 -6
  273. package/dist/models/TransactionClearedStatus.js +6 -6
  274. package/dist/models/TransactionDetail.d.ts +11 -11
  275. package/dist/models/TransactionDetail.js +6 -6
  276. package/dist/models/TransactionDetailAllOf.js +4 -5
  277. package/dist/models/TransactionFlagColor.d.ts +1 -0
  278. package/dist/models/TransactionFlagColor.js +8 -7
  279. package/dist/models/TransactionResponse.js +5 -6
  280. package/dist/models/TransactionResponseData.d.ts +6 -0
  281. package/dist/models/TransactionResponseData.js +9 -6
  282. package/dist/models/TransactionSummary.d.ts +1 -1
  283. package/dist/models/TransactionSummary.js +6 -6
  284. package/dist/models/TransactionSummaryDebtTransactionType.js +4 -5
  285. package/dist/models/TransactionsImportResponse.js +5 -6
  286. package/dist/models/TransactionsImportResponseData.js +5 -6
  287. package/dist/models/TransactionsResponse.js +5 -6
  288. package/dist/models/TransactionsResponseData.js +5 -6
  289. package/dist/models/User.js +5 -6
  290. package/dist/models/UserResponse.js +5 -6
  291. package/dist/models/UserResponseData.js +5 -6
  292. package/dist/models/index.d.ts +23 -9
  293. package/dist/models/index.js +23 -9
  294. package/dist/runtime.js +5 -5
  295. package/package.json +7 -8
  296. package/dist/apis/BudgetsApi.d.ts +0 -53
  297. package/dist/esm/apis/BudgetsApi.d.ts +0 -53
  298. package/dist/esm/models/BudgetDetailAllOf.d.ts +0 -95
  299. package/dist/esm/models/BudgetDetailAllOf.js +0 -71
  300. package/dist/esm/models/BudgetDetailResponse.d.ts +0 -28
  301. package/dist/esm/models/BudgetDetailResponseData.d.ts +0 -34
  302. package/dist/esm/models/BudgetSettings.d.ts +0 -35
  303. package/dist/esm/models/BudgetSettingsResponse.d.ts +0 -28
  304. package/dist/esm/models/BudgetSettingsResponseData.d.ts +0 -28
  305. package/dist/esm/models/BudgetSettingsResponseData.js +0 -40
  306. package/dist/esm/models/BudgetSummary.d.ts +0 -72
  307. package/dist/esm/models/BudgetSummaryResponse.d.ts +0 -28
  308. package/dist/esm/models/BudgetSummaryResponse.js +0 -40
  309. package/dist/esm/models/BudgetSummaryResponseData.d.ts +0 -34
  310. package/dist/esm/models/BudgetSummaryResponseData.js +0 -42
  311. package/dist/models/BudgetDetailAllOf.d.ts +0 -95
  312. package/dist/models/BudgetDetailAllOf.js +0 -78
  313. package/dist/models/BudgetDetailResponse.d.ts +0 -28
  314. package/dist/models/BudgetDetailResponse.js +0 -47
  315. package/dist/models/BudgetDetailResponseData.d.ts +0 -34
  316. package/dist/models/BudgetDetailResponseData.js +0 -51
  317. package/dist/models/BudgetSettings.d.ts +0 -35
  318. package/dist/models/BudgetSettingsResponse.d.ts +0 -28
  319. package/dist/models/BudgetSettingsResponse.js +0 -47
  320. package/dist/models/BudgetSettingsResponseData.d.ts +0 -28
  321. package/dist/models/BudgetSettingsResponseData.js +0 -47
  322. package/dist/models/BudgetSummary.d.ts +0 -72
  323. package/dist/models/BudgetSummaryResponse.d.ts +0 -28
  324. package/dist/models/BudgetSummaryResponse.js +0 -47
  325. package/dist/models/BudgetSummaryResponseData.d.ts +0 -34
  326. package/dist/models/BudgetSummaryResponseData.js +0 -49
package/dist/esm/index.js CHANGED
@@ -35,15 +35,15 @@ var api = /** @class */ (function () {
35
35
  enumerable: false,
36
36
  configurable: true
37
37
  });
38
- Object.defineProperty(api.prototype, "budgets", {
38
+ Object.defineProperty(api.prototype, "plans", {
39
39
  /**
40
- * /budgets endpoints interface
40
+ * /plans endpoints interface
41
41
  */
42
42
  get: function () {
43
- if (!this._budgets) {
44
- this._budgets = new apis.BudgetsApi(this._configuration);
43
+ if (!this._plans) {
44
+ this._plans = new apis.PlansApi(this._configuration);
45
45
  }
46
- return this._budgets;
46
+ return this._plans;
47
47
  },
48
48
  enumerable: false,
49
49
  configurable: true
@@ -30,7 +30,7 @@ export interface Account {
30
30
  */
31
31
  type: AccountType;
32
32
  /**
33
- * Whether this account is on budget or not
33
+ * Whether this account is "on budget" or not
34
34
  * @type {boolean}
35
35
  * @memberof Account
36
36
  */
@@ -48,7 +48,7 @@ export interface Account {
48
48
  */
49
49
  note?: string | null;
50
50
  /**
51
- * The current balance of the account in milliunits format
51
+ * The current available balance of the account in milliunits format
52
52
  * @type {number}
53
53
  * @memberof Account
54
54
  */
@@ -90,7 +90,7 @@ export interface Account {
90
90
  */
91
91
  last_reconciled_at?: string | null;
92
92
  /**
93
- * The original debt/loan account balance, specified in milliunits format.
93
+ * This field is deprecated and will always be null.
94
94
  * @type {number}
95
95
  * @memberof Account
96
96
  */
@@ -102,7 +102,7 @@ export interface Account {
102
102
  */
103
103
  debt_interest_rates?: {
104
104
  [key: string]: number;
105
- } | null;
105
+ };
106
106
  /**
107
107
  *
108
108
  * @type {{ [key: string]: number; }}
@@ -110,7 +110,7 @@ export interface Account {
110
110
  */
111
111
  debt_minimum_payments?: {
112
112
  [key: string]: number;
113
- } | null;
113
+ };
114
114
  /**
115
115
  *
116
116
  * @type {{ [key: string]: number; }}
@@ -118,7 +118,7 @@ export interface Account {
118
118
  */
119
119
  debt_escrow_amounts?: {
120
120
  [key: string]: number;
121
- } | null;
121
+ };
122
122
  /**
123
123
  * Whether or not the account has been deleted. Deleted accounts will only be included in delta requests.
124
124
  * @type {boolean}
@@ -53,7 +53,7 @@ export interface Category {
53
53
  */
54
54
  note?: string | null;
55
55
  /**
56
- * Budgeted amount in milliunits format
56
+ * Assigned (budgeted) amount in milliunits format
57
57
  * @type {number}
58
58
  * @memberof Category
59
59
  */
@@ -65,14 +65,14 @@ export interface Category {
65
65
  */
66
66
  activity: number;
67
67
  /**
68
- * Balance in milliunits format
68
+ * Available balance in milliunits format
69
69
  * @type {number}
70
70
  * @memberof Category
71
71
  */
72
72
  balance: number;
73
73
  /**
74
74
  * The type of goal, if the category has a goal (TB='Target Category Balance', TBD='Target Category Balance by Date', MF='Monthly Funding', NEED='Plan Your Spending')
75
- * @type {string}
75
+ * @type {CategoryGoalTypeEnum}
76
76
  * @memberof Category
77
77
  */
78
78
  goal_type?: CategoryGoalTypeEnum | null;
@@ -113,11 +113,17 @@ export interface Category {
113
113
  */
114
114
  goal_target?: number | null;
115
115
  /**
116
- * The original target month for the goal to be completed. Only some goal types specify this date.
116
+ * DEPRECATED: No longer used. Use `goal_target_date` instead.
117
117
  * @type {string}
118
118
  * @memberof Category
119
119
  */
120
120
  goal_target_month?: string | null;
121
+ /**
122
+ * The target date for the goal to be completed. Only some goal types specify this date.
123
+ * @type {string}
124
+ * @memberof Category
125
+ */
126
+ goal_target_date?: string | null;
121
127
  /**
122
128
  * The percentage completion of the goal
123
129
  * @type {number}
@@ -148,6 +154,12 @@ export interface Category {
148
154
  * @memberof Category
149
155
  */
150
156
  goal_overall_left?: number | null;
157
+ /**
158
+ * The date/time the goal was snoozed. If the goal is not snoozed, this will be null.
159
+ * @type {string}
160
+ * @memberof Category
161
+ */
162
+ goal_snoozed_at?: string | null;
151
163
  /**
152
164
  * Whether or not the category has been deleted. Deleted categories will only be included in delta requests.
153
165
  * @type {boolean}
@@ -64,11 +64,13 @@ export function CategoryFromJSONTyped(json, ignoreDiscriminator) {
64
64
  'goal_creation_month': json['goal_creation_month'] == null ? undefined : json['goal_creation_month'],
65
65
  'goal_target': json['goal_target'] == null ? undefined : json['goal_target'],
66
66
  'goal_target_month': json['goal_target_month'] == null ? undefined : json['goal_target_month'],
67
+ 'goal_target_date': json['goal_target_date'] == null ? undefined : json['goal_target_date'],
67
68
  'goal_percentage_complete': json['goal_percentage_complete'] == null ? undefined : json['goal_percentage_complete'],
68
69
  'goal_months_to_budget': json['goal_months_to_budget'] == null ? undefined : json['goal_months_to_budget'],
69
70
  'goal_under_funded': json['goal_under_funded'] == null ? undefined : json['goal_under_funded'],
70
71
  'goal_overall_funded': json['goal_overall_funded'] == null ? undefined : json['goal_overall_funded'],
71
72
  'goal_overall_left': json['goal_overall_left'] == null ? undefined : json['goal_overall_left'],
73
+ 'goal_snoozed_at': json['goal_snoozed_at'] == null ? undefined : json['goal_snoozed_at'],
72
74
  'deleted': json['deleted'],
73
75
  };
74
76
  }
@@ -99,11 +101,13 @@ export function CategoryToJSONTyped(value, ignoreDiscriminator) {
99
101
  'goal_creation_month': value['goal_creation_month'],
100
102
  'goal_target': value['goal_target'],
101
103
  'goal_target_month': value['goal_target_month'],
104
+ 'goal_target_date': value['goal_target_date'],
102
105
  'goal_percentage_complete': value['goal_percentage_complete'],
103
106
  'goal_months_to_budget': value['goal_months_to_budget'],
104
107
  'goal_under_funded': value['goal_under_funded'],
105
108
  'goal_overall_funded': value['goal_overall_funded'],
106
109
  'goal_overall_left': value['goal_overall_left'],
110
+ 'goal_snoozed_at': value['goal_snoozed_at'],
107
111
  'deleted': value['deleted'],
108
112
  };
109
113
  }
@@ -36,7 +36,7 @@ export interface CategoryGroupWithCategories {
36
36
  */
37
37
  deleted: boolean;
38
38
  /**
39
- * Category group categories. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
39
+ * Category group categories. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).
40
40
  * @type {Array<Category>}
41
41
  * @memberof CategoryGroupWithCategories
42
42
  */
@@ -5,7 +5,7 @@
5
5
  * Generated by: OpenAPI Generator (https://openapi-generator.tech)
6
6
  */
7
7
  /**
8
- * The currency format setting for the budget. In some cases the format will not be available and will be specified as null.
8
+ * The currency format setting for the plan. In some cases the format will not be available and will be specified as null.
9
9
  * @export
10
10
  * @interface CurrencyFormat
11
11
  */
@@ -5,7 +5,7 @@
5
5
  * Generated by: OpenAPI Generator (https://openapi-generator.tech)
6
6
  */
7
7
  /**
8
- * The date format setting for the budget. In some cases the format will not be available and will be specified as null.
8
+ * The date format setting for the plan. In some cases the format will not be available and will be specified as null.
9
9
  * @export
10
10
  * @interface DateFormat
11
11
  */
@@ -0,0 +1,51 @@
1
+ /**
2
+ * YNAB API Endpoints
3
+ * 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.ynab.com
4
+ *
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
6
+ */
7
+ /**
8
+ *
9
+ * @export
10
+ * @interface ExistingCategory
11
+ */
12
+ export interface ExistingCategory {
13
+ /**
14
+ *
15
+ * @type {string}
16
+ * @memberof ExistingCategory
17
+ */
18
+ name?: string;
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ExistingCategory
23
+ */
24
+ note?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ExistingCategory
29
+ */
30
+ category_group_id?: string;
31
+ /**
32
+ * The goal target amount in milliunits format. If value is specified and goal has not already been configured for category, a monthly 'Needed for Spending' goal will be created for the category with this target amount.
33
+ * @type {number}
34
+ * @memberof ExistingCategory
35
+ */
36
+ goal_target?: number;
37
+ /**
38
+ * The goal target date in ISO format (e.g. 2016-12-01).
39
+ * @type {string}
40
+ * @memberof ExistingCategory
41
+ */
42
+ goal_target_date?: string;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ExistingCategory interface.
46
+ */
47
+ export declare function instanceOfExistingCategory(value: object): value is ExistingCategory;
48
+ export declare function ExistingCategoryFromJSON(json: any): ExistingCategory;
49
+ export declare function ExistingCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExistingCategory;
50
+ export declare function ExistingCategoryToJSON(json: any): ExistingCategory;
51
+ export declare function ExistingCategoryToJSONTyped(value?: ExistingCategory | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * YNAB API Endpoints
5
+ * 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.ynab.com
6
+ *
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
8
+ */
9
+ /**
10
+ * Check if a given object implements the ExistingCategory interface.
11
+ */
12
+ export function instanceOfExistingCategory(value) {
13
+ return true;
14
+ }
15
+ export function ExistingCategoryFromJSON(json) {
16
+ return ExistingCategoryFromJSONTyped(json, false);
17
+ }
18
+ export function ExistingCategoryFromJSONTyped(json, ignoreDiscriminator) {
19
+ if (json == null) {
20
+ return json;
21
+ }
22
+ return {
23
+ 'name': json['name'] == null ? undefined : json['name'],
24
+ 'note': json['note'] == null ? undefined : json['note'],
25
+ 'category_group_id': json['category_group_id'] == null ? undefined : json['category_group_id'],
26
+ 'goal_target': json['goal_target'] == null ? undefined : json['goal_target'],
27
+ 'goal_target_date': json['goal_target_date'] == null ? undefined : json['goal_target_date'],
28
+ };
29
+ }
30
+ export function ExistingCategoryToJSON(json) {
31
+ return ExistingCategoryToJSONTyped(json, false);
32
+ }
33
+ export function ExistingCategoryToJSONTyped(value, ignoreDiscriminator) {
34
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'name': value['name'],
40
+ 'note': value['note'],
41
+ 'category_group_id': value['category_group_id'],
42
+ 'goal_target': value['goal_target'],
43
+ 'goal_target_date': value['goal_target_date'],
44
+ };
45
+ }
@@ -36,25 +36,25 @@ export interface ExistingTransaction {
36
36
  * @type {string}
37
37
  * @memberof ExistingTransaction
38
38
  */
39
- payee_id?: string | null;
39
+ payee_id?: string;
40
40
  /**
41
41
  * The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee.
42
42
  * @type {string}
43
43
  * @memberof ExistingTransaction
44
44
  */
45
- payee_name?: string | null;
45
+ payee_name?: string;
46
46
  /**
47
47
  * The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied.
48
48
  * @type {string}
49
49
  * @memberof ExistingTransaction
50
50
  */
51
- category_id?: string | null;
51
+ category_id?: string;
52
52
  /**
53
53
  *
54
54
  * @type {string}
55
55
  * @memberof ExistingTransaction
56
56
  */
57
- memo?: string | null;
57
+ memo?: string;
58
58
  /**
59
59
  *
60
60
  * @type {TransactionClearedStatus}
@@ -35,7 +35,7 @@ export interface HybridTransaction {
35
35
  * @type {string}
36
36
  * @memberof HybridTransaction
37
37
  */
38
- memo?: string | null;
38
+ memo?: string;
39
39
  /**
40
40
  *
41
41
  * @type {TransactionClearedStatus}
@@ -59,7 +59,7 @@ export interface HybridTransaction {
59
59
  * @type {string}
60
60
  * @memberof HybridTransaction
61
61
  */
62
- flag_name?: string | null;
62
+ flag_name?: string;
63
63
  /**
64
64
  *
65
65
  * @type {string}
@@ -71,52 +71,52 @@ export interface HybridTransaction {
71
71
  * @type {string}
72
72
  * @memberof HybridTransaction
73
73
  */
74
- payee_id?: string | null;
74
+ payee_id?: string;
75
75
  /**
76
76
  *
77
77
  * @type {string}
78
78
  * @memberof HybridTransaction
79
79
  */
80
- category_id?: string | null;
80
+ category_id?: string;
81
81
  /**
82
82
  * If a transfer transaction, the account to which it transfers
83
83
  * @type {string}
84
84
  * @memberof HybridTransaction
85
85
  */
86
- transfer_account_id?: string | null;
86
+ transfer_account_id?: string;
87
87
  /**
88
88
  * If a transfer transaction, the id of transaction on the other side of the transfer
89
89
  * @type {string}
90
90
  * @memberof HybridTransaction
91
91
  */
92
- transfer_transaction_id?: string | null;
92
+ transfer_transaction_id?: string;
93
93
  /**
94
94
  * If transaction is matched, the id of the matched transaction
95
95
  * @type {string}
96
96
  * @memberof HybridTransaction
97
97
  */
98
- matched_transaction_id?: string | null;
98
+ matched_transaction_id?: string;
99
99
  /**
100
100
  * If the transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'.
101
101
  * @type {string}
102
102
  * @memberof HybridTransaction
103
103
  */
104
- import_id?: string | null;
104
+ import_id?: string;
105
105
  /**
106
106
  * If the transaction was imported, the payee name that was used when importing and before applying any payee rename rules
107
107
  * @type {string}
108
108
  * @memberof HybridTransaction
109
109
  */
110
- import_payee_name?: string | null;
110
+ import_payee_name?: string;
111
111
  /**
112
112
  * If the transaction was imported, the original payee name as it appeared on the statement
113
113
  * @type {string}
114
114
  * @memberof HybridTransaction
115
115
  */
116
- import_payee_name_original?: string | null;
116
+ import_payee_name_original?: string;
117
117
  /**
118
118
  * If the transaction is a debt/loan account transaction, the type of transaction
119
- * @type {string}
119
+ * @type {HybridTransactionDebtTransactionTypeEnum}
120
120
  * @memberof HybridTransaction
121
121
  */
122
122
  debt_transaction_type?: HybridTransactionDebtTransactionTypeEnum | null;
@@ -128,7 +128,7 @@ export interface HybridTransaction {
128
128
  deleted: boolean;
129
129
  /**
130
130
  * Whether the hybrid transaction represents a regular transaction or a subtransaction
131
- * @type {string}
131
+ * @type {HybridTransactionTypeEnum}
132
132
  * @memberof HybridTransaction
133
133
  */
134
134
  type: HybridTransactionTypeEnum;
@@ -0,0 +1,75 @@
1
+ /**
2
+ * YNAB API Endpoints
3
+ * 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.ynab.com
4
+ *
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
6
+ */
7
+ /**
8
+ *
9
+ * @export
10
+ * @interface MoneyMovement
11
+ */
12
+ export interface MoneyMovement {
13
+ /**
14
+ *
15
+ * @type {string}
16
+ * @memberof MoneyMovement
17
+ */
18
+ id: string;
19
+ /**
20
+ * The month of the money movement in ISO format (e.g. 2024-01-01)
21
+ * @type {string}
22
+ * @memberof MoneyMovement
23
+ */
24
+ month?: string | null;
25
+ /**
26
+ * The date/time the money movement was processed on the server in ISO format (e.g. 2024-01-01T12:00:00Z)
27
+ * @type {string}
28
+ * @memberof MoneyMovement
29
+ */
30
+ moved_at?: string | null;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof MoneyMovement
35
+ */
36
+ note?: string | null;
37
+ /**
38
+ * The id of the money movement group this movement belongs to
39
+ * @type {string}
40
+ * @memberof MoneyMovement
41
+ */
42
+ money_movement_group_id?: string | null;
43
+ /**
44
+ * The id of the user who performed the money movement
45
+ * @type {string}
46
+ * @memberof MoneyMovement
47
+ */
48
+ performed_by_user_id?: string | null;
49
+ /**
50
+ * The id of the category the money was moved from
51
+ * @type {string}
52
+ * @memberof MoneyMovement
53
+ */
54
+ from_category_id?: string | null;
55
+ /**
56
+ * The id of the category the money was moved to
57
+ * @type {string}
58
+ * @memberof MoneyMovement
59
+ */
60
+ to_category_id?: string | null;
61
+ /**
62
+ * The amount of the money movement in milliunits format
63
+ * @type {number}
64
+ * @memberof MoneyMovement
65
+ */
66
+ amount: number;
67
+ }
68
+ /**
69
+ * Check if a given object implements the MoneyMovement interface.
70
+ */
71
+ export declare function instanceOfMoneyMovement(value: object): value is MoneyMovement;
72
+ export declare function MoneyMovementFromJSON(json: any): MoneyMovement;
73
+ export declare function MoneyMovementFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMovement;
74
+ export declare function MoneyMovementToJSON(json: any): MoneyMovement;
75
+ export declare function MoneyMovementToJSONTyped(value?: MoneyMovement | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * YNAB API Endpoints
5
+ * 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.ynab.com
6
+ *
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
8
+ */
9
+ /**
10
+ * Check if a given object implements the MoneyMovement interface.
11
+ */
12
+ export function instanceOfMoneyMovement(value) {
13
+ if (!('id' in value) || value['id'] === undefined)
14
+ return false;
15
+ if (!('amount' in value) || value['amount'] === undefined)
16
+ return false;
17
+ return true;
18
+ }
19
+ export function MoneyMovementFromJSON(json) {
20
+ return MoneyMovementFromJSONTyped(json, false);
21
+ }
22
+ export function MoneyMovementFromJSONTyped(json, ignoreDiscriminator) {
23
+ if (json == null) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'id': json['id'],
28
+ 'month': json['month'] == null ? undefined : json['month'],
29
+ 'moved_at': json['moved_at'] == null ? undefined : json['moved_at'],
30
+ 'note': json['note'] == null ? undefined : json['note'],
31
+ 'money_movement_group_id': json['money_movement_group_id'] == null ? undefined : json['money_movement_group_id'],
32
+ 'performed_by_user_id': json['performed_by_user_id'] == null ? undefined : json['performed_by_user_id'],
33
+ 'from_category_id': json['from_category_id'] == null ? undefined : json['from_category_id'],
34
+ 'to_category_id': json['to_category_id'] == null ? undefined : json['to_category_id'],
35
+ 'amount': json['amount'],
36
+ };
37
+ }
38
+ export function MoneyMovementToJSON(json) {
39
+ return MoneyMovementToJSONTyped(json, false);
40
+ }
41
+ export function MoneyMovementToJSONTyped(value, ignoreDiscriminator) {
42
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'id': value['id'],
48
+ 'month': value['month'],
49
+ 'moved_at': value['moved_at'],
50
+ 'note': value['note'],
51
+ 'money_movement_group_id': value['money_movement_group_id'],
52
+ 'performed_by_user_id': value['performed_by_user_id'],
53
+ 'from_category_id': value['from_category_id'],
54
+ 'to_category_id': value['to_category_id'],
55
+ 'amount': value['amount'],
56
+ };
57
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * YNAB API Endpoints
3
+ * 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.ynab.com
4
+ *
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
6
+ */
7
+ /**
8
+ *
9
+ * @export
10
+ * @interface MoneyMovementGroup
11
+ */
12
+ export interface MoneyMovementGroup {
13
+ /**
14
+ *
15
+ * @type {string}
16
+ * @memberof MoneyMovementGroup
17
+ */
18
+ id: string;
19
+ /**
20
+ * When the money movement group was created
21
+ * @type {string}
22
+ * @memberof MoneyMovementGroup
23
+ */
24
+ group_created_at: string;
25
+ /**
26
+ * The month of the money movement group in ISO format (e.g. 2024-01-01)
27
+ * @type {string}
28
+ * @memberof MoneyMovementGroup
29
+ */
30
+ month: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof MoneyMovementGroup
35
+ */
36
+ note?: string | null;
37
+ /**
38
+ * The id of the user who performed the money movement group
39
+ * @type {string}
40
+ * @memberof MoneyMovementGroup
41
+ */
42
+ performed_by_user_id?: string | null;
43
+ }
44
+ /**
45
+ * Check if a given object implements the MoneyMovementGroup interface.
46
+ */
47
+ export declare function instanceOfMoneyMovementGroup(value: object): value is MoneyMovementGroup;
48
+ export declare function MoneyMovementGroupFromJSON(json: any): MoneyMovementGroup;
49
+ export declare function MoneyMovementGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMovementGroup;
50
+ export declare function MoneyMovementGroupToJSON(json: any): MoneyMovementGroup;
51
+ export declare function MoneyMovementGroupToJSONTyped(value?: MoneyMovementGroup | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * YNAB API Endpoints
5
+ * 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.ynab.com
6
+ *
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
8
+ */
9
+ /**
10
+ * Check if a given object implements the MoneyMovementGroup interface.
11
+ */
12
+ export function instanceOfMoneyMovementGroup(value) {
13
+ if (!('id' in value) || value['id'] === undefined)
14
+ return false;
15
+ if (!('group_created_at' in value) || value['group_created_at'] === undefined)
16
+ return false;
17
+ if (!('month' in value) || value['month'] === undefined)
18
+ return false;
19
+ return true;
20
+ }
21
+ export function MoneyMovementGroupFromJSON(json) {
22
+ return MoneyMovementGroupFromJSONTyped(json, false);
23
+ }
24
+ export function MoneyMovementGroupFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'id': json['id'],
30
+ 'group_created_at': json['group_created_at'],
31
+ 'month': json['month'],
32
+ 'note': json['note'] == null ? undefined : json['note'],
33
+ 'performed_by_user_id': json['performed_by_user_id'] == null ? undefined : json['performed_by_user_id'],
34
+ };
35
+ }
36
+ export function MoneyMovementGroupToJSON(json) {
37
+ return MoneyMovementGroupToJSONTyped(json, false);
38
+ }
39
+ export function MoneyMovementGroupToJSONTyped(value, ignoreDiscriminator) {
40
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'id': value['id'],
46
+ 'group_created_at': value['group_created_at'],
47
+ 'month': value['month'],
48
+ 'note': value['note'],
49
+ 'performed_by_user_id': value['performed_by_user_id'],
50
+ };
51
+ }