ynab 2.10.0 → 4.0.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 (320) hide show
  1. package/README.md +50 -42
  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} +51 -41
  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} +39 -39
  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 +10 -4
  53. package/dist/esm/models/Category.js +2 -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} +12 -12
  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/TransactionSummary.d.ts +1 -1
  118. package/dist/esm/models/index.d.ts +23 -9
  119. package/dist/esm/models/index.js +23 -9
  120. package/dist/esm/runtime.js +3 -3
  121. package/dist/index.d.ts +3 -3
  122. package/dist/index.js +22 -12
  123. package/dist/models/Account.d.ts +6 -6
  124. package/dist/models/Account.js +5 -6
  125. package/dist/models/AccountResponse.js +5 -6
  126. package/dist/models/AccountResponseData.js +5 -6
  127. package/dist/models/AccountType.js +6 -6
  128. package/dist/models/AccountsResponse.js +5 -6
  129. package/dist/models/AccountsResponseData.js +5 -6
  130. package/dist/models/BulkResponse.js +5 -6
  131. package/dist/models/BulkResponseData.js +5 -6
  132. package/dist/models/BulkResponseDataBulk.js +5 -6
  133. package/dist/models/BulkTransactions.js +5 -6
  134. package/dist/models/CategoriesResponse.js +5 -6
  135. package/dist/models/CategoriesResponseData.js +5 -6
  136. package/dist/models/Category.d.ts +10 -4
  137. package/dist/models/Category.js +8 -6
  138. package/dist/models/CategoryGoalType.js +4 -5
  139. package/dist/models/CategoryGroup.js +5 -6
  140. package/dist/models/CategoryGroupWithCategories.d.ts +1 -1
  141. package/dist/models/CategoryGroupWithCategories.js +5 -6
  142. package/dist/models/CategoryGroupWithCategoriesAllOf.js +4 -5
  143. package/dist/models/CategoryResponse.js +5 -6
  144. package/dist/models/CategoryResponseData.js +5 -6
  145. package/dist/models/CurrencyFormat.d.ts +1 -1
  146. package/dist/models/CurrencyFormat.js +5 -6
  147. package/dist/models/DateFormat.d.ts +1 -1
  148. package/dist/models/DateFormat.js +5 -6
  149. package/dist/models/ErrorDetail.js +5 -6
  150. package/dist/models/ErrorResponse.js +5 -6
  151. package/dist/models/ExistingCategory.d.ts +51 -0
  152. package/dist/models/ExistingCategory.js +51 -0
  153. package/dist/models/ExistingTransaction.d.ts +4 -4
  154. package/dist/models/ExistingTransaction.js +5 -6
  155. package/dist/models/HybridTransaction.d.ts +12 -12
  156. package/dist/models/HybridTransaction.js +6 -6
  157. package/dist/models/HybridTransactionAllOf.js +5 -5
  158. package/dist/models/HybridTransactionsResponse.js +5 -6
  159. package/dist/models/HybridTransactionsResponseData.js +5 -6
  160. package/dist/models/MoneyMovement.d.ts +75 -0
  161. package/dist/models/MoneyMovement.js +63 -0
  162. package/dist/models/MoneyMovementGroup.d.ts +51 -0
  163. package/dist/models/MoneyMovementGroup.js +57 -0
  164. package/dist/models/MoneyMovementGroupsResponse.d.ts +28 -0
  165. package/dist/models/MoneyMovementGroupsResponse.js +46 -0
  166. package/dist/models/MoneyMovementGroupsResponseData.d.ts +34 -0
  167. package/dist/models/MoneyMovementGroupsResponseData.js +50 -0
  168. package/dist/models/MoneyMovementsResponse.d.ts +28 -0
  169. package/dist/models/MoneyMovementsResponse.js +46 -0
  170. package/dist/models/MoneyMovementsResponseData.d.ts +34 -0
  171. package/dist/models/MoneyMovementsResponseData.js +50 -0
  172. package/dist/models/MonthDetail.d.ts +4 -4
  173. package/dist/models/MonthDetail.js +5 -6
  174. package/dist/models/MonthDetailAllOf.js +4 -5
  175. package/dist/models/MonthDetailResponse.js +5 -6
  176. package/dist/models/MonthDetailResponseData.js +5 -6
  177. package/dist/models/MonthSummariesResponse.js +5 -6
  178. package/dist/models/MonthSummariesResponseData.js +5 -6
  179. package/dist/models/MonthSummary.d.ts +1 -1
  180. package/dist/models/MonthSummary.js +5 -6
  181. package/dist/models/NewCategory.d.ts +51 -0
  182. package/dist/models/NewCategory.js +51 -0
  183. package/dist/models/NewTransaction.d.ts +4 -4
  184. package/dist/models/NewTransaction.js +5 -6
  185. package/dist/models/PatchCategoryGroupWrapper.d.ts +28 -0
  186. package/dist/models/PatchCategoryGroupWrapper.js +46 -0
  187. package/dist/models/PatchCategoryWrapper.d.ts +3 -3
  188. package/dist/models/PatchCategoryWrapper.js +8 -9
  189. package/dist/models/PatchMonthCategoryWrapper.js +5 -6
  190. package/dist/models/PatchPayeeWrapper.js +5 -6
  191. package/dist/models/PatchTransactionsWrapper.js +5 -6
  192. package/dist/models/Payee.js +5 -6
  193. package/dist/models/PayeeLocation.js +5 -6
  194. package/dist/models/PayeeLocationResponse.js +5 -6
  195. package/dist/models/PayeeLocationResponseData.js +5 -6
  196. package/dist/models/PayeeLocationsResponse.js +5 -6
  197. package/dist/models/PayeeLocationsResponseData.js +5 -6
  198. package/dist/models/PayeeResponse.js +5 -6
  199. package/dist/models/PayeeResponseData.js +5 -6
  200. package/dist/models/PayeesResponse.js +5 -6
  201. package/dist/models/PayeesResponseData.js +5 -6
  202. package/dist/{esm/models/BudgetDetail.d.ts → models/PlanDetail.d.ts} +30 -30
  203. package/dist/models/{BudgetDetail.js → PlanDetail.js} +13 -14
  204. package/dist/models/PlanDetailResponse.d.ts +28 -0
  205. package/dist/models/PlanDetailResponse.js +46 -0
  206. package/dist/models/PlanDetailResponseData.d.ts +34 -0
  207. package/dist/models/PlanDetailResponseData.js +50 -0
  208. package/dist/models/PlanSettings.d.ts +35 -0
  209. package/dist/models/{BudgetSettings.js → PlanSettings.js} +13 -14
  210. package/dist/models/PlanSettingsResponse.d.ts +28 -0
  211. package/dist/models/PlanSettingsResponse.js +46 -0
  212. package/dist/models/PlanSettingsResponseData.d.ts +28 -0
  213. package/dist/models/PlanSettingsResponseData.js +46 -0
  214. package/dist/models/PlanSummary.d.ts +72 -0
  215. package/dist/models/{BudgetSummary.js → PlanSummary.js} +13 -14
  216. package/dist/models/PlanSummaryResponse.d.ts +28 -0
  217. package/dist/models/PlanSummaryResponse.js +46 -0
  218. package/dist/models/PlanSummaryResponseData.d.ts +34 -0
  219. package/dist/models/PlanSummaryResponseData.js +48 -0
  220. package/dist/models/PostAccountWrapper.js +5 -6
  221. package/dist/models/PostCategoryGroupWrapper.d.ts +28 -0
  222. package/dist/models/PostCategoryGroupWrapper.js +46 -0
  223. package/dist/models/PostCategoryWrapper.d.ts +28 -0
  224. package/dist/models/PostCategoryWrapper.js +46 -0
  225. package/dist/models/PostScheduledTransactionWrapper.js +5 -6
  226. package/dist/models/PostTransactionsWrapper.js +5 -6
  227. package/dist/models/PutScheduledTransactionWrapper.js +5 -6
  228. package/dist/models/PutTransactionWrapper.js +5 -6
  229. package/dist/models/SaveAccount.js +5 -6
  230. package/dist/models/SaveCategory.d.ts +7 -1
  231. package/dist/models/SaveCategory.js +7 -6
  232. package/dist/models/SaveCategoryGroup.d.ts +27 -0
  233. package/dist/models/SaveCategoryGroup.js +45 -0
  234. package/dist/models/SaveCategoryGroupResponse.d.ts +28 -0
  235. package/dist/models/SaveCategoryGroupResponse.js +46 -0
  236. package/dist/models/SaveCategoryGroupResponseData.d.ts +34 -0
  237. package/dist/models/SaveCategoryGroupResponseData.js +50 -0
  238. package/dist/models/SaveCategoryResponse.js +5 -6
  239. package/dist/models/SaveCategoryResponseData.js +5 -6
  240. package/dist/models/SaveMonthCategory.d.ts +1 -1
  241. package/dist/models/SaveMonthCategory.js +5 -6
  242. package/dist/models/SavePayee.js +5 -6
  243. package/dist/models/SavePayeeResponse.js +5 -6
  244. package/dist/models/SavePayeeResponseData.js +5 -6
  245. package/dist/models/SaveScheduledTransaction.js +5 -6
  246. package/dist/models/SaveSubTransaction.js +5 -6
  247. package/dist/models/SaveTransaction.js +4 -5
  248. package/dist/models/SaveTransactionWithId.js +4 -5
  249. package/dist/models/SaveTransactionWithIdAllOf.js +4 -5
  250. package/dist/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
  251. package/dist/models/SaveTransactionWithIdOrImportId.js +5 -6
  252. package/dist/models/SaveTransactionWithOptionalFields.js +5 -6
  253. package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.js +4 -5
  254. package/dist/models/SaveTransactionsResponse.js +5 -6
  255. package/dist/models/SaveTransactionsResponseData.js +5 -6
  256. package/dist/models/ScheduledSubTransaction.js +5 -6
  257. package/dist/models/ScheduledTransactionDetail.d.ts +6 -6
  258. package/dist/models/ScheduledTransactionDetail.js +6 -6
  259. package/dist/models/ScheduledTransactionDetailAllOf.js +4 -5
  260. package/dist/models/ScheduledTransactionFrequency.js +6 -6
  261. package/dist/models/ScheduledTransactionResponse.js +5 -6
  262. package/dist/models/ScheduledTransactionResponseData.js +5 -6
  263. package/dist/models/ScheduledTransactionSummary.d.ts +1 -1
  264. package/dist/models/ScheduledTransactionSummary.js +6 -6
  265. package/dist/models/ScheduledTransactionSummaryFlagColor.js +4 -5
  266. package/dist/models/ScheduledTransactionsResponse.js +5 -6
  267. package/dist/models/ScheduledTransactionsResponseData.js +5 -6
  268. package/dist/models/SubTransaction.js +5 -6
  269. package/dist/models/TransactionClearedStatus.js +6 -6
  270. package/dist/models/TransactionDetail.d.ts +11 -11
  271. package/dist/models/TransactionDetail.js +6 -6
  272. package/dist/models/TransactionDetailAllOf.js +4 -5
  273. package/dist/models/TransactionFlagColor.js +6 -6
  274. package/dist/models/TransactionResponse.js +5 -6
  275. package/dist/models/TransactionResponseData.js +5 -6
  276. package/dist/models/TransactionSummary.d.ts +1 -1
  277. package/dist/models/TransactionSummary.js +6 -6
  278. package/dist/models/TransactionSummaryDebtTransactionType.js +4 -5
  279. package/dist/models/TransactionsImportResponse.js +5 -6
  280. package/dist/models/TransactionsImportResponseData.js +5 -6
  281. package/dist/models/TransactionsResponse.js +5 -6
  282. package/dist/models/TransactionsResponseData.js +5 -6
  283. package/dist/models/User.js +5 -6
  284. package/dist/models/UserResponse.js +5 -6
  285. package/dist/models/UserResponseData.js +5 -6
  286. package/dist/models/index.d.ts +23 -9
  287. package/dist/models/index.js +23 -9
  288. package/dist/runtime.js +5 -5
  289. package/package.json +7 -8
  290. package/dist/apis/BudgetsApi.d.ts +0 -53
  291. package/dist/esm/apis/BudgetsApi.d.ts +0 -53
  292. package/dist/esm/models/BudgetDetailAllOf.d.ts +0 -95
  293. package/dist/esm/models/BudgetDetailAllOf.js +0 -71
  294. package/dist/esm/models/BudgetDetailResponse.d.ts +0 -28
  295. package/dist/esm/models/BudgetDetailResponseData.d.ts +0 -34
  296. package/dist/esm/models/BudgetSettings.d.ts +0 -35
  297. package/dist/esm/models/BudgetSettingsResponse.d.ts +0 -28
  298. package/dist/esm/models/BudgetSettingsResponseData.d.ts +0 -28
  299. package/dist/esm/models/BudgetSettingsResponseData.js +0 -40
  300. package/dist/esm/models/BudgetSummary.d.ts +0 -72
  301. package/dist/esm/models/BudgetSummaryResponse.d.ts +0 -28
  302. package/dist/esm/models/BudgetSummaryResponse.js +0 -40
  303. package/dist/esm/models/BudgetSummaryResponseData.d.ts +0 -34
  304. package/dist/esm/models/BudgetSummaryResponseData.js +0 -42
  305. package/dist/models/BudgetDetailAllOf.d.ts +0 -95
  306. package/dist/models/BudgetDetailAllOf.js +0 -78
  307. package/dist/models/BudgetDetailResponse.d.ts +0 -28
  308. package/dist/models/BudgetDetailResponse.js +0 -47
  309. package/dist/models/BudgetDetailResponseData.d.ts +0 -34
  310. package/dist/models/BudgetDetailResponseData.js +0 -51
  311. package/dist/models/BudgetSettings.d.ts +0 -35
  312. package/dist/models/BudgetSettingsResponse.d.ts +0 -28
  313. package/dist/models/BudgetSettingsResponse.js +0 -47
  314. package/dist/models/BudgetSettingsResponseData.d.ts +0 -28
  315. package/dist/models/BudgetSettingsResponseData.js +0 -47
  316. package/dist/models/BudgetSummary.d.ts +0 -72
  317. package/dist/models/BudgetSummaryResponse.d.ts +0 -28
  318. package/dist/models/BudgetSummaryResponse.js +0 -47
  319. package/dist/models/BudgetSummaryResponseData.d.ts +0 -34
  320. package/dist/models/BudgetSummaryResponseData.js +0 -49
@@ -31,8 +31,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
31
31
  });
32
32
  };
33
33
  var __generator = (this && this.__generator) || function (thisArg, body) {
34
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
35
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
34
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
35
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
36
36
  function verb(n) { return function (v) { return step([n, v]); }; }
37
37
  function step(op) {
38
38
  if (f) throw new TypeError("Generator is already executing.");
@@ -77,8 +77,8 @@ var TransactionsApi = /** @class */ (function (_super) {
77
77
  return __generator(this, function (_a) {
78
78
  switch (_a.label) {
79
79
  case 0:
80
- if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
81
- throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling createTransaction.');
80
+ if (requestParameters.planId === null || requestParameters.planId === undefined) {
81
+ throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling createTransaction.');
82
82
  }
83
83
  if (requestParameters.data === null || requestParameters.data === undefined) {
84
84
  throw new runtime.RequiredError('data', 'Required parameter requestParameters.data was null or undefined when calling createTransaction.');
@@ -97,7 +97,7 @@ var TransactionsApi = /** @class */ (function (_super) {
97
97
  }
98
98
  _a.label = 2;
99
99
  case 2: return [4 /*yield*/, this.request({
100
- path: "/budgets/{budget_id}/transactions".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))),
100
+ path: "/plans/{plan_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
101
101
  method: 'POST',
102
102
  headers: headerParameters,
103
103
  query: queryParameters,
@@ -114,12 +114,12 @@ var TransactionsApi = /** @class */ (function (_super) {
114
114
  * Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions (transactions with a future date) cannot be created on this endpoint.
115
115
  * Create a single transaction or multiple transactions
116
116
  */
117
- TransactionsApi.prototype.createTransaction = function (budgetId, data, initOverrides) {
117
+ TransactionsApi.prototype.createTransaction = function (planId, data, initOverrides) {
118
118
  return __awaiter(this, void 0, void 0, function () {
119
119
  var response;
120
120
  return __generator(this, function (_a) {
121
121
  switch (_a.label) {
122
- case 0: return [4 /*yield*/, this.createTransactionRaw({ budgetId: budgetId, data: data }, initOverrides)];
122
+ case 0: return [4 /*yield*/, this.createTransactionRaw({ planId: planId, data: data }, initOverrides)];
123
123
  case 1:
124
124
  response = _a.sent();
125
125
  return [4 /*yield*/, response.value()];
@@ -130,7 +130,7 @@ var TransactionsApi = /** @class */ (function (_super) {
130
130
  };
131
131
  /**
132
132
  * Deletes a transaction
133
- * Deletes an existing transaction
133
+ * Delete a transaction
134
134
  */
135
135
  TransactionsApi.prototype.deleteTransactionRaw = function (requestParameters, initOverrides) {
136
136
  return __awaiter(this, void 0, void 0, function () {
@@ -138,8 +138,8 @@ var TransactionsApi = /** @class */ (function (_super) {
138
138
  return __generator(this, function (_a) {
139
139
  switch (_a.label) {
140
140
  case 0:
141
- if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
142
- throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling deleteTransaction.');
141
+ if (requestParameters.planId === null || requestParameters.planId === undefined) {
142
+ throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling deleteTransaction.');
143
143
  }
144
144
  if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
145
145
  throw new runtime.RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling deleteTransaction.');
@@ -157,7 +157,7 @@ var TransactionsApi = /** @class */ (function (_super) {
157
157
  }
158
158
  _a.label = 2;
159
159
  case 2: return [4 /*yield*/, this.request({
160
- path: "/budgets/{budget_id}/transactions/{transaction_id}".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))).replace("{".concat("transaction_id", "}"), encodeURIComponent(String(requestParameters.transactionId))),
160
+ path: "/plans/{plan_id}/transactions/{transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("transaction_id", "}"), encodeURIComponent(String(requestParameters.transactionId))),
161
161
  method: 'DELETE',
162
162
  headers: headerParameters,
163
163
  query: queryParameters,
@@ -171,14 +171,14 @@ var TransactionsApi = /** @class */ (function (_super) {
171
171
  };
172
172
  /**
173
173
  * Deletes a transaction
174
- * Deletes an existing transaction
174
+ * Delete a transaction
175
175
  */
176
- TransactionsApi.prototype.deleteTransaction = function (budgetId, transactionId, initOverrides) {
176
+ TransactionsApi.prototype.deleteTransaction = function (planId, transactionId, initOverrides) {
177
177
  return __awaiter(this, void 0, void 0, function () {
178
178
  var response;
179
179
  return __generator(this, function (_a) {
180
180
  switch (_a.label) {
181
- case 0: return [4 /*yield*/, this.deleteTransactionRaw({ budgetId: budgetId, transactionId: transactionId }, initOverrides)];
181
+ case 0: return [4 /*yield*/, this.deleteTransactionRaw({ planId: planId, transactionId: transactionId }, initOverrides)];
182
182
  case 1:
183
183
  response = _a.sent();
184
184
  return [4 /*yield*/, response.value()];
@@ -189,7 +189,7 @@ var TransactionsApi = /** @class */ (function (_super) {
189
189
  };
190
190
  /**
191
191
  * Returns a single transaction
192
- * Single transaction
192
+ * Get a transaction
193
193
  */
194
194
  TransactionsApi.prototype.getTransactionByIdRaw = function (requestParameters, initOverrides) {
195
195
  return __awaiter(this, void 0, void 0, function () {
@@ -197,8 +197,8 @@ var TransactionsApi = /** @class */ (function (_super) {
197
197
  return __generator(this, function (_a) {
198
198
  switch (_a.label) {
199
199
  case 0:
200
- if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
201
- throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling getTransactionById.');
200
+ if (requestParameters.planId === null || requestParameters.planId === undefined) {
201
+ throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionById.');
202
202
  }
203
203
  if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
204
204
  throw new runtime.RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling getTransactionById.');
@@ -216,7 +216,7 @@ var TransactionsApi = /** @class */ (function (_super) {
216
216
  }
217
217
  _a.label = 2;
218
218
  case 2: return [4 /*yield*/, this.request({
219
- path: "/budgets/{budget_id}/transactions/{transaction_id}".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))).replace("{".concat("transaction_id", "}"), encodeURIComponent(String(requestParameters.transactionId))),
219
+ path: "/plans/{plan_id}/transactions/{transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("transaction_id", "}"), encodeURIComponent(String(requestParameters.transactionId))),
220
220
  method: 'GET',
221
221
  headers: headerParameters,
222
222
  query: queryParameters,
@@ -230,14 +230,14 @@ var TransactionsApi = /** @class */ (function (_super) {
230
230
  };
231
231
  /**
232
232
  * Returns a single transaction
233
- * Single transaction
233
+ * Get a transaction
234
234
  */
235
- TransactionsApi.prototype.getTransactionById = function (budgetId, transactionId, initOverrides) {
235
+ TransactionsApi.prototype.getTransactionById = function (planId, transactionId, initOverrides) {
236
236
  return __awaiter(this, void 0, void 0, function () {
237
237
  var response;
238
238
  return __generator(this, function (_a) {
239
239
  switch (_a.label) {
240
- case 0: return [4 /*yield*/, this.getTransactionByIdRaw({ budgetId: budgetId, transactionId: transactionId }, initOverrides)];
240
+ case 0: return [4 /*yield*/, this.getTransactionByIdRaw({ planId: planId, transactionId: transactionId }, initOverrides)];
241
241
  case 1:
242
242
  response = _a.sent();
243
243
  return [4 /*yield*/, response.value()];
@@ -247,8 +247,8 @@ var TransactionsApi = /** @class */ (function (_super) {
247
247
  });
248
248
  };
249
249
  /**
250
- * Returns budget transactions, excluding any pending transactions
251
- * List transactions
250
+ * Returns plan transactions, excluding any pending transactions
251
+ * Get all transactions
252
252
  */
253
253
  TransactionsApi.prototype.getTransactionsRaw = function (requestParameters, initOverrides) {
254
254
  return __awaiter(this, void 0, void 0, function () {
@@ -256,8 +256,8 @@ var TransactionsApi = /** @class */ (function (_super) {
256
256
  return __generator(this, function (_a) {
257
257
  switch (_a.label) {
258
258
  case 0:
259
- if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
260
- throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling getTransactions.');
259
+ if (requestParameters.planId === null || requestParameters.planId === undefined) {
260
+ throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactions.');
261
261
  }
262
262
  queryParameters = {};
263
263
  if (requestParameters.sinceDate !== undefined) {
@@ -281,7 +281,7 @@ var TransactionsApi = /** @class */ (function (_super) {
281
281
  }
282
282
  _a.label = 2;
283
283
  case 2: return [4 /*yield*/, this.request({
284
- path: "/budgets/{budget_id}/transactions".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))),
284
+ path: "/plans/{plan_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
285
285
  method: 'GET',
286
286
  headers: headerParameters,
287
287
  query: queryParameters,
@@ -294,15 +294,15 @@ var TransactionsApi = /** @class */ (function (_super) {
294
294
  });
295
295
  };
296
296
  /**
297
- * Returns budget transactions, excluding any pending transactions
298
- * List transactions
297
+ * Returns plan transactions, excluding any pending transactions
298
+ * Get all transactions
299
299
  */
300
- TransactionsApi.prototype.getTransactions = function (budgetId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
300
+ TransactionsApi.prototype.getTransactions = function (planId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
301
301
  return __awaiter(this, void 0, void 0, function () {
302
302
  var response;
303
303
  return __generator(this, function (_a) {
304
304
  switch (_a.label) {
305
- case 0: return [4 /*yield*/, this.getTransactionsRaw({ budgetId: budgetId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
305
+ case 0: return [4 /*yield*/, this.getTransactionsRaw({ planId: planId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
306
306
  case 1:
307
307
  response = _a.sent();
308
308
  return [4 /*yield*/, response.value()];
@@ -313,7 +313,7 @@ var TransactionsApi = /** @class */ (function (_super) {
313
313
  };
314
314
  /**
315
315
  * Returns all transactions for a specified account, excluding any pending transactions
316
- * List account transactions
316
+ * Get all account transactions
317
317
  */
318
318
  TransactionsApi.prototype.getTransactionsByAccountRaw = function (requestParameters, initOverrides) {
319
319
  return __awaiter(this, void 0, void 0, function () {
@@ -321,8 +321,8 @@ var TransactionsApi = /** @class */ (function (_super) {
321
321
  return __generator(this, function (_a) {
322
322
  switch (_a.label) {
323
323
  case 0:
324
- if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
325
- throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling getTransactionsByAccount.');
324
+ if (requestParameters.planId === null || requestParameters.planId === undefined) {
325
+ throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionsByAccount.');
326
326
  }
327
327
  if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
328
328
  throw new runtime.RequiredError('accountId', 'Required parameter requestParameters.accountId was null or undefined when calling getTransactionsByAccount.');
@@ -349,7 +349,7 @@ var TransactionsApi = /** @class */ (function (_super) {
349
349
  }
350
350
  _a.label = 2;
351
351
  case 2: return [4 /*yield*/, this.request({
352
- path: "/budgets/{budget_id}/accounts/{account_id}/transactions".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))).replace("{".concat("account_id", "}"), encodeURIComponent(String(requestParameters.accountId))),
352
+ path: "/plans/{plan_id}/accounts/{account_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("account_id", "}"), encodeURIComponent(String(requestParameters.accountId))),
353
353
  method: 'GET',
354
354
  headers: headerParameters,
355
355
  query: queryParameters,
@@ -363,14 +363,14 @@ var TransactionsApi = /** @class */ (function (_super) {
363
363
  };
364
364
  /**
365
365
  * Returns all transactions for a specified account, excluding any pending transactions
366
- * List account transactions
366
+ * Get all account transactions
367
367
  */
368
- TransactionsApi.prototype.getTransactionsByAccount = function (budgetId, accountId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
368
+ TransactionsApi.prototype.getTransactionsByAccount = function (planId, accountId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
369
369
  return __awaiter(this, void 0, void 0, function () {
370
370
  var response;
371
371
  return __generator(this, function (_a) {
372
372
  switch (_a.label) {
373
- case 0: return [4 /*yield*/, this.getTransactionsByAccountRaw({ budgetId: budgetId, accountId: accountId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
373
+ case 0: return [4 /*yield*/, this.getTransactionsByAccountRaw({ planId: planId, accountId: accountId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
374
374
  case 1:
375
375
  response = _a.sent();
376
376
  return [4 /*yield*/, response.value()];
@@ -380,8 +380,8 @@ var TransactionsApi = /** @class */ (function (_super) {
380
380
  });
381
381
  };
382
382
  /**
383
- * Returns all transactions for a specified category
384
- * List category transactions, excluding any pending transactions
383
+ * Returns all transactions for a specified category, excluding any pending transactions
384
+ * Get all category transactions
385
385
  */
386
386
  TransactionsApi.prototype.getTransactionsByCategoryRaw = function (requestParameters, initOverrides) {
387
387
  return __awaiter(this, void 0, void 0, function () {
@@ -389,8 +389,8 @@ var TransactionsApi = /** @class */ (function (_super) {
389
389
  return __generator(this, function (_a) {
390
390
  switch (_a.label) {
391
391
  case 0:
392
- if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
393
- throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling getTransactionsByCategory.');
392
+ if (requestParameters.planId === null || requestParameters.planId === undefined) {
393
+ throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionsByCategory.');
394
394
  }
395
395
  if (requestParameters.categoryId === null || requestParameters.categoryId === undefined) {
396
396
  throw new runtime.RequiredError('categoryId', 'Required parameter requestParameters.categoryId was null or undefined when calling getTransactionsByCategory.');
@@ -417,7 +417,7 @@ var TransactionsApi = /** @class */ (function (_super) {
417
417
  }
418
418
  _a.label = 2;
419
419
  case 2: return [4 /*yield*/, this.request({
420
- path: "/budgets/{budget_id}/categories/{category_id}/transactions".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))).replace("{".concat("category_id", "}"), encodeURIComponent(String(requestParameters.categoryId))),
420
+ path: "/plans/{plan_id}/categories/{category_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("category_id", "}"), encodeURIComponent(String(requestParameters.categoryId))),
421
421
  method: 'GET',
422
422
  headers: headerParameters,
423
423
  query: queryParameters,
@@ -430,15 +430,15 @@ var TransactionsApi = /** @class */ (function (_super) {
430
430
  });
431
431
  };
432
432
  /**
433
- * Returns all transactions for a specified category
434
- * List category transactions, excluding any pending transactions
433
+ * Returns all transactions for a specified category, excluding any pending transactions
434
+ * Get all category transactions
435
435
  */
436
- TransactionsApi.prototype.getTransactionsByCategory = function (budgetId, categoryId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
436
+ TransactionsApi.prototype.getTransactionsByCategory = function (planId, categoryId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
437
437
  return __awaiter(this, void 0, void 0, function () {
438
438
  var response;
439
439
  return __generator(this, function (_a) {
440
440
  switch (_a.label) {
441
- case 0: return [4 /*yield*/, this.getTransactionsByCategoryRaw({ budgetId: budgetId, categoryId: categoryId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
441
+ case 0: return [4 /*yield*/, this.getTransactionsByCategoryRaw({ planId: planId, categoryId: categoryId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
442
442
  case 1:
443
443
  response = _a.sent();
444
444
  return [4 /*yield*/, response.value()];
@@ -448,8 +448,8 @@ var TransactionsApi = /** @class */ (function (_super) {
448
448
  });
449
449
  };
450
450
  /**
451
- * Returns all transactions for a specified month
452
- * List transactions in month, excluding any pending transactions
451
+ * Returns all transactions for a specified month, excluding any pending transactions
452
+ * Get all plan month transactions
453
453
  */
454
454
  TransactionsApi.prototype.getTransactionsByMonthRaw = function (requestParameters, initOverrides) {
455
455
  return __awaiter(this, void 0, void 0, function () {
@@ -457,8 +457,8 @@ var TransactionsApi = /** @class */ (function (_super) {
457
457
  return __generator(this, function (_a) {
458
458
  switch (_a.label) {
459
459
  case 0:
460
- if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
461
- throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling getTransactionsByMonth.');
460
+ if (requestParameters.planId === null || requestParameters.planId === undefined) {
461
+ throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionsByMonth.');
462
462
  }
463
463
  if (requestParameters.month === null || requestParameters.month === undefined) {
464
464
  throw new runtime.RequiredError('month', 'Required parameter requestParameters.month was null or undefined when calling getTransactionsByMonth.');
@@ -485,28 +485,28 @@ var TransactionsApi = /** @class */ (function (_super) {
485
485
  }
486
486
  _a.label = 2;
487
487
  case 2: return [4 /*yield*/, this.request({
488
- path: "/budgets/{budget_id}/months/{month}/transactions".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))),
488
+ path: "/plans/{plan_id}/months/{month}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("month", "}"), encodeURIComponent(String(requestParameters.month))),
489
489
  method: 'GET',
490
490
  headers: headerParameters,
491
491
  query: queryParameters,
492
492
  }, initOverrides)];
493
493
  case 3:
494
494
  response = _a.sent();
495
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return HybridTransactionsResponseFromJSON(jsonValue); })];
495
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return TransactionsResponseFromJSON(jsonValue); })];
496
496
  }
497
497
  });
498
498
  });
499
499
  };
500
500
  /**
501
- * Returns all transactions for a specified month
502
- * List transactions in month, excluding any pending transactions
501
+ * Returns all transactions for a specified month, excluding any pending transactions
502
+ * Get all plan month transactions
503
503
  */
504
- TransactionsApi.prototype.getTransactionsByMonth = function (budgetId, month, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
504
+ TransactionsApi.prototype.getTransactionsByMonth = function (planId, month, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
505
505
  return __awaiter(this, void 0, void 0, function () {
506
506
  var response;
507
507
  return __generator(this, function (_a) {
508
508
  switch (_a.label) {
509
- case 0: return [4 /*yield*/, this.getTransactionsByMonthRaw({ budgetId: budgetId, month: month, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
509
+ case 0: return [4 /*yield*/, this.getTransactionsByMonthRaw({ planId: planId, month: month, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
510
510
  case 1:
511
511
  response = _a.sent();
512
512
  return [4 /*yield*/, response.value()];
@@ -516,8 +516,8 @@ var TransactionsApi = /** @class */ (function (_super) {
516
516
  });
517
517
  };
518
518
  /**
519
- * Returns all transactions for a specified payee
520
- * List payee transactions, excluding any pending transactions
519
+ * Returns all transactions for a specified payee, excluding any pending transactions
520
+ * Get all payee transactions
521
521
  */
522
522
  TransactionsApi.prototype.getTransactionsByPayeeRaw = function (requestParameters, initOverrides) {
523
523
  return __awaiter(this, void 0, void 0, function () {
@@ -525,8 +525,8 @@ var TransactionsApi = /** @class */ (function (_super) {
525
525
  return __generator(this, function (_a) {
526
526
  switch (_a.label) {
527
527
  case 0:
528
- if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
529
- throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling getTransactionsByPayee.');
528
+ if (requestParameters.planId === null || requestParameters.planId === undefined) {
529
+ throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling getTransactionsByPayee.');
530
530
  }
531
531
  if (requestParameters.payeeId === null || requestParameters.payeeId === undefined) {
532
532
  throw new runtime.RequiredError('payeeId', 'Required parameter requestParameters.payeeId was null or undefined when calling getTransactionsByPayee.');
@@ -553,7 +553,7 @@ var TransactionsApi = /** @class */ (function (_super) {
553
553
  }
554
554
  _a.label = 2;
555
555
  case 2: return [4 /*yield*/, this.request({
556
- path: "/budgets/{budget_id}/payees/{payee_id}/transactions".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))).replace("{".concat("payee_id", "}"), encodeURIComponent(String(requestParameters.payeeId))),
556
+ path: "/plans/{plan_id}/payees/{payee_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("payee_id", "}"), encodeURIComponent(String(requestParameters.payeeId))),
557
557
  method: 'GET',
558
558
  headers: headerParameters,
559
559
  query: queryParameters,
@@ -566,15 +566,15 @@ var TransactionsApi = /** @class */ (function (_super) {
566
566
  });
567
567
  };
568
568
  /**
569
- * Returns all transactions for a specified payee
570
- * List payee transactions, excluding any pending transactions
569
+ * Returns all transactions for a specified payee, excluding any pending transactions
570
+ * Get all payee transactions
571
571
  */
572
- TransactionsApi.prototype.getTransactionsByPayee = function (budgetId, payeeId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
572
+ TransactionsApi.prototype.getTransactionsByPayee = function (planId, payeeId, sinceDate, type, lastKnowledgeOfServer, initOverrides) {
573
573
  return __awaiter(this, void 0, void 0, function () {
574
574
  var response;
575
575
  return __generator(this, function (_a) {
576
576
  switch (_a.label) {
577
- case 0: return [4 /*yield*/, this.getTransactionsByPayeeRaw({ budgetId: budgetId, payeeId: payeeId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
577
+ case 0: return [4 /*yield*/, this.getTransactionsByPayeeRaw({ planId: planId, payeeId: payeeId, sinceDate: sinceDate, type: type, lastKnowledgeOfServer: lastKnowledgeOfServer }, initOverrides)];
578
578
  case 1:
579
579
  response = _a.sent();
580
580
  return [4 /*yield*/, response.value()];
@@ -584,7 +584,7 @@ var TransactionsApi = /** @class */ (function (_super) {
584
584
  });
585
585
  };
586
586
  /**
587
- * Imports available transactions on all linked accounts for the given budget. Linked accounts allow transactions to be imported directly from a specified financial institution and this endpoint initiates that import. Sending a request to this endpoint is the equivalent of clicking \"Import\" on each account in the web application or tapping the \"New Transactions\" banner in the mobile applications. The response for this endpoint contains the transaction ids that have been imported.
587
+ * Imports available transactions on all linked accounts for the given plan. Linked accounts allow transactions to be imported directly from a specified financial institution and this endpoint initiates that import. Sending a request to this endpoint is the equivalent of clicking \"Import\" on each account in the web application or tapping the \"New Transactions\" banner in the mobile applications. The response for this endpoint contains the transaction ids that have been imported.
588
588
  * Import transactions
589
589
  */
590
590
  TransactionsApi.prototype.importTransactionsRaw = function (requestParameters, initOverrides) {
@@ -593,8 +593,8 @@ var TransactionsApi = /** @class */ (function (_super) {
593
593
  return __generator(this, function (_a) {
594
594
  switch (_a.label) {
595
595
  case 0:
596
- if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
597
- throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling importTransactions.');
596
+ if (requestParameters.planId === null || requestParameters.planId === undefined) {
597
+ throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling importTransactions.');
598
598
  }
599
599
  queryParameters = {};
600
600
  headerParameters = {};
@@ -609,7 +609,7 @@ var TransactionsApi = /** @class */ (function (_super) {
609
609
  }
610
610
  _a.label = 2;
611
611
  case 2: return [4 /*yield*/, this.request({
612
- path: "/budgets/{budget_id}/transactions/import".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))),
612
+ path: "/plans/{plan_id}/transactions/import".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
613
613
  method: 'POST',
614
614
  headers: headerParameters,
615
615
  query: queryParameters,
@@ -622,15 +622,15 @@ var TransactionsApi = /** @class */ (function (_super) {
622
622
  });
623
623
  };
624
624
  /**
625
- * Imports available transactions on all linked accounts for the given budget. Linked accounts allow transactions to be imported directly from a specified financial institution and this endpoint initiates that import. Sending a request to this endpoint is the equivalent of clicking \"Import\" on each account in the web application or tapping the \"New Transactions\" banner in the mobile applications. The response for this endpoint contains the transaction ids that have been imported.
625
+ * Imports available transactions on all linked accounts for the given plan. Linked accounts allow transactions to be imported directly from a specified financial institution and this endpoint initiates that import. Sending a request to this endpoint is the equivalent of clicking \"Import\" on each account in the web application or tapping the \"New Transactions\" banner in the mobile applications. The response for this endpoint contains the transaction ids that have been imported.
626
626
  * Import transactions
627
627
  */
628
- TransactionsApi.prototype.importTransactions = function (budgetId, initOverrides) {
628
+ TransactionsApi.prototype.importTransactions = function (planId, initOverrides) {
629
629
  return __awaiter(this, void 0, void 0, function () {
630
630
  var response;
631
631
  return __generator(this, function (_a) {
632
632
  switch (_a.label) {
633
- case 0: return [4 /*yield*/, this.importTransactionsRaw({ budgetId: budgetId }, initOverrides)];
633
+ case 0: return [4 /*yield*/, this.importTransactionsRaw({ planId: planId }, initOverrides)];
634
634
  case 1:
635
635
  response = _a.sent();
636
636
  return [4 /*yield*/, response.value()];
@@ -641,7 +641,7 @@ var TransactionsApi = /** @class */ (function (_super) {
641
641
  };
642
642
  /**
643
643
  * Updates a single transaction
644
- * Updates an existing transaction
644
+ * Update a transaction
645
645
  */
646
646
  TransactionsApi.prototype.updateTransactionRaw = function (requestParameters, initOverrides) {
647
647
  return __awaiter(this, void 0, void 0, function () {
@@ -649,8 +649,8 @@ var TransactionsApi = /** @class */ (function (_super) {
649
649
  return __generator(this, function (_a) {
650
650
  switch (_a.label) {
651
651
  case 0:
652
- if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
653
- throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling updateTransaction.');
652
+ if (requestParameters.planId === null || requestParameters.planId === undefined) {
653
+ throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling updateTransaction.');
654
654
  }
655
655
  if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
656
656
  throw new runtime.RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling updateTransaction.');
@@ -672,7 +672,7 @@ var TransactionsApi = /** @class */ (function (_super) {
672
672
  }
673
673
  _a.label = 2;
674
674
  case 2: return [4 /*yield*/, this.request({
675
- path: "/budgets/{budget_id}/transactions/{transaction_id}".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))).replace("{".concat("transaction_id", "}"), encodeURIComponent(String(requestParameters.transactionId))),
675
+ path: "/plans/{plan_id}/transactions/{transaction_id}".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))).replace("{".concat("transaction_id", "}"), encodeURIComponent(String(requestParameters.transactionId))),
676
676
  method: 'PUT',
677
677
  headers: headerParameters,
678
678
  query: queryParameters,
@@ -687,14 +687,14 @@ var TransactionsApi = /** @class */ (function (_super) {
687
687
  };
688
688
  /**
689
689
  * Updates a single transaction
690
- * Updates an existing transaction
690
+ * Update a transaction
691
691
  */
692
- TransactionsApi.prototype.updateTransaction = function (budgetId, transactionId, data, initOverrides) {
692
+ TransactionsApi.prototype.updateTransaction = function (planId, transactionId, data, initOverrides) {
693
693
  return __awaiter(this, void 0, void 0, function () {
694
694
  var response;
695
695
  return __generator(this, function (_a) {
696
696
  switch (_a.label) {
697
- case 0: return [4 /*yield*/, this.updateTransactionRaw({ budgetId: budgetId, transactionId: transactionId, data: data }, initOverrides)];
697
+ case 0: return [4 /*yield*/, this.updateTransactionRaw({ planId: planId, transactionId: transactionId, data: data }, initOverrides)];
698
698
  case 1:
699
699
  response = _a.sent();
700
700
  return [4 /*yield*/, response.value()];
@@ -713,8 +713,8 @@ var TransactionsApi = /** @class */ (function (_super) {
713
713
  return __generator(this, function (_a) {
714
714
  switch (_a.label) {
715
715
  case 0:
716
- if (requestParameters.budgetId === null || requestParameters.budgetId === undefined) {
717
- throw new runtime.RequiredError('budgetId', 'Required parameter requestParameters.budgetId was null or undefined when calling updateTransactions.');
716
+ if (requestParameters.planId === null || requestParameters.planId === undefined) {
717
+ throw new runtime.RequiredError('planId', 'Required parameter requestParameters.planId was null or undefined when calling updateTransactions.');
718
718
  }
719
719
  if (requestParameters.data === null || requestParameters.data === undefined) {
720
720
  throw new runtime.RequiredError('data', 'Required parameter requestParameters.data was null or undefined when calling updateTransactions.');
@@ -733,7 +733,7 @@ var TransactionsApi = /** @class */ (function (_super) {
733
733
  }
734
734
  _a.label = 2;
735
735
  case 2: return [4 /*yield*/, this.request({
736
- path: "/budgets/{budget_id}/transactions".replace("{".concat("budget_id", "}"), encodeURIComponent(String(requestParameters.budgetId))),
736
+ path: "/plans/{plan_id}/transactions".replace("{".concat("plan_id", "}"), encodeURIComponent(String(requestParameters.planId))),
737
737
  method: 'PATCH',
738
738
  headers: headerParameters,
739
739
  query: queryParameters,
@@ -750,12 +750,12 @@ var TransactionsApi = /** @class */ (function (_super) {
750
750
  * Updates multiple transactions, by `id` or `import_id`.
751
751
  * Update multiple transactions
752
752
  */
753
- TransactionsApi.prototype.updateTransactions = function (budgetId, data, initOverrides) {
753
+ TransactionsApi.prototype.updateTransactions = function (planId, data, initOverrides) {
754
754
  return __awaiter(this, void 0, void 0, function () {
755
755
  var response;
756
756
  return __generator(this, function (_a) {
757
757
  switch (_a.label) {
758
- case 0: return [4 /*yield*/, this.updateTransactionsRaw({ budgetId: budgetId, data: data }, initOverrides)];
758
+ case 0: return [4 /*yield*/, this.updateTransactionsRaw({ planId: planId, data: data }, initOverrides)];
759
759
  case 1:
760
760
  response = _a.sent();
761
761
  return [4 /*yield*/, response.value()];
@@ -12,12 +12,12 @@ import type { UserResponse } from '../models/index';
12
12
  export declare class UserApi extends runtime.BaseAPI {
13
13
  /**
14
14
  * Returns authenticated user information
15
- * User info
15
+ * Get user
16
16
  */
17
17
  getUserRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
18
18
  /**
19
19
  * Returns authenticated user information
20
- * User info
20
+ * Get user
21
21
  */
22
22
  getUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
23
23
  }
@@ -31,8 +31,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
31
31
  });
32
32
  };
33
33
  var __generator = (this && this.__generator) || function (thisArg, body) {
34
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
35
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
34
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
35
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
36
36
  function verb(n) { return function (v) { return step([n, v]); }; }
37
37
  function step(op) {
38
38
  if (f) throw new TypeError("Generator is already executing.");
@@ -69,7 +69,7 @@ var UserApi = /** @class */ (function (_super) {
69
69
  }
70
70
  /**
71
71
  * Returns authenticated user information
72
- * User info
72
+ * Get user
73
73
  */
74
74
  UserApi.prototype.getUserRaw = function (initOverrides) {
75
75
  return __awaiter(this, void 0, void 0, function () {
@@ -104,7 +104,7 @@ var UserApi = /** @class */ (function (_super) {
104
104
  };
105
105
  /**
106
106
  * Returns authenticated user information
107
- * User info
107
+ * Get user
108
108
  */
109
109
  UserApi.prototype.getUser = function (initOverrides) {
110
110
  return __awaiter(this, void 0, void 0, function () {
@@ -1,9 +1,10 @@
1
1
  export * from './AccountsApi';
2
- export * from './BudgetsApi';
3
2
  export * from './CategoriesApi';
3
+ export * from './MoneyMovementsApi';
4
4
  export * from './MonthsApi';
5
5
  export * from './PayeeLocationsApi';
6
6
  export * from './PayeesApi';
7
+ export * from './PlansApi';
7
8
  export * from './ScheduledTransactionsApi';
8
9
  export * from './TransactionsApi';
9
10
  export * from './UserApi';
@@ -1,11 +1,12 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AccountsApi';
4
- export * from './BudgetsApi';
5
4
  export * from './CategoriesApi';
5
+ export * from './MoneyMovementsApi';
6
6
  export * from './MonthsApi';
7
7
  export * from './PayeeLocationsApi';
8
8
  export * from './PayeesApi';
9
+ export * from './PlansApi';
9
10
  export * from './ScheduledTransactionsApi';
10
11
  export * from './TransactionsApi';
11
12
  export * from './UserApi';
@@ -20,11 +20,11 @@ export declare class api {
20
20
  * /user endpoints interface
21
21
  */
22
22
  get user(): apis.UserApi;
23
- protected _budgets: apis.BudgetsApi;
23
+ protected _plans: apis.PlansApi;
24
24
  /**
25
- * /budgets endpoints interface
25
+ * /plans endpoints interface
26
26
  */
27
- get budgets(): apis.BudgetsApi;
27
+ get plans(): apis.PlansApi;
28
28
  protected _accounts: apis.AccountsApi;
29
29
  /**
30
30
  * /budgets/{budget_id}/accounts endpoints interface