ynab 2.0.0 → 2.3.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 (267) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/AccountsApi.d.ts +1 -1
  3. package/dist/apis/AccountsApi.js +1 -1
  4. package/dist/apis/BudgetsApi.d.ts +1 -1
  5. package/dist/apis/BudgetsApi.js +1 -1
  6. package/dist/apis/CategoriesApi.d.ts +17 -2
  7. package/dist/apis/CategoriesApi.js +43 -1
  8. package/dist/apis/CustomTransactionsApi.d.ts +1 -1
  9. package/dist/apis/MonthsApi.d.ts +1 -1
  10. package/dist/apis/MonthsApi.js +1 -1
  11. package/dist/apis/PayeeLocationsApi.d.ts +1 -1
  12. package/dist/apis/PayeeLocationsApi.js +1 -1
  13. package/dist/apis/PayeesApi.d.ts +17 -2
  14. package/dist/apis/PayeesApi.js +43 -1
  15. package/dist/apis/ScheduledTransactionsApi.d.ts +1 -1
  16. package/dist/apis/ScheduledTransactionsApi.js +1 -1
  17. package/dist/apis/TransactionsApi.d.ts +13 -13
  18. package/dist/apis/TransactionsApi.js +9 -9
  19. package/dist/apis/UserApi.d.ts +1 -1
  20. package/dist/apis/UserApi.js +1 -1
  21. package/dist/apis/index.d.ts +0 -1
  22. package/dist/apis/index.js +5 -2
  23. package/dist/browser/ynab.js +1 -1
  24. package/dist/esm/apis/CategoriesApi.d.ts +16 -1
  25. package/dist/esm/apis/CategoriesApi.js +65 -1
  26. package/dist/esm/apis/CustomTransactionsApi.d.ts +1 -1
  27. package/dist/esm/apis/index.d.ts +0 -1
  28. package/dist/esm/apis/index.js +0 -1
  29. package/dist/esm/models/Category.d.ts +0 -1
  30. package/dist/esm/models/Category.js +0 -1
  31. package/dist/esm/models/CategoryGoalType.d.ts +25 -0
  32. package/dist/esm/models/CategoryGoalType.js +29 -0
  33. package/dist/esm/models/HybridTransaction.d.ts +9 -30
  34. package/dist/esm/models/HybridTransaction.js +7 -26
  35. package/dist/esm/models/PatchCategoryWrapper.d.ts +32 -0
  36. package/dist/esm/models/PatchCategoryWrapper.js +44 -0
  37. package/dist/esm/models/SaveCategory.d.ts +43 -0
  38. package/dist/esm/models/SaveCategory.js +47 -0
  39. package/dist/esm/models/SaveTransaction.d.ts +8 -28
  40. package/dist/esm/models/SaveTransaction.js +6 -24
  41. package/dist/esm/models/SaveTransactionWithId.d.ts +8 -28
  42. package/dist/esm/models/SaveTransactionWithId.js +6 -24
  43. package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +8 -28
  44. package/dist/esm/models/SaveTransactionWithOptionalFields.js +6 -24
  45. package/dist/esm/models/SaveTransactionWithOptionalFieldsFlagColor.d.ts +25 -0
  46. package/dist/esm/models/SaveTransactionWithOptionalFieldsFlagColor.js +29 -0
  47. package/dist/esm/models/ScheduledTransactionDetail.d.ts +4 -16
  48. package/dist/esm/models/ScheduledTransactionDetail.js +3 -14
  49. package/dist/esm/models/ScheduledTransactionSummary.d.ts +4 -16
  50. package/dist/esm/models/ScheduledTransactionSummary.js +3 -14
  51. package/dist/esm/models/ScheduledTransactionSummaryFlagColor.d.ts +25 -0
  52. package/dist/esm/models/ScheduledTransactionSummaryFlagColor.js +29 -0
  53. package/dist/esm/models/TransactionClearedStatus.d.ts +24 -0
  54. package/dist/esm/models/TransactionClearedStatus.js +31 -0
  55. package/dist/esm/models/TransactionDetail.d.ts +9 -30
  56. package/dist/esm/models/TransactionDetail.js +7 -26
  57. package/dist/esm/models/TransactionFlagColor.d.ts +27 -0
  58. package/dist/esm/models/TransactionFlagColor.js +34 -0
  59. package/dist/esm/models/TransactionSummary.d.ts +9 -30
  60. package/dist/esm/models/TransactionSummary.js +7 -26
  61. package/dist/esm/models/TransactionSummaryDebtTransactionType.d.ts +25 -0
  62. package/dist/esm/models/TransactionSummaryDebtTransactionType.js +29 -0
  63. package/dist/esm/models/index.d.ts +4 -0
  64. package/dist/esm/models/index.js +4 -0
  65. package/dist/index.js +5 -1
  66. package/dist/models/Account.d.ts +8 -8
  67. package/dist/models/Account.js +51 -46
  68. package/dist/models/AccountResponse.d.ts +2 -2
  69. package/dist/models/AccountResponse.js +8 -11
  70. package/dist/models/AccountResponseData.d.ts +2 -2
  71. package/dist/models/AccountResponseData.js +8 -11
  72. package/dist/models/AccountType.d.ts +3 -2
  73. package/dist/models/AccountType.js +13 -2
  74. package/dist/models/AccountsResponse.d.ts +2 -2
  75. package/dist/models/AccountsResponse.js +8 -11
  76. package/dist/models/AccountsResponseData.d.ts +2 -2
  77. package/dist/models/AccountsResponseData.js +11 -13
  78. package/dist/models/BudgetDetail.d.ts +8 -8
  79. package/dist/models/BudgetDetail.js +45 -48
  80. package/dist/models/BudgetDetailResponse.d.ts +2 -2
  81. package/dist/models/BudgetDetailResponse.js +8 -11
  82. package/dist/models/BudgetDetailResponseData.d.ts +2 -2
  83. package/dist/models/BudgetDetailResponseData.js +11 -13
  84. package/dist/models/BudgetSettings.d.ts +2 -2
  85. package/dist/models/BudgetSettings.js +11 -13
  86. package/dist/models/BudgetSettingsResponse.d.ts +2 -2
  87. package/dist/models/BudgetSettingsResponse.js +8 -11
  88. package/dist/models/BudgetSettingsResponseData.d.ts +2 -2
  89. package/dist/models/BudgetSettingsResponseData.js +8 -11
  90. package/dist/models/BudgetSummary.d.ts +4 -4
  91. package/dist/models/BudgetSummary.js +23 -26
  92. package/dist/models/BudgetSummaryResponse.d.ts +2 -2
  93. package/dist/models/BudgetSummaryResponse.js +8 -11
  94. package/dist/models/BudgetSummaryResponseData.d.ts +2 -2
  95. package/dist/models/BudgetSummaryResponseData.js +10 -14
  96. package/dist/models/BulkResponse.d.ts +2 -2
  97. package/dist/models/BulkResponse.js +8 -11
  98. package/dist/models/BulkResponseData.d.ts +2 -2
  99. package/dist/models/BulkResponseData.js +8 -11
  100. package/dist/models/BulkResponseDataBulk.d.ts +2 -2
  101. package/dist/models/BulkResponseDataBulk.js +11 -13
  102. package/dist/models/BulkTransactions.d.ts +5 -5
  103. package/dist/models/BulkTransactions.js +10 -13
  104. package/dist/models/CategoriesResponse.d.ts +2 -2
  105. package/dist/models/CategoriesResponse.js +8 -11
  106. package/dist/models/CategoriesResponseData.d.ts +2 -2
  107. package/dist/models/CategoriesResponseData.js +11 -13
  108. package/dist/models/Category.d.ts +22 -17
  109. package/dist/models/Category.js +61 -57
  110. package/dist/models/CategoryGoalType.d.ts +25 -0
  111. package/dist/models/CategoryGoalType.js +36 -0
  112. package/dist/models/CategoryGroup.d.ts +2 -2
  113. package/dist/models/CategoryGroup.js +17 -17
  114. package/dist/models/CategoryGroupWithCategories.d.ts +2 -2
  115. package/dist/models/CategoryGroupWithCategories.js +20 -19
  116. package/dist/models/CategoryResponse.d.ts +2 -2
  117. package/dist/models/CategoryResponse.js +8 -11
  118. package/dist/models/CategoryResponseData.d.ts +2 -2
  119. package/dist/models/CategoryResponseData.js +8 -11
  120. package/dist/models/CurrencyFormat.d.ts +2 -2
  121. package/dist/models/CurrencyFormat.js +29 -25
  122. package/dist/models/DateFormat.d.ts +2 -2
  123. package/dist/models/DateFormat.js +8 -11
  124. package/dist/models/ErrorDetail.d.ts +2 -2
  125. package/dist/models/ErrorDetail.js +14 -15
  126. package/dist/models/ErrorResponse.d.ts +2 -2
  127. package/dist/models/ErrorResponse.js +8 -11
  128. package/dist/models/ExistingTransaction.d.ts +94 -0
  129. package/dist/models/ExistingTransaction.js +68 -0
  130. package/dist/models/HybridTransaction.d.ts +29 -44
  131. package/dist/models/HybridTransaction.js +67 -80
  132. package/dist/models/HybridTransactionAllOf.d.ts +1 -1
  133. package/dist/models/HybridTransactionsResponse.d.ts +2 -2
  134. package/dist/models/HybridTransactionsResponse.js +8 -11
  135. package/dist/models/HybridTransactionsResponseData.d.ts +2 -2
  136. package/dist/models/HybridTransactionsResponseData.js +10 -14
  137. package/dist/models/MonthDetail.d.ts +4 -4
  138. package/dist/models/MonthDetail.js +30 -28
  139. package/dist/models/MonthDetailResponse.d.ts +2 -2
  140. package/dist/models/MonthDetailResponse.js +8 -11
  141. package/dist/models/MonthDetailResponseData.d.ts +2 -2
  142. package/dist/models/MonthDetailResponseData.js +8 -11
  143. package/dist/models/MonthSummariesResponse.d.ts +2 -2
  144. package/dist/models/MonthSummariesResponse.js +8 -11
  145. package/dist/models/MonthSummariesResponseData.d.ts +2 -2
  146. package/dist/models/MonthSummariesResponseData.js +11 -13
  147. package/dist/models/MonthSummary.d.ts +4 -4
  148. package/dist/models/MonthSummary.js +27 -26
  149. package/dist/models/NewTransaction.d.ts +100 -0
  150. package/dist/models/NewTransaction.js +70 -0
  151. package/dist/models/PatchCategoryWrapper.d.ts +32 -0
  152. package/dist/models/PatchCategoryWrapper.js +48 -0
  153. package/dist/models/PatchMonthCategoryWrapper.d.ts +2 -2
  154. package/dist/models/PatchMonthCategoryWrapper.js +8 -11
  155. package/dist/models/PatchPayeeWrapper.d.ts +32 -0
  156. package/dist/models/PatchPayeeWrapper.js +48 -0
  157. package/dist/models/PatchTransactionsWrapper.d.ts +5 -5
  158. package/dist/models/PatchTransactionsWrapper.js +10 -13
  159. package/dist/models/Payee.d.ts +3 -3
  160. package/dist/models/Payee.js +16 -18
  161. package/dist/models/PayeeLocation.d.ts +2 -2
  162. package/dist/models/PayeeLocation.js +20 -19
  163. package/dist/models/PayeeLocationResponse.d.ts +2 -2
  164. package/dist/models/PayeeLocationResponse.js +8 -11
  165. package/dist/models/PayeeLocationResponseData.d.ts +2 -2
  166. package/dist/models/PayeeLocationResponseData.js +8 -11
  167. package/dist/models/PayeeLocationsResponse.d.ts +2 -2
  168. package/dist/models/PayeeLocationsResponse.js +8 -11
  169. package/dist/models/PayeeLocationsResponseData.d.ts +2 -2
  170. package/dist/models/PayeeLocationsResponseData.js +8 -11
  171. package/dist/models/PayeeResponse.d.ts +2 -2
  172. package/dist/models/PayeeResponse.js +8 -11
  173. package/dist/models/PayeeResponseData.d.ts +2 -2
  174. package/dist/models/PayeeResponseData.js +8 -11
  175. package/dist/models/PayeesResponse.d.ts +2 -2
  176. package/dist/models/PayeesResponse.js +8 -11
  177. package/dist/models/PayeesResponseData.d.ts +2 -2
  178. package/dist/models/PayeesResponseData.js +11 -13
  179. package/dist/models/PostAccountWrapper.d.ts +2 -2
  180. package/dist/models/PostAccountWrapper.js +8 -11
  181. package/dist/models/PostTransactionsWrapper.d.ts +7 -7
  182. package/dist/models/PostTransactionsWrapper.js +10 -15
  183. package/dist/models/PutTransactionWrapper.d.ts +5 -5
  184. package/dist/models/PutTransactionWrapper.js +10 -13
  185. package/dist/models/SaveAccount.d.ts +2 -2
  186. package/dist/models/SaveAccount.js +14 -15
  187. package/dist/models/SaveCategory.d.ts +43 -0
  188. package/dist/models/SaveCategory.js +49 -0
  189. package/dist/models/SaveCategoryResponse.d.ts +2 -2
  190. package/dist/models/SaveCategoryResponse.js +8 -11
  191. package/dist/models/SaveCategoryResponseData.d.ts +2 -2
  192. package/dist/models/SaveCategoryResponseData.js +11 -13
  193. package/dist/models/SaveMonthCategory.d.ts +2 -2
  194. package/dist/models/SaveMonthCategory.js +8 -11
  195. package/dist/models/SavePayee.d.ts +31 -0
  196. package/dist/models/SavePayee.js +45 -0
  197. package/dist/models/SavePayeeResponse.d.ts +32 -0
  198. package/dist/models/SavePayeeResponse.js +48 -0
  199. package/dist/models/SavePayeeResponseData.d.ts +38 -0
  200. package/dist/models/SavePayeeResponseData.js +52 -0
  201. package/dist/models/SaveSubTransaction.d.ts +6 -6
  202. package/dist/models/SaveSubTransaction.js +16 -20
  203. package/dist/models/SaveTransaction.d.ts +8 -28
  204. package/dist/models/SaveTransaction.js +7 -25
  205. package/dist/models/SaveTransactionWithId.d.ts +8 -28
  206. package/dist/models/SaveTransactionWithId.js +7 -25
  207. package/dist/models/SaveTransactionWithIdOrImportId.d.ts +106 -0
  208. package/dist/models/SaveTransactionWithIdOrImportId.js +72 -0
  209. package/dist/models/SaveTransactionWithOptionalFields.d.ts +14 -40
  210. package/dist/models/SaveTransactionWithOptionalFields.js +30 -55
  211. package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.d.ts +25 -0
  212. package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.js +36 -0
  213. package/dist/models/SaveTransactionsResponse.d.ts +2 -2
  214. package/dist/models/SaveTransactionsResponse.js +8 -11
  215. package/dist/models/SaveTransactionsResponseData.d.ts +2 -2
  216. package/dist/models/SaveTransactionsResponseData.js +17 -20
  217. package/dist/models/ScheduledSubTransaction.d.ts +6 -6
  218. package/dist/models/ScheduledSubTransaction.js +25 -26
  219. package/dist/models/ScheduledTransactionDetail.d.ts +18 -24
  220. package/dist/models/ScheduledTransactionDetail.js +50 -55
  221. package/dist/models/ScheduledTransactionResponse.d.ts +2 -2
  222. package/dist/models/ScheduledTransactionResponse.js +8 -11
  223. package/dist/models/ScheduledTransactionResponseData.d.ts +2 -2
  224. package/dist/models/ScheduledTransactionResponseData.js +8 -11
  225. package/dist/models/ScheduledTransactionSummary.d.ts +16 -22
  226. package/dist/models/ScheduledTransactionSummary.js +40 -47
  227. package/dist/models/ScheduledTransactionSummaryFlagColor.d.ts +25 -0
  228. package/dist/models/ScheduledTransactionSummaryFlagColor.js +36 -0
  229. package/dist/models/ScheduledTransactionsResponse.d.ts +2 -2
  230. package/dist/models/ScheduledTransactionsResponse.js +8 -11
  231. package/dist/models/ScheduledTransactionsResponseData.d.ts +2 -2
  232. package/dist/models/ScheduledTransactionsResponseData.js +11 -13
  233. package/dist/models/SubTransaction.d.ts +9 -9
  234. package/dist/models/SubTransaction.js +31 -32
  235. package/dist/models/TransactionClearedStatus.d.ts +25 -0
  236. package/dist/models/TransactionClearedStatus.js +48 -0
  237. package/dist/models/TransactionDetail.d.ts +28 -43
  238. package/dist/models/TransactionDetail.js +65 -78
  239. package/dist/models/TransactionFlagColor.d.ts +28 -0
  240. package/dist/models/TransactionFlagColor.js +51 -0
  241. package/dist/models/TransactionResponse.d.ts +2 -2
  242. package/dist/models/TransactionResponse.js +8 -11
  243. package/dist/models/TransactionResponseData.d.ts +2 -2
  244. package/dist/models/TransactionResponseData.js +8 -11
  245. package/dist/models/TransactionSummary.d.ts +26 -41
  246. package/dist/models/TransactionSummary.js +55 -70
  247. package/dist/models/TransactionSummaryDebtTransactionType.d.ts +25 -0
  248. package/dist/models/TransactionSummaryDebtTransactionType.js +36 -0
  249. package/dist/models/TransactionsImportResponse.d.ts +2 -2
  250. package/dist/models/TransactionsImportResponse.js +8 -11
  251. package/dist/models/TransactionsImportResponseData.d.ts +2 -2
  252. package/dist/models/TransactionsImportResponseData.js +8 -11
  253. package/dist/models/TransactionsResponse.d.ts +2 -2
  254. package/dist/models/TransactionsResponse.js +8 -11
  255. package/dist/models/TransactionsResponseData.d.ts +2 -2
  256. package/dist/models/TransactionsResponseData.js +11 -13
  257. package/dist/models/User.d.ts +2 -2
  258. package/dist/models/User.js +8 -11
  259. package/dist/models/UserResponse.d.ts +2 -2
  260. package/dist/models/UserResponse.js +8 -11
  261. package/dist/models/UserResponseData.d.ts +2 -2
  262. package/dist/models/UserResponseData.js +8 -11
  263. package/dist/models/index.d.ts +11 -9
  264. package/dist/models/index.js +16 -10
  265. package/dist/runtime.d.ts +10 -10
  266. package/dist/runtime.js +1 -1
  267. package/package.json +6 -7
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,9 +19,9 @@ const AccountResponseData_1 = require("./AccountResponseData");
19
19
  * Check if a given object implements the AccountResponse interface.
20
20
  */
21
21
  function instanceOfAccountResponse(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "data" in value;
24
- return isInstance;
22
+ if (!('data' in value) || value['data'] === undefined)
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfAccountResponse = instanceOfAccountResponse;
27
27
  function AccountResponseFromJSON(json) {
@@ -29,7 +29,7 @@ function AccountResponseFromJSON(json) {
29
29
  }
30
30
  exports.AccountResponseFromJSON = AccountResponseFromJSON;
31
31
  function AccountResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
32
+ if (json == null) {
33
33
  return json;
34
34
  }
35
35
  return {
@@ -38,14 +38,11 @@ function AccountResponseFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  exports.AccountResponseFromJSONTyped = AccountResponseFromJSONTyped;
40
40
  function AccountResponseToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
41
+ if (value == null) {
42
+ return value;
46
43
  }
47
44
  return {
48
- 'data': (0, AccountResponseData_1.AccountResponseDataToJSON)(value.data),
45
+ 'data': (0, AccountResponseData_1.AccountResponseDataToJSON)(value['data']),
49
46
  };
50
47
  }
51
48
  exports.AccountResponseToJSON = AccountResponseToJSON;
@@ -2,7 +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
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ export interface AccountResponseData {
26
26
  /**
27
27
  * Check if a given object implements the AccountResponseData interface.
28
28
  */
29
- export declare function instanceOfAccountResponseData(value: object): boolean;
29
+ export declare function instanceOfAccountResponseData(value: object): value is AccountResponseData;
30
30
  export declare function AccountResponseDataFromJSON(json: any): AccountResponseData;
31
31
  export declare function AccountResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountResponseData;
32
32
  export declare function AccountResponseDataToJSON(value?: AccountResponseData | null): any;
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,9 +19,9 @@ const Account_1 = require("./Account");
19
19
  * Check if a given object implements the AccountResponseData interface.
20
20
  */
21
21
  function instanceOfAccountResponseData(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "account" in value;
24
- return isInstance;
22
+ if (!('account' in value) || value['account'] === undefined)
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfAccountResponseData = instanceOfAccountResponseData;
27
27
  function AccountResponseDataFromJSON(json) {
@@ -29,7 +29,7 @@ function AccountResponseDataFromJSON(json) {
29
29
  }
30
30
  exports.AccountResponseDataFromJSON = AccountResponseDataFromJSON;
31
31
  function AccountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
32
+ if (json == null) {
33
33
  return json;
34
34
  }
35
35
  return {
@@ -38,14 +38,11 @@ function AccountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  exports.AccountResponseDataFromJSONTyped = AccountResponseDataFromJSONTyped;
40
40
  function AccountResponseDataToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
41
+ if (value == null) {
42
+ return value;
46
43
  }
47
44
  return {
48
- 'account': (0, Account_1.AccountToJSON)(value.account),
45
+ 'account': (0, Account_1.AccountToJSON)(value['account']),
49
46
  };
50
47
  }
51
48
  exports.AccountResponseDataToJSON = AccountResponseDataToJSON;
@@ -2,7 +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
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -28,7 +28,8 @@ export declare const AccountType: {
28
28
  readonly MedicalDebt: "medicalDebt";
29
29
  readonly OtherDebt: "otherDebt";
30
30
  };
31
- export declare type AccountType = typeof AccountType[keyof typeof AccountType];
31
+ export type AccountType = typeof AccountType[keyof typeof AccountType];
32
+ export declare function instanceOfAccountType(value: any): boolean;
32
33
  export declare function AccountTypeFromJSON(json: any): AccountType;
33
34
  export declare function AccountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountType;
34
35
  export declare function AccountTypeToJSON(value?: AccountType | null): any;
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AccountTypeToJSON = exports.AccountTypeFromJSONTyped = exports.AccountTypeFromJSON = exports.AccountType = void 0;
16
+ exports.AccountTypeToJSON = exports.AccountTypeFromJSONTyped = exports.AccountTypeFromJSON = exports.instanceOfAccountType = exports.AccountType = void 0;
17
17
  /**
18
18
  * The type of account
19
19
  * @export
@@ -33,6 +33,17 @@ exports.AccountType = {
33
33
  MedicalDebt: 'medicalDebt',
34
34
  OtherDebt: 'otherDebt'
35
35
  };
36
+ function instanceOfAccountType(value) {
37
+ for (const key in exports.AccountType) {
38
+ if (Object.prototype.hasOwnProperty.call(exports.AccountType, key)) {
39
+ if (exports.AccountType[key] === value) {
40
+ return true;
41
+ }
42
+ }
43
+ }
44
+ return false;
45
+ }
46
+ exports.instanceOfAccountType = instanceOfAccountType;
36
47
  function AccountTypeFromJSON(json) {
37
48
  return AccountTypeFromJSONTyped(json, false);
38
49
  }
@@ -2,7 +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
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ export interface AccountsResponse {
26
26
  /**
27
27
  * Check if a given object implements the AccountsResponse interface.
28
28
  */
29
- export declare function instanceOfAccountsResponse(value: object): boolean;
29
+ export declare function instanceOfAccountsResponse(value: object): value is AccountsResponse;
30
30
  export declare function AccountsResponseFromJSON(json: any): AccountsResponse;
31
31
  export declare function AccountsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountsResponse;
32
32
  export declare function AccountsResponseToJSON(value?: AccountsResponse | null): any;
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,9 +19,9 @@ const AccountsResponseData_1 = require("./AccountsResponseData");
19
19
  * Check if a given object implements the AccountsResponse interface.
20
20
  */
21
21
  function instanceOfAccountsResponse(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "data" in value;
24
- return isInstance;
22
+ if (!('data' in value) || value['data'] === undefined)
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfAccountsResponse = instanceOfAccountsResponse;
27
27
  function AccountsResponseFromJSON(json) {
@@ -29,7 +29,7 @@ function AccountsResponseFromJSON(json) {
29
29
  }
30
30
  exports.AccountsResponseFromJSON = AccountsResponseFromJSON;
31
31
  function AccountsResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
32
+ if (json == null) {
33
33
  return json;
34
34
  }
35
35
  return {
@@ -38,14 +38,11 @@ function AccountsResponseFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  exports.AccountsResponseFromJSONTyped = AccountsResponseFromJSONTyped;
40
40
  function AccountsResponseToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
41
+ if (value == null) {
42
+ return value;
46
43
  }
47
44
  return {
48
- 'data': (0, AccountsResponseData_1.AccountsResponseDataToJSON)(value.data),
45
+ 'data': (0, AccountsResponseData_1.AccountsResponseDataToJSON)(value['data']),
49
46
  };
50
47
  }
51
48
  exports.AccountsResponseToJSON = AccountsResponseToJSON;
@@ -2,7 +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
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -32,7 +32,7 @@ export interface AccountsResponseData {
32
32
  /**
33
33
  * Check if a given object implements the AccountsResponseData interface.
34
34
  */
35
- export declare function instanceOfAccountsResponseData(value: object): boolean;
35
+ export declare function instanceOfAccountsResponseData(value: object): value is AccountsResponseData;
36
36
  export declare function AccountsResponseDataFromJSON(json: any): AccountsResponseData;
37
37
  export declare function AccountsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountsResponseData;
38
38
  export declare function AccountsResponseDataToJSON(value?: AccountsResponseData | null): any;
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,10 +19,11 @@ const Account_1 = require("./Account");
19
19
  * Check if a given object implements the AccountsResponseData interface.
20
20
  */
21
21
  function instanceOfAccountsResponseData(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "accounts" in value;
24
- isInstance = isInstance && "server_knowledge" in value;
25
- return isInstance;
22
+ if (!('accounts' in value) || value['accounts'] === undefined)
23
+ return false;
24
+ if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
25
+ return false;
26
+ return true;
26
27
  }
27
28
  exports.instanceOfAccountsResponseData = instanceOfAccountsResponseData;
28
29
  function AccountsResponseDataFromJSON(json) {
@@ -30,7 +31,7 @@ function AccountsResponseDataFromJSON(json) {
30
31
  }
31
32
  exports.AccountsResponseDataFromJSON = AccountsResponseDataFromJSON;
32
33
  function AccountsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
33
- if ((json === undefined) || (json === null)) {
34
+ if (json == null) {
34
35
  return json;
35
36
  }
36
37
  return {
@@ -40,15 +41,12 @@ function AccountsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
40
41
  }
41
42
  exports.AccountsResponseDataFromJSONTyped = AccountsResponseDataFromJSONTyped;
42
43
  function AccountsResponseDataToJSON(value) {
43
- if (value === undefined) {
44
- return undefined;
45
- }
46
- if (value === null) {
47
- return null;
44
+ if (value == null) {
45
+ return value;
48
46
  }
49
47
  return {
50
- 'accounts': (value.accounts.map(Account_1.AccountToJSON)),
51
- 'server_knowledge': value.server_knowledge,
48
+ 'accounts': (value['accounts'].map(Account_1.AccountToJSON)),
49
+ 'server_knowledge': value['server_knowledge'],
52
50
  };
53
51
  }
54
52
  exports.AccountsResponseDataToJSON = AccountsResponseDataToJSON;
@@ -2,25 +2,25 @@
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
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { PayeeLocation } from './PayeeLocation';
12
13
  import type { Account } from './Account';
14
+ import type { ScheduledTransactionSummary } from './ScheduledTransactionSummary';
13
15
  import type { Category } from './Category';
14
- import type { CategoryGroup } from './CategoryGroup';
15
16
  import type { CurrencyFormat } from './CurrencyFormat';
16
17
  import type { DateFormat } from './DateFormat';
18
+ import type { SubTransaction } from './SubTransaction';
17
19
  import type { MonthDetail } from './MonthDetail';
18
20
  import type { Payee } from './Payee';
19
- import type { PayeeLocation } from './PayeeLocation';
20
21
  import type { ScheduledSubTransaction } from './ScheduledSubTransaction';
21
- import type { ScheduledTransactionSummary } from './ScheduledTransactionSummary';
22
- import type { SubTransaction } from './SubTransaction';
23
22
  import type { TransactionSummary } from './TransactionSummary';
23
+ import type { CategoryGroup } from './CategoryGroup';
24
24
  /**
25
25
  *
26
26
  * @export
@@ -62,13 +62,13 @@ export interface BudgetDetail {
62
62
  * @type {DateFormat}
63
63
  * @memberof BudgetDetail
64
64
  */
65
- date_format?: DateFormat | null;
65
+ date_format?: DateFormat;
66
66
  /**
67
67
  *
68
68
  * @type {CurrencyFormat}
69
69
  * @memberof BudgetDetail
70
70
  */
71
- currency_format?: CurrencyFormat | null;
71
+ currency_format?: CurrencyFormat;
72
72
  /**
73
73
  *
74
74
  * @type {Array<Account>}
@@ -133,7 +133,7 @@ export interface BudgetDetail {
133
133
  /**
134
134
  * Check if a given object implements the BudgetDetail interface.
135
135
  */
136
- export declare function instanceOfBudgetDetail(value: object): boolean;
136
+ export declare function instanceOfBudgetDetail(value: object): value is BudgetDetail;
137
137
  export declare function BudgetDetailFromJSON(json: any): BudgetDetail;
138
138
  export declare function BudgetDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetail;
139
139
  export declare function BudgetDetailToJSON(value?: BudgetDetail | null): any;
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,27 +14,27 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.BudgetDetailToJSON = exports.BudgetDetailFromJSONTyped = exports.BudgetDetailFromJSON = exports.instanceOfBudgetDetail = void 0;
17
- const runtime_1 = require("../runtime");
17
+ const PayeeLocation_1 = require("./PayeeLocation");
18
18
  const Account_1 = require("./Account");
19
+ const ScheduledTransactionSummary_1 = require("./ScheduledTransactionSummary");
19
20
  const Category_1 = require("./Category");
20
- const CategoryGroup_1 = require("./CategoryGroup");
21
21
  const CurrencyFormat_1 = require("./CurrencyFormat");
22
22
  const DateFormat_1 = require("./DateFormat");
23
+ const SubTransaction_1 = require("./SubTransaction");
23
24
  const MonthDetail_1 = require("./MonthDetail");
24
25
  const Payee_1 = require("./Payee");
25
- const PayeeLocation_1 = require("./PayeeLocation");
26
26
  const ScheduledSubTransaction_1 = require("./ScheduledSubTransaction");
27
- const ScheduledTransactionSummary_1 = require("./ScheduledTransactionSummary");
28
- const SubTransaction_1 = require("./SubTransaction");
29
27
  const TransactionSummary_1 = require("./TransactionSummary");
28
+ const CategoryGroup_1 = require("./CategoryGroup");
30
29
  /**
31
30
  * Check if a given object implements the BudgetDetail interface.
32
31
  */
33
32
  function instanceOfBudgetDetail(value) {
34
- let isInstance = true;
35
- isInstance = isInstance && "id" in value;
36
- isInstance = isInstance && "name" in value;
37
- return isInstance;
33
+ if (!('id' in value) || value['id'] === undefined)
34
+ return false;
35
+ if (!('name' in value) || value['name'] === undefined)
36
+ return false;
37
+ return true;
38
38
  }
39
39
  exports.instanceOfBudgetDetail = instanceOfBudgetDetail;
40
40
  function BudgetDetailFromJSON(json) {
@@ -42,55 +42,52 @@ function BudgetDetailFromJSON(json) {
42
42
  }
43
43
  exports.BudgetDetailFromJSON = BudgetDetailFromJSON;
44
44
  function BudgetDetailFromJSONTyped(json, ignoreDiscriminator) {
45
- if ((json === undefined) || (json === null)) {
45
+ if (json == null) {
46
46
  return json;
47
47
  }
48
48
  return {
49
49
  'id': json['id'],
50
50
  'name': json['name'],
51
- 'last_modified_on': !(0, runtime_1.exists)(json, 'last_modified_on') ? undefined : json['last_modified_on'],
52
- 'first_month': !(0, runtime_1.exists)(json, 'first_month') ? undefined : json['first_month'],
53
- 'last_month': !(0, runtime_1.exists)(json, 'last_month') ? undefined : json['last_month'],
54
- 'date_format': !(0, runtime_1.exists)(json, 'date_format') ? undefined : (0, DateFormat_1.DateFormatFromJSON)(json['date_format']),
55
- 'currency_format': !(0, runtime_1.exists)(json, 'currency_format') ? undefined : (0, CurrencyFormat_1.CurrencyFormatFromJSON)(json['currency_format']),
56
- 'accounts': !(0, runtime_1.exists)(json, 'accounts') ? undefined : (json['accounts'].map(Account_1.AccountFromJSON)),
57
- 'payees': !(0, runtime_1.exists)(json, 'payees') ? undefined : (json['payees'].map(Payee_1.PayeeFromJSON)),
58
- 'payee_locations': !(0, runtime_1.exists)(json, 'payee_locations') ? undefined : (json['payee_locations'].map(PayeeLocation_1.PayeeLocationFromJSON)),
59
- 'category_groups': !(0, runtime_1.exists)(json, 'category_groups') ? undefined : (json['category_groups'].map(CategoryGroup_1.CategoryGroupFromJSON)),
60
- 'categories': !(0, runtime_1.exists)(json, 'categories') ? undefined : (json['categories'].map(Category_1.CategoryFromJSON)),
61
- 'months': !(0, runtime_1.exists)(json, 'months') ? undefined : (json['months'].map(MonthDetail_1.MonthDetailFromJSON)),
62
- 'transactions': !(0, runtime_1.exists)(json, 'transactions') ? undefined : (json['transactions'].map(TransactionSummary_1.TransactionSummaryFromJSON)),
63
- 'subtransactions': !(0, runtime_1.exists)(json, 'subtransactions') ? undefined : (json['subtransactions'].map(SubTransaction_1.SubTransactionFromJSON)),
64
- 'scheduled_transactions': !(0, runtime_1.exists)(json, 'scheduled_transactions') ? undefined : (json['scheduled_transactions'].map(ScheduledTransactionSummary_1.ScheduledTransactionSummaryFromJSON)),
65
- 'scheduled_subtransactions': !(0, runtime_1.exists)(json, 'scheduled_subtransactions') ? undefined : (json['scheduled_subtransactions'].map(ScheduledSubTransaction_1.ScheduledSubTransactionFromJSON)),
51
+ 'last_modified_on': json['last_modified_on'] == null ? undefined : json['last_modified_on'],
52
+ 'first_month': json['first_month'] == null ? undefined : json['first_month'],
53
+ 'last_month': json['last_month'] == null ? undefined : json['last_month'],
54
+ 'date_format': json['date_format'] == null ? undefined : (0, DateFormat_1.DateFormatFromJSON)(json['date_format']),
55
+ 'currency_format': json['currency_format'] == null ? undefined : (0, CurrencyFormat_1.CurrencyFormatFromJSON)(json['currency_format']),
56
+ 'accounts': json['accounts'] == null ? undefined : (json['accounts'].map(Account_1.AccountFromJSON)),
57
+ 'payees': json['payees'] == null ? undefined : (json['payees'].map(Payee_1.PayeeFromJSON)),
58
+ 'payee_locations': json['payee_locations'] == null ? undefined : (json['payee_locations'].map(PayeeLocation_1.PayeeLocationFromJSON)),
59
+ 'category_groups': json['category_groups'] == null ? undefined : (json['category_groups'].map(CategoryGroup_1.CategoryGroupFromJSON)),
60
+ 'categories': json['categories'] == null ? undefined : (json['categories'].map(Category_1.CategoryFromJSON)),
61
+ 'months': json['months'] == null ? undefined : (json['months'].map(MonthDetail_1.MonthDetailFromJSON)),
62
+ 'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(TransactionSummary_1.TransactionSummaryFromJSON)),
63
+ 'subtransactions': json['subtransactions'] == null ? undefined : (json['subtransactions'].map(SubTransaction_1.SubTransactionFromJSON)),
64
+ 'scheduled_transactions': json['scheduled_transactions'] == null ? undefined : (json['scheduled_transactions'].map(ScheduledTransactionSummary_1.ScheduledTransactionSummaryFromJSON)),
65
+ 'scheduled_subtransactions': json['scheduled_subtransactions'] == null ? undefined : (json['scheduled_subtransactions'].map(ScheduledSubTransaction_1.ScheduledSubTransactionFromJSON)),
66
66
  };
67
67
  }
68
68
  exports.BudgetDetailFromJSONTyped = BudgetDetailFromJSONTyped;
69
69
  function BudgetDetailToJSON(value) {
70
- if (value === undefined) {
71
- return undefined;
72
- }
73
- if (value === null) {
74
- return null;
70
+ if (value == null) {
71
+ return value;
75
72
  }
76
73
  return {
77
- 'id': value.id,
78
- 'name': value.name,
79
- 'last_modified_on': value.last_modified_on,
80
- 'first_month': value.first_month,
81
- 'last_month': value.last_month,
82
- 'date_format': (0, DateFormat_1.DateFormatToJSON)(value.date_format),
83
- 'currency_format': (0, CurrencyFormat_1.CurrencyFormatToJSON)(value.currency_format),
84
- 'accounts': value.accounts === undefined ? undefined : (value.accounts.map(Account_1.AccountToJSON)),
85
- 'payees': value.payees === undefined ? undefined : (value.payees.map(Payee_1.PayeeToJSON)),
86
- 'payee_locations': value.payee_locations === undefined ? undefined : (value.payee_locations.map(PayeeLocation_1.PayeeLocationToJSON)),
87
- 'category_groups': value.category_groups === undefined ? undefined : (value.category_groups.map(CategoryGroup_1.CategoryGroupToJSON)),
88
- 'categories': value.categories === undefined ? undefined : (value.categories.map(Category_1.CategoryToJSON)),
89
- 'months': value.months === undefined ? undefined : (value.months.map(MonthDetail_1.MonthDetailToJSON)),
90
- 'transactions': value.transactions === undefined ? undefined : (value.transactions.map(TransactionSummary_1.TransactionSummaryToJSON)),
91
- 'subtransactions': value.subtransactions === undefined ? undefined : (value.subtransactions.map(SubTransaction_1.SubTransactionToJSON)),
92
- 'scheduled_transactions': value.scheduled_transactions === undefined ? undefined : (value.scheduled_transactions.map(ScheduledTransactionSummary_1.ScheduledTransactionSummaryToJSON)),
93
- 'scheduled_subtransactions': value.scheduled_subtransactions === undefined ? undefined : (value.scheduled_subtransactions.map(ScheduledSubTransaction_1.ScheduledSubTransactionToJSON)),
74
+ 'id': value['id'],
75
+ 'name': value['name'],
76
+ 'last_modified_on': value['last_modified_on'],
77
+ 'first_month': value['first_month'],
78
+ 'last_month': value['last_month'],
79
+ 'date_format': (0, DateFormat_1.DateFormatToJSON)(value['date_format']),
80
+ 'currency_format': (0, CurrencyFormat_1.CurrencyFormatToJSON)(value['currency_format']),
81
+ 'accounts': value['accounts'] == null ? undefined : (value['accounts'].map(Account_1.AccountToJSON)),
82
+ 'payees': value['payees'] == null ? undefined : (value['payees'].map(Payee_1.PayeeToJSON)),
83
+ 'payee_locations': value['payee_locations'] == null ? undefined : (value['payee_locations'].map(PayeeLocation_1.PayeeLocationToJSON)),
84
+ 'category_groups': value['category_groups'] == null ? undefined : (value['category_groups'].map(CategoryGroup_1.CategoryGroupToJSON)),
85
+ 'categories': value['categories'] == null ? undefined : (value['categories'].map(Category_1.CategoryToJSON)),
86
+ 'months': value['months'] == null ? undefined : (value['months'].map(MonthDetail_1.MonthDetailToJSON)),
87
+ 'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(TransactionSummary_1.TransactionSummaryToJSON)),
88
+ 'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(SubTransaction_1.SubTransactionToJSON)),
89
+ 'scheduled_transactions': value['scheduled_transactions'] == null ? undefined : (value['scheduled_transactions'].map(ScheduledTransactionSummary_1.ScheduledTransactionSummaryToJSON)),
90
+ 'scheduled_subtransactions': value['scheduled_subtransactions'] == null ? undefined : (value['scheduled_subtransactions'].map(ScheduledSubTransaction_1.ScheduledSubTransactionToJSON)),
94
91
  };
95
92
  }
96
93
  exports.BudgetDetailToJSON = BudgetDetailToJSON;
@@ -2,7 +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
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ export interface BudgetDetailResponse {
26
26
  /**
27
27
  * Check if a given object implements the BudgetDetailResponse interface.
28
28
  */
29
- export declare function instanceOfBudgetDetailResponse(value: object): boolean;
29
+ export declare function instanceOfBudgetDetailResponse(value: object): value is BudgetDetailResponse;
30
30
  export declare function BudgetDetailResponseFromJSON(json: any): BudgetDetailResponse;
31
31
  export declare function BudgetDetailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailResponse;
32
32
  export declare function BudgetDetailResponseToJSON(value?: BudgetDetailResponse | null): any;
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * 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
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,9 +19,9 @@ const BudgetDetailResponseData_1 = require("./BudgetDetailResponseData");
19
19
  * Check if a given object implements the BudgetDetailResponse interface.
20
20
  */
21
21
  function instanceOfBudgetDetailResponse(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "data" in value;
24
- return isInstance;
22
+ if (!('data' in value) || value['data'] === undefined)
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfBudgetDetailResponse = instanceOfBudgetDetailResponse;
27
27
  function BudgetDetailResponseFromJSON(json) {
@@ -29,7 +29,7 @@ function BudgetDetailResponseFromJSON(json) {
29
29
  }
30
30
  exports.BudgetDetailResponseFromJSON = BudgetDetailResponseFromJSON;
31
31
  function BudgetDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
32
+ if (json == null) {
33
33
  return json;
34
34
  }
35
35
  return {
@@ -38,14 +38,11 @@ function BudgetDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  exports.BudgetDetailResponseFromJSONTyped = BudgetDetailResponseFromJSONTyped;
40
40
  function BudgetDetailResponseToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
41
+ if (value == null) {
42
+ return value;
46
43
  }
47
44
  return {
48
- 'data': (0, BudgetDetailResponseData_1.BudgetDetailResponseDataToJSON)(value.data),
45
+ 'data': (0, BudgetDetailResponseData_1.BudgetDetailResponseDataToJSON)(value['data']),
49
46
  };
50
47
  }
51
48
  exports.BudgetDetailResponseToJSON = BudgetDetailResponseToJSON;
@@ -2,7 +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
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -32,7 +32,7 @@ export interface BudgetDetailResponseData {
32
32
  /**
33
33
  * Check if a given object implements the BudgetDetailResponseData interface.
34
34
  */
35
- export declare function instanceOfBudgetDetailResponseData(value: object): boolean;
35
+ export declare function instanceOfBudgetDetailResponseData(value: object): value is BudgetDetailResponseData;
36
36
  export declare function BudgetDetailResponseDataFromJSON(json: any): BudgetDetailResponseData;
37
37
  export declare function BudgetDetailResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetDetailResponseData;
38
38
  export declare function BudgetDetailResponseDataToJSON(value?: BudgetDetailResponseData | null): any;