ynab 2.3.0 → 2.5.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 (429) hide show
  1. package/README.md +3 -1
  2. package/dist/apis/AccountsApi.d.ts +1 -6
  3. package/dist/apis/AccountsApi.js +1 -6
  4. package/dist/apis/BudgetsApi.d.ts +1 -6
  5. package/dist/apis/BudgetsApi.js +1 -6
  6. package/dist/apis/CategoriesApi.d.ts +1 -6
  7. package/dist/apis/CategoriesApi.js +1 -6
  8. package/dist/apis/MonthsApi.d.ts +1 -6
  9. package/dist/apis/MonthsApi.js +1 -6
  10. package/dist/apis/PayeeLocationsApi.d.ts +1 -6
  11. package/dist/apis/PayeeLocationsApi.js +1 -6
  12. package/dist/apis/PayeesApi.d.ts +1 -6
  13. package/dist/apis/PayeesApi.js +1 -6
  14. package/dist/apis/ScheduledTransactionsApi.d.ts +16 -7
  15. package/dist/apis/ScheduledTransactionsApi.js +40 -6
  16. package/dist/apis/TransactionsApi.d.ts +28 -8
  17. package/dist/apis/TransactionsApi.js +57 -9
  18. package/dist/apis/UserApi.d.ts +1 -6
  19. package/dist/apis/UserApi.js +1 -6
  20. package/dist/browser/ynab.js +1 -1
  21. package/dist/esm/apis/AccountsApi.d.ts +1 -6
  22. package/dist/esm/apis/AccountsApi.js +2 -7
  23. package/dist/esm/apis/BudgetsApi.d.ts +1 -6
  24. package/dist/esm/apis/BudgetsApi.js +2 -7
  25. package/dist/esm/apis/CategoriesApi.d.ts +1 -6
  26. package/dist/esm/apis/CategoriesApi.js +2 -7
  27. package/dist/esm/apis/DeprecatedApi.js +1 -1
  28. package/dist/esm/apis/MonthsApi.d.ts +1 -6
  29. package/dist/esm/apis/MonthsApi.js +2 -7
  30. package/dist/esm/apis/PayeeLocationsApi.d.ts +1 -6
  31. package/dist/esm/apis/PayeeLocationsApi.js +2 -7
  32. package/dist/esm/apis/PayeesApi.d.ts +17 -7
  33. package/dist/esm/apis/PayeesApi.js +67 -8
  34. package/dist/esm/apis/ScheduledTransactionsApi.d.ts +16 -7
  35. package/dist/esm/apis/ScheduledTransactionsApi.js +64 -8
  36. package/dist/esm/apis/TransactionsApi.d.ts +40 -20
  37. package/dist/esm/apis/TransactionsApi.js +87 -17
  38. package/dist/esm/apis/UserApi.d.ts +1 -6
  39. package/dist/esm/apis/UserApi.js +2 -7
  40. package/dist/esm/models/Account.d.ts +2 -7
  41. package/dist/esm/models/Account.js +51 -51
  42. package/dist/esm/models/AccountResponse.d.ts +2 -7
  43. package/dist/esm/models/AccountResponse.js +8 -16
  44. package/dist/esm/models/AccountResponseData.d.ts +2 -7
  45. package/dist/esm/models/AccountResponseData.js +8 -16
  46. package/dist/esm/models/AccountType.d.ts +3 -7
  47. package/dist/esm/models/AccountType.js +11 -6
  48. package/dist/esm/models/AccountsResponse.d.ts +2 -7
  49. package/dist/esm/models/AccountsResponse.js +8 -16
  50. package/dist/esm/models/AccountsResponseData.d.ts +2 -7
  51. package/dist/esm/models/AccountsResponseData.js +11 -18
  52. package/dist/esm/models/BudgetDetail.d.ts +6 -11
  53. package/dist/esm/models/BudgetDetail.js +45 -53
  54. package/dist/esm/models/BudgetDetailResponse.d.ts +2 -7
  55. package/dist/esm/models/BudgetDetailResponse.js +8 -16
  56. package/dist/esm/models/BudgetDetailResponseData.d.ts +2 -7
  57. package/dist/esm/models/BudgetDetailResponseData.js +11 -18
  58. package/dist/esm/models/BudgetSettings.d.ts +2 -7
  59. package/dist/esm/models/BudgetSettings.js +11 -18
  60. package/dist/esm/models/BudgetSettingsResponse.d.ts +2 -7
  61. package/dist/esm/models/BudgetSettingsResponse.js +8 -16
  62. package/dist/esm/models/BudgetSettingsResponseData.d.ts +2 -7
  63. package/dist/esm/models/BudgetSettingsResponseData.js +8 -16
  64. package/dist/esm/models/BudgetSummary.d.ts +2 -7
  65. package/dist/esm/models/BudgetSummary.js +23 -31
  66. package/dist/esm/models/BudgetSummaryResponse.d.ts +2 -7
  67. package/dist/esm/models/BudgetSummaryResponse.js +8 -16
  68. package/dist/esm/models/BudgetSummaryResponseData.d.ts +2 -7
  69. package/dist/esm/models/BudgetSummaryResponseData.js +10 -19
  70. package/dist/esm/models/BulkResponse.d.ts +2 -7
  71. package/dist/esm/models/BulkResponse.js +8 -16
  72. package/dist/esm/models/BulkResponseData.d.ts +2 -7
  73. package/dist/esm/models/BulkResponseData.js +8 -16
  74. package/dist/esm/models/BulkResponseDataBulk.d.ts +2 -7
  75. package/dist/esm/models/BulkResponseDataBulk.js +11 -18
  76. package/dist/esm/models/BulkTransactions.d.ts +5 -10
  77. package/dist/esm/models/BulkTransactions.js +10 -18
  78. package/dist/esm/models/CategoriesResponse.d.ts +2 -7
  79. package/dist/esm/models/CategoriesResponse.js +8 -16
  80. package/dist/esm/models/CategoriesResponseData.d.ts +2 -7
  81. package/dist/esm/models/CategoriesResponseData.js +11 -18
  82. package/dist/esm/models/Category.d.ts +10 -9
  83. package/dist/esm/models/Category.js +61 -61
  84. package/dist/esm/models/CategoryGroup.d.ts +2 -7
  85. package/dist/esm/models/CategoryGroup.js +17 -22
  86. package/dist/esm/models/CategoryGroupWithCategories.d.ts +2 -7
  87. package/dist/esm/models/CategoryGroupWithCategories.js +20 -24
  88. package/dist/esm/models/CategoryResponse.d.ts +2 -7
  89. package/dist/esm/models/CategoryResponse.js +8 -16
  90. package/dist/esm/models/CategoryResponseData.d.ts +2 -7
  91. package/dist/esm/models/CategoryResponseData.js +8 -16
  92. package/dist/esm/models/CurrencyFormat.d.ts +2 -7
  93. package/dist/esm/models/CurrencyFormat.js +29 -30
  94. package/dist/esm/models/DateFormat.d.ts +2 -7
  95. package/dist/esm/models/DateFormat.js +8 -16
  96. package/dist/esm/models/ErrorDetail.d.ts +2 -7
  97. package/dist/esm/models/ErrorDetail.js +14 -20
  98. package/dist/esm/models/ErrorResponse.d.ts +2 -7
  99. package/dist/esm/models/ErrorResponse.js +8 -16
  100. package/dist/esm/models/ExistingTransaction.d.ts +89 -0
  101. package/dist/esm/models/ExistingTransaction.js +56 -0
  102. package/dist/esm/models/HybridTransaction.d.ts +12 -11
  103. package/dist/esm/models/HybridTransaction.js +63 -62
  104. package/dist/esm/models/HybridTransactionAllOf.d.ts +1 -1
  105. package/dist/esm/models/HybridTransactionsResponse.d.ts +2 -7
  106. package/dist/esm/models/HybridTransactionsResponse.js +8 -16
  107. package/dist/esm/models/HybridTransactionsResponseData.d.ts +2 -7
  108. package/dist/esm/models/HybridTransactionsResponseData.js +10 -19
  109. package/dist/esm/models/MonthDetail.d.ts +2 -7
  110. package/dist/esm/models/MonthDetail.js +30 -33
  111. package/dist/esm/models/MonthDetailResponse.d.ts +2 -7
  112. package/dist/esm/models/MonthDetailResponse.js +8 -16
  113. package/dist/esm/models/MonthDetailResponseData.d.ts +2 -7
  114. package/dist/esm/models/MonthDetailResponseData.js +8 -16
  115. package/dist/esm/models/MonthSummariesResponse.d.ts +2 -7
  116. package/dist/esm/models/MonthSummariesResponse.js +8 -16
  117. package/dist/esm/models/MonthSummariesResponseData.d.ts +2 -7
  118. package/dist/esm/models/MonthSummariesResponseData.js +11 -18
  119. package/dist/esm/models/MonthSummary.d.ts +2 -7
  120. package/dist/esm/models/MonthSummary.js +27 -31
  121. package/dist/esm/models/NewTransaction.d.ts +95 -0
  122. package/dist/esm/models/NewTransaction.js +58 -0
  123. package/dist/esm/models/PatchCategoryWrapper.d.ts +2 -7
  124. package/dist/esm/models/PatchCategoryWrapper.js +8 -16
  125. package/dist/esm/models/PatchMonthCategoryWrapper.d.ts +2 -7
  126. package/dist/esm/models/PatchMonthCategoryWrapper.js +8 -16
  127. package/dist/esm/models/PatchPayeeWrapper.d.ts +27 -0
  128. package/dist/esm/models/PatchPayeeWrapper.js +36 -0
  129. package/dist/esm/models/PatchTransactionsWrapper.d.ts +5 -10
  130. package/dist/esm/models/PatchTransactionsWrapper.js +10 -18
  131. package/dist/esm/models/Payee.d.ts +2 -7
  132. package/dist/esm/models/Payee.js +16 -23
  133. package/dist/esm/models/PayeeLocation.d.ts +2 -7
  134. package/dist/esm/models/PayeeLocation.js +20 -24
  135. package/dist/esm/models/PayeeLocationResponse.d.ts +2 -7
  136. package/dist/esm/models/PayeeLocationResponse.js +8 -16
  137. package/dist/esm/models/PayeeLocationResponseData.d.ts +2 -7
  138. package/dist/esm/models/PayeeLocationResponseData.js +8 -16
  139. package/dist/esm/models/PayeeLocationsResponse.d.ts +2 -7
  140. package/dist/esm/models/PayeeLocationsResponse.js +8 -16
  141. package/dist/esm/models/PayeeLocationsResponseData.d.ts +2 -7
  142. package/dist/esm/models/PayeeLocationsResponseData.js +8 -16
  143. package/dist/esm/models/PayeeResponse.d.ts +2 -7
  144. package/dist/esm/models/PayeeResponse.js +8 -16
  145. package/dist/esm/models/PayeeResponseData.d.ts +2 -7
  146. package/dist/esm/models/PayeeResponseData.js +8 -16
  147. package/dist/esm/models/PayeesResponse.d.ts +2 -7
  148. package/dist/esm/models/PayeesResponse.js +8 -16
  149. package/dist/esm/models/PayeesResponseData.d.ts +2 -7
  150. package/dist/esm/models/PayeesResponseData.js +11 -18
  151. package/dist/esm/models/PostAccountWrapper.d.ts +2 -7
  152. package/dist/esm/models/PostAccountWrapper.js +8 -16
  153. package/dist/esm/models/PostScheduledTransactionWrapper.d.ts +27 -0
  154. package/dist/esm/models/PostScheduledTransactionWrapper.js +36 -0
  155. package/dist/esm/models/PostTransactionsWrapper.d.ts +7 -12
  156. package/dist/esm/models/PostTransactionsWrapper.js +10 -20
  157. package/dist/esm/models/PutTransactionWrapper.d.ts +5 -10
  158. package/dist/esm/models/PutTransactionWrapper.js +10 -18
  159. package/dist/esm/models/SaveAccount.d.ts +2 -7
  160. package/dist/esm/models/SaveAccount.js +14 -20
  161. package/dist/esm/models/SaveCategory.d.ts +2 -7
  162. package/dist/esm/models/SaveCategory.js +11 -21
  163. package/dist/esm/models/SaveCategoryResponse.d.ts +2 -7
  164. package/dist/esm/models/SaveCategoryResponse.js +8 -16
  165. package/dist/esm/models/SaveCategoryResponseData.d.ts +2 -7
  166. package/dist/esm/models/SaveCategoryResponseData.js +11 -18
  167. package/dist/esm/models/SaveMonthCategory.d.ts +2 -7
  168. package/dist/esm/models/SaveMonthCategory.js +8 -16
  169. package/dist/esm/models/SavePayee.d.ts +26 -0
  170. package/dist/esm/models/SavePayee.js +33 -0
  171. package/dist/esm/models/SavePayeeResponse.d.ts +27 -0
  172. package/dist/esm/models/SavePayeeResponse.js +36 -0
  173. package/dist/esm/models/SavePayeeResponseData.d.ts +33 -0
  174. package/dist/esm/models/SavePayeeResponseData.js +40 -0
  175. package/dist/esm/models/SaveScheduledTransaction.d.ts +76 -0
  176. package/dist/esm/models/SaveScheduledTransaction.js +55 -0
  177. package/dist/esm/models/SaveSubTransaction.d.ts +2 -7
  178. package/dist/esm/models/SaveSubTransaction.js +16 -25
  179. package/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts +101 -0
  180. package/dist/esm/models/SaveTransactionWithIdOrImportId.js +60 -0
  181. package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +5 -16
  182. package/dist/esm/models/SaveTransactionWithOptionalFields.js +29 -41
  183. package/dist/esm/models/SaveTransactionsResponse.d.ts +2 -7
  184. package/dist/esm/models/SaveTransactionsResponse.js +8 -16
  185. package/dist/esm/models/SaveTransactionsResponseData.d.ts +2 -7
  186. package/dist/esm/models/SaveTransactionsResponseData.js +17 -25
  187. package/dist/esm/models/ScheduledSubTransaction.d.ts +2 -7
  188. package/dist/esm/models/ScheduledSubTransaction.js +25 -31
  189. package/dist/esm/models/ScheduledTransactionDetail.d.ts +10 -9
  190. package/dist/esm/models/ScheduledTransactionDetail.js +49 -48
  191. package/dist/esm/models/ScheduledTransactionFrequency.d.ts +30 -0
  192. package/dist/esm/models/ScheduledTransactionFrequency.js +46 -0
  193. package/dist/esm/models/ScheduledTransactionResponse.d.ts +2 -7
  194. package/dist/esm/models/ScheduledTransactionResponse.js +8 -16
  195. package/dist/esm/models/ScheduledTransactionResponseData.d.ts +2 -7
  196. package/dist/esm/models/ScheduledTransactionResponseData.js +8 -16
  197. package/dist/esm/models/ScheduledTransactionSummary.d.ts +9 -8
  198. package/dist/esm/models/ScheduledTransactionSummary.js +38 -39
  199. package/dist/esm/models/ScheduledTransactionsResponse.d.ts +2 -7
  200. package/dist/esm/models/ScheduledTransactionsResponse.js +8 -16
  201. package/dist/esm/models/ScheduledTransactionsResponseData.d.ts +2 -7
  202. package/dist/esm/models/ScheduledTransactionsResponseData.js +11 -18
  203. package/dist/esm/models/SubTransaction.d.ts +2 -7
  204. package/dist/esm/models/SubTransaction.js +31 -37
  205. package/dist/esm/models/TransactionClearedStatus.d.ts +3 -7
  206. package/dist/esm/models/TransactionClearedStatus.js +11 -6
  207. package/dist/esm/models/TransactionDetail.d.ts +12 -11
  208. package/dist/esm/models/TransactionDetail.js +62 -61
  209. package/dist/esm/models/TransactionFlagColor.d.ts +3 -7
  210. package/dist/esm/models/TransactionFlagColor.js +11 -6
  211. package/dist/esm/models/TransactionResponse.d.ts +2 -7
  212. package/dist/esm/models/TransactionResponse.js +8 -16
  213. package/dist/esm/models/TransactionResponseData.d.ts +2 -7
  214. package/dist/esm/models/TransactionResponseData.js +8 -16
  215. package/dist/esm/models/TransactionSummary.d.ts +11 -10
  216. package/dist/esm/models/TransactionSummary.js +51 -52
  217. package/dist/esm/models/TransactionsImportResponse.d.ts +2 -7
  218. package/dist/esm/models/TransactionsImportResponse.js +8 -16
  219. package/dist/esm/models/TransactionsImportResponseData.d.ts +2 -7
  220. package/dist/esm/models/TransactionsImportResponseData.js +8 -16
  221. package/dist/esm/models/TransactionsResponse.d.ts +2 -7
  222. package/dist/esm/models/TransactionsResponse.js +8 -16
  223. package/dist/esm/models/TransactionsResponseData.d.ts +2 -7
  224. package/dist/esm/models/TransactionsResponseData.js +11 -18
  225. package/dist/esm/models/User.d.ts +2 -7
  226. package/dist/esm/models/User.js +8 -16
  227. package/dist/esm/models/UserResponse.d.ts +2 -7
  228. package/dist/esm/models/UserResponse.js +8 -16
  229. package/dist/esm/models/UserResponseData.d.ts +2 -7
  230. package/dist/esm/models/UserResponseData.js +8 -16
  231. package/dist/esm/models/index.d.ts +10 -9
  232. package/dist/esm/models/index.js +10 -9
  233. package/dist/esm/runtime.d.ts +10 -15
  234. package/dist/esm/runtime.js +2 -7
  235. package/dist/models/Account.d.ts +7 -12
  236. package/dist/models/Account.js +1 -6
  237. package/dist/models/AccountResponse.d.ts +1 -6
  238. package/dist/models/AccountResponse.js +1 -6
  239. package/dist/models/AccountResponseData.d.ts +1 -6
  240. package/dist/models/AccountResponseData.js +1 -6
  241. package/dist/models/AccountType.d.ts +1 -6
  242. package/dist/models/AccountType.js +1 -6
  243. package/dist/models/AccountsResponse.d.ts +1 -6
  244. package/dist/models/AccountsResponse.js +1 -6
  245. package/dist/models/AccountsResponseData.d.ts +1 -6
  246. package/dist/models/AccountsResponseData.js +1 -6
  247. package/dist/models/BudgetDetail.d.ts +3 -8
  248. package/dist/models/BudgetDetail.js +1 -6
  249. package/dist/models/BudgetDetailResponse.d.ts +1 -6
  250. package/dist/models/BudgetDetailResponse.js +1 -6
  251. package/dist/models/BudgetDetailResponseData.d.ts +1 -6
  252. package/dist/models/BudgetDetailResponseData.js +1 -6
  253. package/dist/models/BudgetSettings.d.ts +1 -6
  254. package/dist/models/BudgetSettings.js +1 -6
  255. package/dist/models/BudgetSettingsResponse.d.ts +1 -6
  256. package/dist/models/BudgetSettingsResponse.js +1 -6
  257. package/dist/models/BudgetSettingsResponseData.d.ts +1 -6
  258. package/dist/models/BudgetSettingsResponseData.js +1 -6
  259. package/dist/models/BudgetSummary.d.ts +3 -8
  260. package/dist/models/BudgetSummary.js +1 -6
  261. package/dist/models/BudgetSummaryResponse.d.ts +1 -6
  262. package/dist/models/BudgetSummaryResponse.js +1 -6
  263. package/dist/models/BudgetSummaryResponseData.d.ts +1 -6
  264. package/dist/models/BudgetSummaryResponseData.js +1 -6
  265. package/dist/models/BulkResponse.d.ts +1 -6
  266. package/dist/models/BulkResponse.js +1 -6
  267. package/dist/models/BulkResponseData.d.ts +1 -6
  268. package/dist/models/BulkResponseData.js +1 -6
  269. package/dist/models/BulkResponseDataBulk.d.ts +1 -6
  270. package/dist/models/BulkResponseDataBulk.js +1 -6
  271. package/dist/models/BulkTransactions.d.ts +1 -6
  272. package/dist/models/BulkTransactions.js +1 -6
  273. package/dist/models/CategoriesResponse.d.ts +1 -6
  274. package/dist/models/CategoriesResponse.js +1 -6
  275. package/dist/models/CategoriesResponseData.d.ts +1 -6
  276. package/dist/models/CategoriesResponseData.js +1 -6
  277. package/dist/models/Category.d.ts +16 -21
  278. package/dist/models/Category.js +1 -6
  279. package/dist/models/CategoryGroup.d.ts +1 -6
  280. package/dist/models/CategoryGroup.js +1 -6
  281. package/dist/models/CategoryGroupWithCategories.d.ts +1 -6
  282. package/dist/models/CategoryGroupWithCategories.js +1 -6
  283. package/dist/models/CategoryResponse.d.ts +1 -6
  284. package/dist/models/CategoryResponse.js +1 -6
  285. package/dist/models/CategoryResponseData.d.ts +1 -6
  286. package/dist/models/CategoryResponseData.js +1 -6
  287. package/dist/models/CurrencyFormat.d.ts +1 -6
  288. package/dist/models/CurrencyFormat.js +1 -6
  289. package/dist/models/DateFormat.d.ts +1 -6
  290. package/dist/models/DateFormat.js +1 -6
  291. package/dist/models/ErrorDetail.d.ts +1 -6
  292. package/dist/models/ErrorDetail.js +1 -6
  293. package/dist/models/ErrorResponse.d.ts +1 -6
  294. package/dist/models/ErrorResponse.js +1 -6
  295. package/dist/models/ExistingTransaction.d.ts +7 -12
  296. package/dist/models/ExistingTransaction.js +1 -6
  297. package/dist/models/HybridTransaction.d.ts +15 -20
  298. package/dist/models/HybridTransaction.js +1 -6
  299. package/dist/models/HybridTransactionsResponse.d.ts +1 -6
  300. package/dist/models/HybridTransactionsResponse.js +1 -6
  301. package/dist/models/HybridTransactionsResponseData.d.ts +1 -6
  302. package/dist/models/HybridTransactionsResponseData.js +1 -6
  303. package/dist/models/MonthDetail.d.ts +3 -8
  304. package/dist/models/MonthDetail.js +1 -6
  305. package/dist/models/MonthDetailResponse.d.ts +1 -6
  306. package/dist/models/MonthDetailResponse.js +1 -6
  307. package/dist/models/MonthDetailResponseData.d.ts +1 -6
  308. package/dist/models/MonthDetailResponseData.js +1 -6
  309. package/dist/models/MonthSummariesResponse.d.ts +1 -6
  310. package/dist/models/MonthSummariesResponse.js +1 -6
  311. package/dist/models/MonthSummariesResponseData.d.ts +1 -6
  312. package/dist/models/MonthSummariesResponseData.js +1 -6
  313. package/dist/models/MonthSummary.d.ts +3 -8
  314. package/dist/models/MonthSummary.js +1 -6
  315. package/dist/models/NewTransaction.d.ts +8 -13
  316. package/dist/models/NewTransaction.js +1 -6
  317. package/dist/models/PatchCategoryWrapper.d.ts +1 -6
  318. package/dist/models/PatchCategoryWrapper.js +1 -6
  319. package/dist/models/PatchMonthCategoryWrapper.d.ts +1 -6
  320. package/dist/models/PatchMonthCategoryWrapper.js +1 -6
  321. package/dist/models/PatchPayeeWrapper.d.ts +1 -6
  322. package/dist/models/PatchPayeeWrapper.js +1 -6
  323. package/dist/models/PatchTransactionsWrapper.d.ts +1 -6
  324. package/dist/models/PatchTransactionsWrapper.js +1 -6
  325. package/dist/models/Payee.d.ts +2 -7
  326. package/dist/models/Payee.js +1 -6
  327. package/dist/models/PayeeLocation.d.ts +1 -6
  328. package/dist/models/PayeeLocation.js +1 -6
  329. package/dist/models/PayeeLocationResponse.d.ts +1 -6
  330. package/dist/models/PayeeLocationResponse.js +1 -6
  331. package/dist/models/PayeeLocationResponseData.d.ts +1 -6
  332. package/dist/models/PayeeLocationResponseData.js +1 -6
  333. package/dist/models/PayeeLocationsResponse.d.ts +1 -6
  334. package/dist/models/PayeeLocationsResponse.js +1 -6
  335. package/dist/models/PayeeLocationsResponseData.d.ts +1 -6
  336. package/dist/models/PayeeLocationsResponseData.js +1 -6
  337. package/dist/models/PayeeResponse.d.ts +1 -6
  338. package/dist/models/PayeeResponse.js +1 -6
  339. package/dist/models/PayeeResponseData.d.ts +1 -6
  340. package/dist/models/PayeeResponseData.js +1 -6
  341. package/dist/models/PayeesResponse.d.ts +1 -6
  342. package/dist/models/PayeesResponse.js +1 -6
  343. package/dist/models/PayeesResponseData.d.ts +1 -6
  344. package/dist/models/PayeesResponseData.js +1 -6
  345. package/dist/models/PostAccountWrapper.d.ts +1 -6
  346. package/dist/models/PostAccountWrapper.js +1 -6
  347. package/dist/models/PostScheduledTransactionWrapper.d.ts +27 -0
  348. package/dist/models/PostScheduledTransactionWrapper.js +43 -0
  349. package/dist/models/PostTransactionsWrapper.d.ts +1 -6
  350. package/dist/models/PostTransactionsWrapper.js +1 -6
  351. package/dist/models/PutTransactionWrapper.d.ts +1 -6
  352. package/dist/models/PutTransactionWrapper.js +1 -6
  353. package/dist/models/SaveAccount.d.ts +1 -6
  354. package/dist/models/SaveAccount.js +1 -6
  355. package/dist/models/SaveCategory.d.ts +3 -8
  356. package/dist/models/SaveCategory.js +1 -6
  357. package/dist/models/SaveCategoryResponse.d.ts +1 -6
  358. package/dist/models/SaveCategoryResponse.js +1 -6
  359. package/dist/models/SaveCategoryResponseData.d.ts +1 -6
  360. package/dist/models/SaveCategoryResponseData.js +1 -6
  361. package/dist/models/SaveMonthCategory.d.ts +1 -6
  362. package/dist/models/SaveMonthCategory.js +1 -6
  363. package/dist/models/SavePayee.d.ts +1 -6
  364. package/dist/models/SavePayee.js +1 -6
  365. package/dist/models/SavePayeeResponse.d.ts +1 -6
  366. package/dist/models/SavePayeeResponse.js +1 -6
  367. package/dist/models/SavePayeeResponseData.d.ts +1 -6
  368. package/dist/models/SavePayeeResponseData.js +1 -6
  369. package/dist/models/SaveScheduledTransaction.d.ts +76 -0
  370. package/dist/models/SaveScheduledTransaction.js +62 -0
  371. package/dist/models/SaveSubTransaction.d.ts +5 -10
  372. package/dist/models/SaveSubTransaction.js +1 -6
  373. package/dist/models/SaveTransactionWithIdOrImportId.d.ts +9 -14
  374. package/dist/models/SaveTransactionWithIdOrImportId.js +1 -6
  375. package/dist/models/SaveTransactionWithOptionalFields.d.ts +7 -12
  376. package/dist/models/SaveTransactionWithOptionalFields.js +1 -6
  377. package/dist/models/SaveTransactionsResponse.d.ts +1 -6
  378. package/dist/models/SaveTransactionsResponse.js +1 -6
  379. package/dist/models/SaveTransactionsResponseData.d.ts +1 -6
  380. package/dist/models/SaveTransactionsResponseData.js +1 -6
  381. package/dist/models/ScheduledSubTransaction.d.ts +5 -10
  382. package/dist/models/ScheduledSubTransaction.js +1 -6
  383. package/dist/models/ScheduledTransactionDetail.d.ts +9 -14
  384. package/dist/models/ScheduledTransactionDetail.js +1 -6
  385. package/dist/models/ScheduledTransactionFrequency.d.ts +30 -0
  386. package/dist/models/ScheduledTransactionFrequency.js +53 -0
  387. package/dist/models/ScheduledTransactionResponse.d.ts +1 -6
  388. package/dist/models/ScheduledTransactionResponse.js +1 -6
  389. package/dist/models/ScheduledTransactionResponseData.d.ts +1 -6
  390. package/dist/models/ScheduledTransactionResponseData.js +1 -6
  391. package/dist/models/ScheduledTransactionSummary.d.ts +7 -12
  392. package/dist/models/ScheduledTransactionSummary.js +1 -6
  393. package/dist/models/ScheduledTransactionsResponse.d.ts +1 -6
  394. package/dist/models/ScheduledTransactionsResponse.js +1 -6
  395. package/dist/models/ScheduledTransactionsResponseData.d.ts +1 -6
  396. package/dist/models/ScheduledTransactionsResponseData.js +1 -6
  397. package/dist/models/SubTransaction.d.ts +8 -13
  398. package/dist/models/SubTransaction.js +1 -6
  399. package/dist/models/TransactionClearedStatus.d.ts +1 -6
  400. package/dist/models/TransactionClearedStatus.js +1 -6
  401. package/dist/models/TransactionDetail.d.ts +15 -20
  402. package/dist/models/TransactionDetail.js +1 -6
  403. package/dist/models/TransactionFlagColor.d.ts +1 -6
  404. package/dist/models/TransactionFlagColor.js +1 -6
  405. package/dist/models/TransactionResponse.d.ts +1 -6
  406. package/dist/models/TransactionResponse.js +1 -6
  407. package/dist/models/TransactionResponseData.d.ts +1 -6
  408. package/dist/models/TransactionResponseData.js +1 -6
  409. package/dist/models/TransactionSummary.d.ts +13 -18
  410. package/dist/models/TransactionSummary.js +1 -6
  411. package/dist/models/TransactionsImportResponse.d.ts +1 -6
  412. package/dist/models/TransactionsImportResponse.js +1 -6
  413. package/dist/models/TransactionsImportResponseData.d.ts +1 -6
  414. package/dist/models/TransactionsImportResponseData.js +1 -6
  415. package/dist/models/TransactionsResponse.d.ts +1 -6
  416. package/dist/models/TransactionsResponse.js +1 -6
  417. package/dist/models/TransactionsResponseData.d.ts +1 -6
  418. package/dist/models/TransactionsResponseData.js +1 -6
  419. package/dist/models/User.d.ts +1 -6
  420. package/dist/models/User.js +1 -6
  421. package/dist/models/UserResponse.d.ts +1 -6
  422. package/dist/models/UserResponse.js +1 -6
  423. package/dist/models/UserResponseData.d.ts +1 -6
  424. package/dist/models/UserResponseData.js +1 -6
  425. package/dist/models/index.d.ts +3 -0
  426. package/dist/models/index.js +3 -0
  427. package/dist/runtime.d.ts +1 -6
  428. package/dist/runtime.js +1 -6
  429. package/package.json +1 -1
@@ -4,27 +4,22 @@
4
4
  * YNAB API Endpoints
5
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
6
  *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
13
8
  */
14
9
  import { CategoryResponseDataFromJSON, CategoryResponseDataToJSON, } from './CategoryResponseData';
15
10
  /**
16
11
  * Check if a given object implements the CategoryResponse interface.
17
12
  */
18
13
  export function instanceOfCategoryResponse(value) {
19
- var isInstance = true;
20
- isInstance = isInstance && "data" in value;
21
- return isInstance;
14
+ if (!('data' in value) || value['data'] === undefined)
15
+ return false;
16
+ return true;
22
17
  }
23
18
  export function CategoryResponseFromJSON(json) {
24
19
  return CategoryResponseFromJSONTyped(json, false);
25
20
  }
26
21
  export function CategoryResponseFromJSONTyped(json, ignoreDiscriminator) {
27
- if ((json === undefined) || (json === null)) {
22
+ if (json == null) {
28
23
  return json;
29
24
  }
30
25
  return {
@@ -32,13 +27,10 @@ export function CategoryResponseFromJSONTyped(json, ignoreDiscriminator) {
32
27
  };
33
28
  }
34
29
  export function CategoryResponseToJSON(value) {
35
- if (value === undefined) {
36
- return undefined;
37
- }
38
- if (value === null) {
39
- return null;
30
+ if (value == null) {
31
+ return value;
40
32
  }
41
33
  return {
42
- 'data': CategoryResponseDataToJSON(value.data),
34
+ 'data': CategoryResponseDataToJSON(value['data']),
43
35
  };
44
36
  }
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
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
4
  *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  import type { Category } from './Category';
13
8
  /**
@@ -26,7 +21,7 @@ export interface CategoryResponseData {
26
21
  /**
27
22
  * Check if a given object implements the CategoryResponseData interface.
28
23
  */
29
- export declare function instanceOfCategoryResponseData(value: object): boolean;
24
+ export declare function instanceOfCategoryResponseData(value: object): value is CategoryResponseData;
30
25
  export declare function CategoryResponseDataFromJSON(json: any): CategoryResponseData;
31
26
  export declare function CategoryResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryResponseData;
32
27
  export declare function CategoryResponseDataToJSON(value?: CategoryResponseData | null): any;
@@ -4,27 +4,22 @@
4
4
  * YNAB API Endpoints
5
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
6
  *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
13
8
  */
14
9
  import { CategoryFromJSON, CategoryToJSON, } from './Category';
15
10
  /**
16
11
  * Check if a given object implements the CategoryResponseData interface.
17
12
  */
18
13
  export function instanceOfCategoryResponseData(value) {
19
- var isInstance = true;
20
- isInstance = isInstance && "category" in value;
21
- return isInstance;
14
+ if (!('category' in value) || value['category'] === undefined)
15
+ return false;
16
+ return true;
22
17
  }
23
18
  export function CategoryResponseDataFromJSON(json) {
24
19
  return CategoryResponseDataFromJSONTyped(json, false);
25
20
  }
26
21
  export function CategoryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
27
- if ((json === undefined) || (json === null)) {
22
+ if (json == null) {
28
23
  return json;
29
24
  }
30
25
  return {
@@ -32,13 +27,10 @@ export function CategoryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
32
27
  };
33
28
  }
34
29
  export function CategoryResponseDataToJSON(value) {
35
- if (value === undefined) {
36
- return undefined;
37
- }
38
- if (value === null) {
39
- return null;
30
+ if (value == null) {
31
+ return value;
40
32
  }
41
33
  return {
42
- 'category': CategoryToJSON(value.category),
34
+ 'category': CategoryToJSON(value['category']),
43
35
  };
44
36
  }
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
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
4
  *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  /**
13
8
  * The currency format setting for the budget. In some cases the format will not be available and will be specified as null.
@@ -67,7 +62,7 @@ export interface CurrencyFormat {
67
62
  /**
68
63
  * Check if a given object implements the CurrencyFormat interface.
69
64
  */
70
- export declare function instanceOfCurrencyFormat(value: object): boolean;
65
+ export declare function instanceOfCurrencyFormat(value: object): value is CurrencyFormat;
71
66
  export declare function CurrencyFormatFromJSON(json: any): CurrencyFormat;
72
67
  export declare function CurrencyFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrencyFormat;
73
68
  export declare function CurrencyFormatToJSON(value?: CurrencyFormat | null): any;
@@ -4,33 +4,35 @@
4
4
  * YNAB API Endpoints
5
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
6
  *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
13
8
  */
14
9
  /**
15
10
  * Check if a given object implements the CurrencyFormat interface.
16
11
  */
17
12
  export function instanceOfCurrencyFormat(value) {
18
- var isInstance = true;
19
- isInstance = isInstance && "iso_code" in value;
20
- isInstance = isInstance && "example_format" in value;
21
- isInstance = isInstance && "decimal_digits" in value;
22
- isInstance = isInstance && "decimal_separator" in value;
23
- isInstance = isInstance && "symbol_first" in value;
24
- isInstance = isInstance && "group_separator" in value;
25
- isInstance = isInstance && "currency_symbol" in value;
26
- isInstance = isInstance && "display_symbol" in value;
27
- return isInstance;
13
+ if (!('iso_code' in value) || value['iso_code'] === undefined)
14
+ return false;
15
+ if (!('example_format' in value) || value['example_format'] === undefined)
16
+ return false;
17
+ if (!('decimal_digits' in value) || value['decimal_digits'] === undefined)
18
+ return false;
19
+ if (!('decimal_separator' in value) || value['decimal_separator'] === undefined)
20
+ return false;
21
+ if (!('symbol_first' in value) || value['symbol_first'] === undefined)
22
+ return false;
23
+ if (!('group_separator' in value) || value['group_separator'] === undefined)
24
+ return false;
25
+ if (!('currency_symbol' in value) || value['currency_symbol'] === undefined)
26
+ return false;
27
+ if (!('display_symbol' in value) || value['display_symbol'] === undefined)
28
+ return false;
29
+ return true;
28
30
  }
29
31
  export function CurrencyFormatFromJSON(json) {
30
32
  return CurrencyFormatFromJSONTyped(json, false);
31
33
  }
32
34
  export function CurrencyFormatFromJSONTyped(json, ignoreDiscriminator) {
33
- if ((json === undefined) || (json === null)) {
35
+ if (json == null) {
34
36
  return json;
35
37
  }
36
38
  return {
@@ -45,20 +47,17 @@ export function CurrencyFormatFromJSONTyped(json, ignoreDiscriminator) {
45
47
  };
46
48
  }
47
49
  export function CurrencyFormatToJSON(value) {
48
- if (value === undefined) {
49
- return undefined;
50
- }
51
- if (value === null) {
52
- return null;
50
+ if (value == null) {
51
+ return value;
53
52
  }
54
53
  return {
55
- 'iso_code': value.iso_code,
56
- 'example_format': value.example_format,
57
- 'decimal_digits': value.decimal_digits,
58
- 'decimal_separator': value.decimal_separator,
59
- 'symbol_first': value.symbol_first,
60
- 'group_separator': value.group_separator,
61
- 'currency_symbol': value.currency_symbol,
62
- 'display_symbol': value.display_symbol,
54
+ 'iso_code': value['iso_code'],
55
+ 'example_format': value['example_format'],
56
+ 'decimal_digits': value['decimal_digits'],
57
+ 'decimal_separator': value['decimal_separator'],
58
+ 'symbol_first': value['symbol_first'],
59
+ 'group_separator': value['group_separator'],
60
+ 'currency_symbol': value['currency_symbol'],
61
+ 'display_symbol': value['display_symbol'],
63
62
  };
64
63
  }
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
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
4
  *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  /**
13
8
  * The date format setting for the budget. In some cases the format will not be available and will be specified as null.
@@ -25,7 +20,7 @@ export interface DateFormat {
25
20
  /**
26
21
  * Check if a given object implements the DateFormat interface.
27
22
  */
28
- export declare function instanceOfDateFormat(value: object): boolean;
23
+ export declare function instanceOfDateFormat(value: object): value is DateFormat;
29
24
  export declare function DateFormatFromJSON(json: any): DateFormat;
30
25
  export declare function DateFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): DateFormat;
31
26
  export declare function DateFormatToJSON(value?: DateFormat | null): any;
@@ -4,26 +4,21 @@
4
4
  * YNAB API Endpoints
5
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
6
  *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
13
8
  */
14
9
  /**
15
10
  * Check if a given object implements the DateFormat interface.
16
11
  */
17
12
  export function instanceOfDateFormat(value) {
18
- var isInstance = true;
19
- isInstance = isInstance && "format" in value;
20
- return isInstance;
13
+ if (!('format' in value) || value['format'] === undefined)
14
+ return false;
15
+ return true;
21
16
  }
22
17
  export function DateFormatFromJSON(json) {
23
18
  return DateFormatFromJSONTyped(json, false);
24
19
  }
25
20
  export function DateFormatFromJSONTyped(json, ignoreDiscriminator) {
26
- if ((json === undefined) || (json === null)) {
21
+ if (json == null) {
27
22
  return json;
28
23
  }
29
24
  return {
@@ -31,13 +26,10 @@ export function DateFormatFromJSONTyped(json, ignoreDiscriminator) {
31
26
  };
32
27
  }
33
28
  export function DateFormatToJSON(value) {
34
- if (value === undefined) {
35
- return undefined;
36
- }
37
- if (value === null) {
38
- return null;
29
+ if (value == null) {
30
+ return value;
39
31
  }
40
32
  return {
41
- 'format': value.format,
33
+ 'format': value['format'],
42
34
  };
43
35
  }
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
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
4
  *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  /**
13
8
  *
@@ -37,7 +32,7 @@ export interface ErrorDetail {
37
32
  /**
38
33
  * Check if a given object implements the ErrorDetail interface.
39
34
  */
40
- export declare function instanceOfErrorDetail(value: object): boolean;
35
+ export declare function instanceOfErrorDetail(value: object): value is ErrorDetail;
41
36
  export declare function ErrorDetailFromJSON(json: any): ErrorDetail;
42
37
  export declare function ErrorDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDetail;
43
38
  export declare function ErrorDetailToJSON(value?: ErrorDetail | null): any;
@@ -4,28 +4,25 @@
4
4
  * YNAB API Endpoints
5
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
6
  *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
13
8
  */
14
9
  /**
15
10
  * Check if a given object implements the ErrorDetail interface.
16
11
  */
17
12
  export function instanceOfErrorDetail(value) {
18
- var isInstance = true;
19
- isInstance = isInstance && "id" in value;
20
- isInstance = isInstance && "name" in value;
21
- isInstance = isInstance && "detail" in value;
22
- return isInstance;
13
+ if (!('id' in value) || value['id'] === undefined)
14
+ return false;
15
+ if (!('name' in value) || value['name'] === undefined)
16
+ return false;
17
+ if (!('detail' in value) || value['detail'] === undefined)
18
+ return false;
19
+ return true;
23
20
  }
24
21
  export function ErrorDetailFromJSON(json) {
25
22
  return ErrorDetailFromJSONTyped(json, false);
26
23
  }
27
24
  export function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) {
28
- if ((json === undefined) || (json === null)) {
25
+ if (json == null) {
29
26
  return json;
30
27
  }
31
28
  return {
@@ -35,15 +32,12 @@ export function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) {
35
32
  };
36
33
  }
37
34
  export function ErrorDetailToJSON(value) {
38
- if (value === undefined) {
39
- return undefined;
40
- }
41
- if (value === null) {
42
- return null;
35
+ if (value == null) {
36
+ return value;
43
37
  }
44
38
  return {
45
- 'id': value.id,
46
- 'name': value.name,
47
- 'detail': value.detail,
39
+ 'id': value['id'],
40
+ 'name': value['name'],
41
+ 'detail': value['detail'],
48
42
  };
49
43
  }
@@ -2,12 +2,7 @@
2
2
  * YNAB API Endpoints
3
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
4
  *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
11
6
  */
12
7
  import type { ErrorDetail } from './ErrorDetail';
13
8
  /**
@@ -26,7 +21,7 @@ export interface ErrorResponse {
26
21
  /**
27
22
  * Check if a given object implements the ErrorResponse interface.
28
23
  */
29
- export declare function instanceOfErrorResponse(value: object): boolean;
24
+ export declare function instanceOfErrorResponse(value: object): value is ErrorResponse;
30
25
  export declare function ErrorResponseFromJSON(json: any): ErrorResponse;
31
26
  export declare function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse;
32
27
  export declare function ErrorResponseToJSON(value?: ErrorResponse | null): any;
@@ -4,27 +4,22 @@
4
4
  * YNAB API Endpoints
5
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
6
  *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
7
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
13
8
  */
14
9
  import { ErrorDetailFromJSON, ErrorDetailToJSON, } from './ErrorDetail';
15
10
  /**
16
11
  * Check if a given object implements the ErrorResponse interface.
17
12
  */
18
13
  export function instanceOfErrorResponse(value) {
19
- var isInstance = true;
20
- isInstance = isInstance && "error" in value;
21
- return isInstance;
14
+ if (!('error' in value) || value['error'] === undefined)
15
+ return false;
16
+ return true;
22
17
  }
23
18
  export function ErrorResponseFromJSON(json) {
24
19
  return ErrorResponseFromJSONTyped(json, false);
25
20
  }
26
21
  export function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
27
- if ((json === undefined) || (json === null)) {
22
+ if (json == null) {
28
23
  return json;
29
24
  }
30
25
  return {
@@ -32,13 +27,10 @@ export function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
32
27
  };
33
28
  }
34
29
  export function ErrorResponseToJSON(value) {
35
- if (value === undefined) {
36
- return undefined;
37
- }
38
- if (value === null) {
39
- return null;
30
+ if (value == null) {
31
+ return value;
40
32
  }
41
33
  return {
42
- 'error': ErrorDetailToJSON(value.error),
34
+ 'error': ErrorDetailToJSON(value['error']),
43
35
  };
44
36
  }
@@ -0,0 +1,89 @@
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
+ import type { TransactionFlagColor } from './TransactionFlagColor';
8
+ import type { TransactionClearedStatus } from './TransactionClearedStatus';
9
+ import type { SaveSubTransaction } from './SaveSubTransaction';
10
+ /**
11
+ *
12
+ * @export
13
+ * @interface ExistingTransaction
14
+ */
15
+ export interface ExistingTransaction {
16
+ /**
17
+ *
18
+ * @type {string}
19
+ * @memberof ExistingTransaction
20
+ */
21
+ account_id?: string;
22
+ /**
23
+ * The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored.
24
+ * @type {string}
25
+ * @memberof ExistingTransaction
26
+ */
27
+ date?: string;
28
+ /**
29
+ * The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored.
30
+ * @type {number}
31
+ * @memberof ExistingTransaction
32
+ */
33
+ amount?: number;
34
+ /**
35
+ * The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `transfer_payee_id` on the account resource.
36
+ * @type {string}
37
+ * @memberof ExistingTransaction
38
+ */
39
+ payee_id?: string | null;
40
+ /**
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
+ * @type {string}
43
+ * @memberof ExistingTransaction
44
+ */
45
+ payee_name?: string | null;
46
+ /**
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
+ * @type {string}
49
+ * @memberof ExistingTransaction
50
+ */
51
+ category_id?: string | null;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof ExistingTransaction
56
+ */
57
+ memo?: string | null;
58
+ /**
59
+ *
60
+ * @type {TransactionClearedStatus}
61
+ * @memberof ExistingTransaction
62
+ */
63
+ cleared?: TransactionClearedStatus;
64
+ /**
65
+ * Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default.
66
+ * @type {boolean}
67
+ * @memberof ExistingTransaction
68
+ */
69
+ approved?: boolean;
70
+ /**
71
+ *
72
+ * @type {TransactionFlagColor}
73
+ * @memberof ExistingTransaction
74
+ */
75
+ flag_color?: TransactionFlagColor | null;
76
+ /**
77
+ * An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported.
78
+ * @type {Array<SaveSubTransaction>}
79
+ * @memberof ExistingTransaction
80
+ */
81
+ subtransactions?: Array<SaveSubTransaction>;
82
+ }
83
+ /**
84
+ * Check if a given object implements the ExistingTransaction interface.
85
+ */
86
+ export declare function instanceOfExistingTransaction(value: object): value is ExistingTransaction;
87
+ export declare function ExistingTransactionFromJSON(json: any): ExistingTransaction;
88
+ export declare function ExistingTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExistingTransaction;
89
+ export declare function ExistingTransactionToJSON(value?: ExistingTransaction | null): any;
@@ -0,0 +1,56 @@
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
+ import { TransactionFlagColorFromJSON, TransactionFlagColorToJSON, } from './TransactionFlagColor';
10
+ import { TransactionClearedStatusFromJSON, TransactionClearedStatusToJSON, } from './TransactionClearedStatus';
11
+ import { SaveSubTransactionFromJSON, SaveSubTransactionToJSON, } from './SaveSubTransaction';
12
+ /**
13
+ * Check if a given object implements the ExistingTransaction interface.
14
+ */
15
+ export function instanceOfExistingTransaction(value) {
16
+ return true;
17
+ }
18
+ export function ExistingTransactionFromJSON(json) {
19
+ return ExistingTransactionFromJSONTyped(json, false);
20
+ }
21
+ export function ExistingTransactionFromJSONTyped(json, ignoreDiscriminator) {
22
+ if (json == null) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'account_id': json['account_id'] == null ? undefined : json['account_id'],
27
+ 'date': json['date'] == null ? undefined : json['date'],
28
+ 'amount': json['amount'] == null ? undefined : json['amount'],
29
+ 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
30
+ 'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
31
+ 'category_id': json['category_id'] == null ? undefined : json['category_id'],
32
+ 'memo': json['memo'] == null ? undefined : json['memo'],
33
+ 'cleared': json['cleared'] == null ? undefined : TransactionClearedStatusFromJSON(json['cleared']),
34
+ 'approved': json['approved'] == null ? undefined : json['approved'],
35
+ 'flag_color': json['flag_color'] == null ? undefined : TransactionFlagColorFromJSON(json['flag_color']),
36
+ 'subtransactions': json['subtransactions'] == null ? undefined : (json['subtransactions'].map(SaveSubTransactionFromJSON)),
37
+ };
38
+ }
39
+ export function ExistingTransactionToJSON(value) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'account_id': value['account_id'],
45
+ 'date': value['date'],
46
+ 'amount': value['amount'],
47
+ 'payee_id': value['payee_id'],
48
+ 'payee_name': value['payee_name'],
49
+ 'category_id': value['category_id'],
50
+ 'memo': value['memo'],
51
+ 'cleared': TransactionClearedStatusToJSON(value['cleared']),
52
+ 'approved': value['approved'],
53
+ 'flag_color': TransactionFlagColorToJSON(value['flag_color']),
54
+ 'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(SaveSubTransactionToJSON)),
55
+ };
56
+ }