ynab 2.4.0 → 2.6.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 (230) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/AccountsApi.js +24 -1
  3. package/dist/apis/BudgetsApi.js +24 -1
  4. package/dist/apis/CategoriesApi.js +24 -1
  5. package/dist/apis/DeprecatedApi.js +24 -1
  6. package/dist/apis/MonthsApi.js +24 -1
  7. package/dist/apis/PayeeLocationsApi.js +24 -1
  8. package/dist/apis/PayeesApi.js +24 -1
  9. package/dist/apis/ScheduledTransactionsApi.js +24 -1
  10. package/dist/apis/TransactionsApi.js +24 -1
  11. package/dist/apis/UserApi.js +24 -1
  12. package/dist/browser/ynab.js +1 -1
  13. package/dist/esm/apis/AccountsApi.d.ts +1 -6
  14. package/dist/esm/apis/AccountsApi.js +2 -7
  15. package/dist/esm/apis/BudgetsApi.d.ts +1 -6
  16. package/dist/esm/apis/BudgetsApi.js +2 -7
  17. package/dist/esm/apis/CategoriesApi.d.ts +1 -6
  18. package/dist/esm/apis/CategoriesApi.js +2 -7
  19. package/dist/esm/apis/DeprecatedApi.js +1 -1
  20. package/dist/esm/apis/MonthsApi.d.ts +1 -6
  21. package/dist/esm/apis/MonthsApi.js +2 -7
  22. package/dist/esm/apis/PayeeLocationsApi.d.ts +1 -6
  23. package/dist/esm/apis/PayeeLocationsApi.js +2 -7
  24. package/dist/esm/apis/PayeesApi.d.ts +17 -7
  25. package/dist/esm/apis/PayeesApi.js +67 -8
  26. package/dist/esm/apis/ScheduledTransactionsApi.d.ts +16 -7
  27. package/dist/esm/apis/ScheduledTransactionsApi.js +64 -8
  28. package/dist/esm/apis/TransactionsApi.d.ts +40 -20
  29. package/dist/esm/apis/TransactionsApi.js +87 -17
  30. package/dist/esm/apis/UserApi.d.ts +1 -6
  31. package/dist/esm/apis/UserApi.js +2 -7
  32. package/dist/esm/models/Account.d.ts +2 -7
  33. package/dist/esm/models/Account.js +51 -51
  34. package/dist/esm/models/AccountResponse.d.ts +2 -7
  35. package/dist/esm/models/AccountResponse.js +8 -16
  36. package/dist/esm/models/AccountResponseData.d.ts +2 -7
  37. package/dist/esm/models/AccountResponseData.js +8 -16
  38. package/dist/esm/models/AccountType.d.ts +3 -7
  39. package/dist/esm/models/AccountType.js +11 -6
  40. package/dist/esm/models/AccountsResponse.d.ts +2 -7
  41. package/dist/esm/models/AccountsResponse.js +8 -16
  42. package/dist/esm/models/AccountsResponseData.d.ts +2 -7
  43. package/dist/esm/models/AccountsResponseData.js +11 -18
  44. package/dist/esm/models/BudgetDetail.d.ts +6 -11
  45. package/dist/esm/models/BudgetDetail.js +45 -53
  46. package/dist/esm/models/BudgetDetailResponse.d.ts +2 -7
  47. package/dist/esm/models/BudgetDetailResponse.js +8 -16
  48. package/dist/esm/models/BudgetDetailResponseData.d.ts +2 -7
  49. package/dist/esm/models/BudgetDetailResponseData.js +11 -18
  50. package/dist/esm/models/BudgetSettings.d.ts +2 -7
  51. package/dist/esm/models/BudgetSettings.js +11 -18
  52. package/dist/esm/models/BudgetSettingsResponse.d.ts +2 -7
  53. package/dist/esm/models/BudgetSettingsResponse.js +8 -16
  54. package/dist/esm/models/BudgetSettingsResponseData.d.ts +2 -7
  55. package/dist/esm/models/BudgetSettingsResponseData.js +8 -16
  56. package/dist/esm/models/BudgetSummary.d.ts +2 -7
  57. package/dist/esm/models/BudgetSummary.js +23 -31
  58. package/dist/esm/models/BudgetSummaryResponse.d.ts +2 -7
  59. package/dist/esm/models/BudgetSummaryResponse.js +8 -16
  60. package/dist/esm/models/BudgetSummaryResponseData.d.ts +2 -7
  61. package/dist/esm/models/BudgetSummaryResponseData.js +10 -19
  62. package/dist/esm/models/BulkResponse.d.ts +2 -7
  63. package/dist/esm/models/BulkResponse.js +8 -16
  64. package/dist/esm/models/BulkResponseData.d.ts +2 -7
  65. package/dist/esm/models/BulkResponseData.js +8 -16
  66. package/dist/esm/models/BulkResponseDataBulk.d.ts +2 -7
  67. package/dist/esm/models/BulkResponseDataBulk.js +11 -18
  68. package/dist/esm/models/BulkTransactions.d.ts +5 -10
  69. package/dist/esm/models/BulkTransactions.js +10 -18
  70. package/dist/esm/models/CategoriesResponse.d.ts +2 -7
  71. package/dist/esm/models/CategoriesResponse.js +8 -16
  72. package/dist/esm/models/CategoriesResponseData.d.ts +2 -7
  73. package/dist/esm/models/CategoriesResponseData.js +11 -18
  74. package/dist/esm/models/Category.d.ts +10 -9
  75. package/dist/esm/models/Category.js +61 -61
  76. package/dist/esm/models/CategoryGroup.d.ts +2 -7
  77. package/dist/esm/models/CategoryGroup.js +17 -22
  78. package/dist/esm/models/CategoryGroupWithCategories.d.ts +2 -7
  79. package/dist/esm/models/CategoryGroupWithCategories.js +20 -24
  80. package/dist/esm/models/CategoryResponse.d.ts +2 -7
  81. package/dist/esm/models/CategoryResponse.js +8 -16
  82. package/dist/esm/models/CategoryResponseData.d.ts +2 -7
  83. package/dist/esm/models/CategoryResponseData.js +8 -16
  84. package/dist/esm/models/CurrencyFormat.d.ts +2 -7
  85. package/dist/esm/models/CurrencyFormat.js +29 -30
  86. package/dist/esm/models/DateFormat.d.ts +2 -7
  87. package/dist/esm/models/DateFormat.js +8 -16
  88. package/dist/esm/models/ErrorDetail.d.ts +2 -7
  89. package/dist/esm/models/ErrorDetail.js +14 -20
  90. package/dist/esm/models/ErrorResponse.d.ts +2 -7
  91. package/dist/esm/models/ErrorResponse.js +8 -16
  92. package/dist/esm/models/ExistingTransaction.d.ts +89 -0
  93. package/dist/esm/models/ExistingTransaction.js +56 -0
  94. package/dist/esm/models/HybridTransaction.d.ts +12 -11
  95. package/dist/esm/models/HybridTransaction.js +63 -62
  96. package/dist/esm/models/HybridTransactionAllOf.d.ts +1 -1
  97. package/dist/esm/models/HybridTransactionsResponse.d.ts +2 -7
  98. package/dist/esm/models/HybridTransactionsResponse.js +8 -16
  99. package/dist/esm/models/HybridTransactionsResponseData.d.ts +2 -7
  100. package/dist/esm/models/HybridTransactionsResponseData.js +10 -19
  101. package/dist/esm/models/MonthDetail.d.ts +2 -7
  102. package/dist/esm/models/MonthDetail.js +30 -33
  103. package/dist/esm/models/MonthDetailResponse.d.ts +2 -7
  104. package/dist/esm/models/MonthDetailResponse.js +8 -16
  105. package/dist/esm/models/MonthDetailResponseData.d.ts +2 -7
  106. package/dist/esm/models/MonthDetailResponseData.js +8 -16
  107. package/dist/esm/models/MonthSummariesResponse.d.ts +2 -7
  108. package/dist/esm/models/MonthSummariesResponse.js +8 -16
  109. package/dist/esm/models/MonthSummariesResponseData.d.ts +2 -7
  110. package/dist/esm/models/MonthSummariesResponseData.js +11 -18
  111. package/dist/esm/models/MonthSummary.d.ts +2 -7
  112. package/dist/esm/models/MonthSummary.js +27 -31
  113. package/dist/esm/models/NewTransaction.d.ts +95 -0
  114. package/dist/esm/models/NewTransaction.js +58 -0
  115. package/dist/esm/models/PatchCategoryWrapper.d.ts +2 -7
  116. package/dist/esm/models/PatchCategoryWrapper.js +8 -16
  117. package/dist/esm/models/PatchMonthCategoryWrapper.d.ts +2 -7
  118. package/dist/esm/models/PatchMonthCategoryWrapper.js +8 -16
  119. package/dist/esm/models/PatchPayeeWrapper.d.ts +27 -0
  120. package/dist/esm/models/PatchPayeeWrapper.js +36 -0
  121. package/dist/esm/models/PatchTransactionsWrapper.d.ts +5 -10
  122. package/dist/esm/models/PatchTransactionsWrapper.js +10 -18
  123. package/dist/esm/models/Payee.d.ts +2 -7
  124. package/dist/esm/models/Payee.js +16 -23
  125. package/dist/esm/models/PayeeLocation.d.ts +2 -7
  126. package/dist/esm/models/PayeeLocation.js +20 -24
  127. package/dist/esm/models/PayeeLocationResponse.d.ts +2 -7
  128. package/dist/esm/models/PayeeLocationResponse.js +8 -16
  129. package/dist/esm/models/PayeeLocationResponseData.d.ts +2 -7
  130. package/dist/esm/models/PayeeLocationResponseData.js +8 -16
  131. package/dist/esm/models/PayeeLocationsResponse.d.ts +2 -7
  132. package/dist/esm/models/PayeeLocationsResponse.js +8 -16
  133. package/dist/esm/models/PayeeLocationsResponseData.d.ts +2 -7
  134. package/dist/esm/models/PayeeLocationsResponseData.js +8 -16
  135. package/dist/esm/models/PayeeResponse.d.ts +2 -7
  136. package/dist/esm/models/PayeeResponse.js +8 -16
  137. package/dist/esm/models/PayeeResponseData.d.ts +2 -7
  138. package/dist/esm/models/PayeeResponseData.js +8 -16
  139. package/dist/esm/models/PayeesResponse.d.ts +2 -7
  140. package/dist/esm/models/PayeesResponse.js +8 -16
  141. package/dist/esm/models/PayeesResponseData.d.ts +2 -7
  142. package/dist/esm/models/PayeesResponseData.js +11 -18
  143. package/dist/esm/models/PostAccountWrapper.d.ts +2 -7
  144. package/dist/esm/models/PostAccountWrapper.js +8 -16
  145. package/dist/esm/models/PostScheduledTransactionWrapper.d.ts +27 -0
  146. package/dist/esm/models/PostScheduledTransactionWrapper.js +36 -0
  147. package/dist/esm/models/PostTransactionsWrapper.d.ts +7 -12
  148. package/dist/esm/models/PostTransactionsWrapper.js +10 -20
  149. package/dist/esm/models/PutTransactionWrapper.d.ts +5 -10
  150. package/dist/esm/models/PutTransactionWrapper.js +10 -18
  151. package/dist/esm/models/SaveAccount.d.ts +2 -7
  152. package/dist/esm/models/SaveAccount.js +14 -20
  153. package/dist/esm/models/SaveCategory.d.ts +2 -7
  154. package/dist/esm/models/SaveCategory.js +11 -21
  155. package/dist/esm/models/SaveCategoryResponse.d.ts +2 -7
  156. package/dist/esm/models/SaveCategoryResponse.js +8 -16
  157. package/dist/esm/models/SaveCategoryResponseData.d.ts +2 -7
  158. package/dist/esm/models/SaveCategoryResponseData.js +11 -18
  159. package/dist/esm/models/SaveMonthCategory.d.ts +2 -7
  160. package/dist/esm/models/SaveMonthCategory.js +8 -16
  161. package/dist/esm/models/SavePayee.d.ts +26 -0
  162. package/dist/esm/models/SavePayee.js +33 -0
  163. package/dist/esm/models/SavePayeeResponse.d.ts +27 -0
  164. package/dist/esm/models/SavePayeeResponse.js +36 -0
  165. package/dist/esm/models/SavePayeeResponseData.d.ts +33 -0
  166. package/dist/esm/models/SavePayeeResponseData.js +40 -0
  167. package/dist/esm/models/SaveScheduledTransaction.d.ts +76 -0
  168. package/dist/esm/models/SaveScheduledTransaction.js +55 -0
  169. package/dist/esm/models/SaveSubTransaction.d.ts +2 -7
  170. package/dist/esm/models/SaveSubTransaction.js +16 -25
  171. package/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts +101 -0
  172. package/dist/esm/models/SaveTransactionWithIdOrImportId.js +60 -0
  173. package/dist/esm/models/SaveTransactionWithOptionalFields.d.ts +5 -16
  174. package/dist/esm/models/SaveTransactionWithOptionalFields.js +29 -41
  175. package/dist/esm/models/SaveTransactionsResponse.d.ts +2 -7
  176. package/dist/esm/models/SaveTransactionsResponse.js +8 -16
  177. package/dist/esm/models/SaveTransactionsResponseData.d.ts +2 -7
  178. package/dist/esm/models/SaveTransactionsResponseData.js +17 -25
  179. package/dist/esm/models/ScheduledSubTransaction.d.ts +2 -7
  180. package/dist/esm/models/ScheduledSubTransaction.js +25 -31
  181. package/dist/esm/models/ScheduledTransactionDetail.d.ts +10 -9
  182. package/dist/esm/models/ScheduledTransactionDetail.js +49 -48
  183. package/dist/esm/models/ScheduledTransactionFrequency.d.ts +30 -0
  184. package/dist/esm/models/ScheduledTransactionFrequency.js +46 -0
  185. package/dist/esm/models/ScheduledTransactionResponse.d.ts +2 -7
  186. package/dist/esm/models/ScheduledTransactionResponse.js +8 -16
  187. package/dist/esm/models/ScheduledTransactionResponseData.d.ts +2 -7
  188. package/dist/esm/models/ScheduledTransactionResponseData.js +8 -16
  189. package/dist/esm/models/ScheduledTransactionSummary.d.ts +9 -8
  190. package/dist/esm/models/ScheduledTransactionSummary.js +38 -39
  191. package/dist/esm/models/ScheduledTransactionsResponse.d.ts +2 -7
  192. package/dist/esm/models/ScheduledTransactionsResponse.js +8 -16
  193. package/dist/esm/models/ScheduledTransactionsResponseData.d.ts +2 -7
  194. package/dist/esm/models/ScheduledTransactionsResponseData.js +11 -18
  195. package/dist/esm/models/SubTransaction.d.ts +2 -7
  196. package/dist/esm/models/SubTransaction.js +31 -37
  197. package/dist/esm/models/TransactionClearedStatus.d.ts +3 -7
  198. package/dist/esm/models/TransactionClearedStatus.js +11 -6
  199. package/dist/esm/models/TransactionDetail.d.ts +12 -11
  200. package/dist/esm/models/TransactionDetail.js +62 -61
  201. package/dist/esm/models/TransactionFlagColor.d.ts +3 -7
  202. package/dist/esm/models/TransactionFlagColor.js +11 -6
  203. package/dist/esm/models/TransactionResponse.d.ts +2 -7
  204. package/dist/esm/models/TransactionResponse.js +8 -16
  205. package/dist/esm/models/TransactionResponseData.d.ts +2 -7
  206. package/dist/esm/models/TransactionResponseData.js +8 -16
  207. package/dist/esm/models/TransactionSummary.d.ts +11 -10
  208. package/dist/esm/models/TransactionSummary.js +51 -52
  209. package/dist/esm/models/TransactionsImportResponse.d.ts +2 -7
  210. package/dist/esm/models/TransactionsImportResponse.js +8 -16
  211. package/dist/esm/models/TransactionsImportResponseData.d.ts +2 -7
  212. package/dist/esm/models/TransactionsImportResponseData.js +8 -16
  213. package/dist/esm/models/TransactionsResponse.d.ts +2 -7
  214. package/dist/esm/models/TransactionsResponse.js +8 -16
  215. package/dist/esm/models/TransactionsResponseData.d.ts +2 -7
  216. package/dist/esm/models/TransactionsResponseData.js +11 -18
  217. package/dist/esm/models/User.d.ts +2 -7
  218. package/dist/esm/models/User.js +8 -16
  219. package/dist/esm/models/UserResponse.d.ts +2 -7
  220. package/dist/esm/models/UserResponse.js +8 -16
  221. package/dist/esm/models/UserResponseData.d.ts +2 -7
  222. package/dist/esm/models/UserResponseData.js +8 -16
  223. package/dist/esm/models/index.d.ts +10 -9
  224. package/dist/esm/models/index.js +10 -9
  225. package/dist/esm/runtime.d.ts +12 -17
  226. package/dist/esm/runtime.js +43 -39
  227. package/dist/index.js +17 -2
  228. package/dist/runtime.d.ts +5 -5
  229. package/dist/runtime.js +58 -48
  230. package/package.json +1 -1
@@ -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 { BudgetSettings } from './BudgetSettings';
13
8
  /**
@@ -26,7 +21,7 @@ export interface BudgetSettingsResponseData {
26
21
  /**
27
22
  * Check if a given object implements the BudgetSettingsResponseData interface.
28
23
  */
29
- export declare function instanceOfBudgetSettingsResponseData(value: object): boolean;
24
+ export declare function instanceOfBudgetSettingsResponseData(value: object): value is BudgetSettingsResponseData;
30
25
  export declare function BudgetSettingsResponseDataFromJSON(json: any): BudgetSettingsResponseData;
31
26
  export declare function BudgetSettingsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSettingsResponseData;
32
27
  export declare function BudgetSettingsResponseDataToJSON(value?: BudgetSettingsResponseData | 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 { BudgetSettingsFromJSON, BudgetSettingsToJSON, } from './BudgetSettings';
15
10
  /**
16
11
  * Check if a given object implements the BudgetSettingsResponseData interface.
17
12
  */
18
13
  export function instanceOfBudgetSettingsResponseData(value) {
19
- var isInstance = true;
20
- isInstance = isInstance && "settings" in value;
21
- return isInstance;
14
+ if (!('settings' in value) || value['settings'] === undefined)
15
+ return false;
16
+ return true;
22
17
  }
23
18
  export function BudgetSettingsResponseDataFromJSON(json) {
24
19
  return BudgetSettingsResponseDataFromJSONTyped(json, false);
25
20
  }
26
21
  export function BudgetSettingsResponseDataFromJSONTyped(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 BudgetSettingsResponseDataFromJSONTyped(json, ignoreDiscriminato
32
27
  };
33
28
  }
34
29
  export function BudgetSettingsResponseDataToJSON(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
- 'settings': BudgetSettingsToJSON(value.settings),
34
+ 'settings': BudgetSettingsToJSON(value['settings']),
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 { Account } from './Account';
13
8
  import type { CurrencyFormat } from './CurrencyFormat';
@@ -70,7 +65,7 @@ export interface BudgetSummary {
70
65
  /**
71
66
  * Check if a given object implements the BudgetSummary interface.
72
67
  */
73
- export declare function instanceOfBudgetSummary(value: object): boolean;
68
+ export declare function instanceOfBudgetSummary(value: object): value is BudgetSummary;
74
69
  export declare function BudgetSummaryFromJSON(json: any): BudgetSummary;
75
70
  export declare function BudgetSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummary;
76
71
  export declare function BudgetSummaryToJSON(value?: BudgetSummary | null): any;
@@ -4,14 +4,8 @@
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
- import { exists } from '../runtime';
15
9
  import { AccountFromJSON, AccountToJSON, } from './Account';
16
10
  import { CurrencyFormatFromJSON, CurrencyFormatToJSON, } from './CurrencyFormat';
17
11
  import { DateFormatFromJSON, DateFormatToJSON, } from './DateFormat';
@@ -19,44 +13,42 @@ import { DateFormatFromJSON, DateFormatToJSON, } from './DateFormat';
19
13
  * Check if a given object implements the BudgetSummary interface.
20
14
  */
21
15
  export function instanceOfBudgetSummary(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "id" in value;
24
- isInstance = isInstance && "name" in value;
25
- return isInstance;
16
+ if (!('id' in value) || value['id'] === undefined)
17
+ return false;
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ return true;
26
21
  }
27
22
  export function BudgetSummaryFromJSON(json) {
28
23
  return BudgetSummaryFromJSONTyped(json, false);
29
24
  }
30
25
  export function BudgetSummaryFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
26
+ if (json == null) {
32
27
  return json;
33
28
  }
34
29
  return {
35
30
  'id': json['id'],
36
31
  'name': json['name'],
37
- 'last_modified_on': !exists(json, 'last_modified_on') ? undefined : json['last_modified_on'],
38
- 'first_month': !exists(json, 'first_month') ? undefined : json['first_month'],
39
- 'last_month': !exists(json, 'last_month') ? undefined : json['last_month'],
40
- 'date_format': !exists(json, 'date_format') ? undefined : DateFormatFromJSON(json['date_format']),
41
- 'currency_format': !exists(json, 'currency_format') ? undefined : CurrencyFormatFromJSON(json['currency_format']),
42
- 'accounts': !exists(json, 'accounts') ? undefined : (json['accounts'].map(AccountFromJSON)),
32
+ 'last_modified_on': json['last_modified_on'] == null ? undefined : json['last_modified_on'],
33
+ 'first_month': json['first_month'] == null ? undefined : json['first_month'],
34
+ 'last_month': json['last_month'] == null ? undefined : json['last_month'],
35
+ 'date_format': json['date_format'] == null ? undefined : DateFormatFromJSON(json['date_format']),
36
+ 'currency_format': json['currency_format'] == null ? undefined : CurrencyFormatFromJSON(json['currency_format']),
37
+ 'accounts': json['accounts'] == null ? undefined : (json['accounts'].map(AccountFromJSON)),
43
38
  };
44
39
  }
45
40
  export function BudgetSummaryToJSON(value) {
46
- if (value === undefined) {
47
- return undefined;
48
- }
49
- if (value === null) {
50
- return null;
41
+ if (value == null) {
42
+ return value;
51
43
  }
52
44
  return {
53
- 'id': value.id,
54
- 'name': value.name,
55
- 'last_modified_on': value.last_modified_on,
56
- 'first_month': value.first_month,
57
- 'last_month': value.last_month,
58
- 'date_format': DateFormatToJSON(value.date_format),
59
- 'currency_format': CurrencyFormatToJSON(value.currency_format),
60
- 'accounts': value.accounts === undefined ? undefined : (value.accounts.map(AccountToJSON)),
45
+ 'id': value['id'],
46
+ 'name': value['name'],
47
+ 'last_modified_on': value['last_modified_on'],
48
+ 'first_month': value['first_month'],
49
+ 'last_month': value['last_month'],
50
+ 'date_format': DateFormatToJSON(value['date_format']),
51
+ 'currency_format': CurrencyFormatToJSON(value['currency_format']),
52
+ 'accounts': value['accounts'] == null ? undefined : (value['accounts'].map(AccountToJSON)),
61
53
  };
62
54
  }
@@ -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 { BudgetSummaryResponseData } from './BudgetSummaryResponseData';
13
8
  /**
@@ -26,7 +21,7 @@ export interface BudgetSummaryResponse {
26
21
  /**
27
22
  * Check if a given object implements the BudgetSummaryResponse interface.
28
23
  */
29
- export declare function instanceOfBudgetSummaryResponse(value: object): boolean;
24
+ export declare function instanceOfBudgetSummaryResponse(value: object): value is BudgetSummaryResponse;
30
25
  export declare function BudgetSummaryResponseFromJSON(json: any): BudgetSummaryResponse;
31
26
  export declare function BudgetSummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummaryResponse;
32
27
  export declare function BudgetSummaryResponseToJSON(value?: BudgetSummaryResponse | 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 { BudgetSummaryResponseDataFromJSON, BudgetSummaryResponseDataToJSON, } from './BudgetSummaryResponseData';
15
10
  /**
16
11
  * Check if a given object implements the BudgetSummaryResponse interface.
17
12
  */
18
13
  export function instanceOfBudgetSummaryResponse(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 BudgetSummaryResponseFromJSON(json) {
24
19
  return BudgetSummaryResponseFromJSONTyped(json, false);
25
20
  }
26
21
  export function BudgetSummaryResponseFromJSONTyped(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 BudgetSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
32
27
  };
33
28
  }
34
29
  export function BudgetSummaryResponseToJSON(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': BudgetSummaryResponseDataToJSON(value.data),
34
+ 'data': BudgetSummaryResponseDataToJSON(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 { BudgetSummary } from './BudgetSummary';
13
8
  /**
@@ -32,7 +27,7 @@ export interface BudgetSummaryResponseData {
32
27
  /**
33
28
  * Check if a given object implements the BudgetSummaryResponseData interface.
34
29
  */
35
- export declare function instanceOfBudgetSummaryResponseData(value: object): boolean;
30
+ export declare function instanceOfBudgetSummaryResponseData(value: object): value is BudgetSummaryResponseData;
36
31
  export declare function BudgetSummaryResponseDataFromJSON(json: any): BudgetSummaryResponseData;
37
32
  export declare function BudgetSummaryResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BudgetSummaryResponseData;
38
33
  export declare function BudgetSummaryResponseDataToJSON(value?: BudgetSummaryResponseData | null): any;
@@ -4,44 +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
- import { exists } from '../runtime';
15
9
  import { BudgetSummaryFromJSON, BudgetSummaryToJSON, } from './BudgetSummary';
16
10
  /**
17
11
  * Check if a given object implements the BudgetSummaryResponseData interface.
18
12
  */
19
13
  export function instanceOfBudgetSummaryResponseData(value) {
20
- var isInstance = true;
21
- isInstance = isInstance && "budgets" in value;
22
- return isInstance;
14
+ if (!('budgets' in value) || value['budgets'] === undefined)
15
+ return false;
16
+ return true;
23
17
  }
24
18
  export function BudgetSummaryResponseDataFromJSON(json) {
25
19
  return BudgetSummaryResponseDataFromJSONTyped(json, false);
26
20
  }
27
21
  export function BudgetSummaryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
28
- if ((json === undefined) || (json === null)) {
22
+ if (json == null) {
29
23
  return json;
30
24
  }
31
25
  return {
32
26
  'budgets': (json['budgets'].map(BudgetSummaryFromJSON)),
33
- 'default_budget': !exists(json, 'default_budget') ? undefined : BudgetSummaryFromJSON(json['default_budget']),
27
+ 'default_budget': json['default_budget'] == null ? undefined : BudgetSummaryFromJSON(json['default_budget']),
34
28
  };
35
29
  }
36
30
  export function BudgetSummaryResponseDataToJSON(value) {
37
- if (value === undefined) {
38
- return undefined;
39
- }
40
- if (value === null) {
41
- return null;
31
+ if (value == null) {
32
+ return value;
42
33
  }
43
34
  return {
44
- 'budgets': (value.budgets.map(BudgetSummaryToJSON)),
45
- 'default_budget': BudgetSummaryToJSON(value.default_budget),
35
+ 'budgets': (value['budgets'].map(BudgetSummaryToJSON)),
36
+ 'default_budget': BudgetSummaryToJSON(value['default_budget']),
46
37
  };
47
38
  }
@@ -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 { BulkResponseData } from './BulkResponseData';
13
8
  /**
@@ -26,7 +21,7 @@ export interface BulkResponse {
26
21
  /**
27
22
  * Check if a given object implements the BulkResponse interface.
28
23
  */
29
- export declare function instanceOfBulkResponse(value: object): boolean;
24
+ export declare function instanceOfBulkResponse(value: object): value is BulkResponse;
30
25
  export declare function BulkResponseFromJSON(json: any): BulkResponse;
31
26
  export declare function BulkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkResponse;
32
27
  export declare function BulkResponseToJSON(value?: BulkResponse | 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 { BulkResponseDataFromJSON, BulkResponseDataToJSON, } from './BulkResponseData';
15
10
  /**
16
11
  * Check if a given object implements the BulkResponse interface.
17
12
  */
18
13
  export function instanceOfBulkResponse(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 BulkResponseFromJSON(json) {
24
19
  return BulkResponseFromJSONTyped(json, false);
25
20
  }
26
21
  export function BulkResponseFromJSONTyped(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 BulkResponseFromJSONTyped(json, ignoreDiscriminator) {
32
27
  };
33
28
  }
34
29
  export function BulkResponseToJSON(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': BulkResponseDataToJSON(value.data),
34
+ 'data': BulkResponseDataToJSON(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 { BulkResponseDataBulk } from './BulkResponseDataBulk';
13
8
  /**
@@ -26,7 +21,7 @@ export interface BulkResponseData {
26
21
  /**
27
22
  * Check if a given object implements the BulkResponseData interface.
28
23
  */
29
- export declare function instanceOfBulkResponseData(value: object): boolean;
24
+ export declare function instanceOfBulkResponseData(value: object): value is BulkResponseData;
30
25
  export declare function BulkResponseDataFromJSON(json: any): BulkResponseData;
31
26
  export declare function BulkResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkResponseData;
32
27
  export declare function BulkResponseDataToJSON(value?: BulkResponseData | 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 { BulkResponseDataBulkFromJSON, BulkResponseDataBulkToJSON, } from './BulkResponseDataBulk';
15
10
  /**
16
11
  * Check if a given object implements the BulkResponseData interface.
17
12
  */
18
13
  export function instanceOfBulkResponseData(value) {
19
- var isInstance = true;
20
- isInstance = isInstance && "bulk" in value;
21
- return isInstance;
14
+ if (!('bulk' in value) || value['bulk'] === undefined)
15
+ return false;
16
+ return true;
22
17
  }
23
18
  export function BulkResponseDataFromJSON(json) {
24
19
  return BulkResponseDataFromJSONTyped(json, false);
25
20
  }
26
21
  export function BulkResponseDataFromJSONTyped(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 BulkResponseDataFromJSONTyped(json, ignoreDiscriminator) {
32
27
  };
33
28
  }
34
29
  export function BulkResponseDataToJSON(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
- 'bulk': BulkResponseDataBulkToJSON(value.bulk),
34
+ 'bulk': BulkResponseDataBulkToJSON(value['bulk']),
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
  *
@@ -31,7 +26,7 @@ export interface BulkResponseDataBulk {
31
26
  /**
32
27
  * Check if a given object implements the BulkResponseDataBulk interface.
33
28
  */
34
- export declare function instanceOfBulkResponseDataBulk(value: object): boolean;
29
+ export declare function instanceOfBulkResponseDataBulk(value: object): value is BulkResponseDataBulk;
35
30
  export declare function BulkResponseDataBulkFromJSON(json: any): BulkResponseDataBulk;
36
31
  export declare function BulkResponseDataBulkFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkResponseDataBulk;
37
32
  export declare function BulkResponseDataBulkToJSON(value?: BulkResponseDataBulk | null): any;
@@ -4,27 +4,23 @@
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 BulkResponseDataBulk interface.
16
11
  */
17
12
  export function instanceOfBulkResponseDataBulk(value) {
18
- var isInstance = true;
19
- isInstance = isInstance && "transaction_ids" in value;
20
- isInstance = isInstance && "duplicate_import_ids" in value;
21
- return isInstance;
13
+ if (!('transaction_ids' in value) || value['transaction_ids'] === undefined)
14
+ return false;
15
+ if (!('duplicate_import_ids' in value) || value['duplicate_import_ids'] === undefined)
16
+ return false;
17
+ return true;
22
18
  }
23
19
  export function BulkResponseDataBulkFromJSON(json) {
24
20
  return BulkResponseDataBulkFromJSONTyped(json, false);
25
21
  }
26
22
  export function BulkResponseDataBulkFromJSONTyped(json, ignoreDiscriminator) {
27
- if ((json === undefined) || (json === null)) {
23
+ if (json == null) {
28
24
  return json;
29
25
  }
30
26
  return {
@@ -33,14 +29,11 @@ export function BulkResponseDataBulkFromJSONTyped(json, ignoreDiscriminator) {
33
29
  };
34
30
  }
35
31
  export function BulkResponseDataBulkToJSON(value) {
36
- if (value === undefined) {
37
- return undefined;
38
- }
39
- if (value === null) {
40
- return null;
32
+ if (value == null) {
33
+ return value;
41
34
  }
42
35
  return {
43
- 'transaction_ids': value.transaction_ids,
44
- 'duplicate_import_ids': value.duplicate_import_ids,
36
+ 'transaction_ids': value['transaction_ids'],
37
+ 'duplicate_import_ids': value['duplicate_import_ids'],
45
38
  };
46
39
  }
@@ -2,14 +2,9 @@
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
- import type { SaveTransaction } from './SaveTransaction';
7
+ import type { SaveTransactionWithOptionalFields } from './SaveTransactionWithOptionalFields';
13
8
  /**
14
9
  *
15
10
  * @export
@@ -18,15 +13,15 @@ import type { SaveTransaction } from './SaveTransaction';
18
13
  export interface BulkTransactions {
19
14
  /**
20
15
  *
21
- * @type {Array<SaveTransaction>}
16
+ * @type {Array<SaveTransactionWithOptionalFields>}
22
17
  * @memberof BulkTransactions
23
18
  */
24
- transactions: Array<SaveTransaction>;
19
+ transactions: Array<SaveTransactionWithOptionalFields>;
25
20
  }
26
21
  /**
27
22
  * Check if a given object implements the BulkTransactions interface.
28
23
  */
29
- export declare function instanceOfBulkTransactions(value: object): boolean;
24
+ export declare function instanceOfBulkTransactions(value: object): value is BulkTransactions;
30
25
  export declare function BulkTransactionsFromJSON(json: any): BulkTransactions;
31
26
  export declare function BulkTransactionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkTransactions;
32
27
  export declare function BulkTransactionsToJSON(value?: BulkTransactions | null): any;