ynab 2.2.0 → 2.4.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 (215) hide show
  1. package/README.md +2 -0
  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 +17 -7
  13. package/dist/apis/PayeesApi.js +43 -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 +36 -16
  17. package/dist/apis/TransactionsApi.js +65 -17
  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/models/Account.d.ts +2 -7
  22. package/dist/models/Account.js +51 -51
  23. package/dist/models/AccountResponse.d.ts +2 -7
  24. package/dist/models/AccountResponse.js +8 -16
  25. package/dist/models/AccountResponseData.d.ts +2 -7
  26. package/dist/models/AccountResponseData.js +8 -16
  27. package/dist/models/AccountType.d.ts +2 -6
  28. package/dist/models/AccountType.js +13 -7
  29. package/dist/models/AccountsResponse.d.ts +2 -7
  30. package/dist/models/AccountsResponse.js +8 -16
  31. package/dist/models/AccountsResponseData.d.ts +2 -7
  32. package/dist/models/AccountsResponseData.js +11 -18
  33. package/dist/models/BudgetDetail.d.ts +6 -11
  34. package/dist/models/BudgetDetail.js +45 -53
  35. package/dist/models/BudgetDetailResponse.d.ts +2 -7
  36. package/dist/models/BudgetDetailResponse.js +8 -16
  37. package/dist/models/BudgetDetailResponseData.d.ts +2 -7
  38. package/dist/models/BudgetDetailResponseData.js +11 -18
  39. package/dist/models/BudgetSettings.d.ts +2 -7
  40. package/dist/models/BudgetSettings.js +11 -18
  41. package/dist/models/BudgetSettingsResponse.d.ts +2 -7
  42. package/dist/models/BudgetSettingsResponse.js +8 -16
  43. package/dist/models/BudgetSettingsResponseData.d.ts +2 -7
  44. package/dist/models/BudgetSettingsResponseData.js +8 -16
  45. package/dist/models/BudgetSummary.d.ts +2 -7
  46. package/dist/models/BudgetSummary.js +23 -31
  47. package/dist/models/BudgetSummaryResponse.d.ts +2 -7
  48. package/dist/models/BudgetSummaryResponse.js +8 -16
  49. package/dist/models/BudgetSummaryResponseData.d.ts +2 -7
  50. package/dist/models/BudgetSummaryResponseData.js +10 -19
  51. package/dist/models/BulkResponse.d.ts +2 -7
  52. package/dist/models/BulkResponse.js +8 -16
  53. package/dist/models/BulkResponseData.d.ts +2 -7
  54. package/dist/models/BulkResponseData.js +8 -16
  55. package/dist/models/BulkResponseDataBulk.d.ts +2 -7
  56. package/dist/models/BulkResponseDataBulk.js +11 -18
  57. package/dist/models/BulkTransactions.d.ts +5 -10
  58. package/dist/models/BulkTransactions.js +10 -18
  59. package/dist/models/CategoriesResponse.d.ts +2 -7
  60. package/dist/models/CategoriesResponse.js +8 -16
  61. package/dist/models/CategoriesResponseData.d.ts +2 -7
  62. package/dist/models/CategoriesResponseData.js +11 -18
  63. package/dist/models/Category.d.ts +9 -8
  64. package/dist/models/Category.js +61 -61
  65. package/dist/models/CategoryGroup.d.ts +2 -7
  66. package/dist/models/CategoryGroup.js +17 -22
  67. package/dist/models/CategoryGroupWithCategories.d.ts +2 -7
  68. package/dist/models/CategoryGroupWithCategories.js +20 -24
  69. package/dist/models/CategoryResponse.d.ts +2 -7
  70. package/dist/models/CategoryResponse.js +8 -16
  71. package/dist/models/CategoryResponseData.d.ts +2 -7
  72. package/dist/models/CategoryResponseData.js +8 -16
  73. package/dist/models/CurrencyFormat.d.ts +2 -7
  74. package/dist/models/CurrencyFormat.js +29 -30
  75. package/dist/models/DateFormat.d.ts +2 -7
  76. package/dist/models/DateFormat.js +8 -16
  77. package/dist/models/ErrorDetail.d.ts +2 -7
  78. package/dist/models/ErrorDetail.js +14 -20
  79. package/dist/models/ErrorResponse.d.ts +2 -7
  80. package/dist/models/ErrorResponse.js +8 -16
  81. package/dist/models/ExistingTransaction.d.ts +89 -0
  82. package/dist/models/ExistingTransaction.js +63 -0
  83. package/dist/models/HybridTransaction.d.ts +10 -9
  84. package/dist/models/HybridTransaction.js +63 -62
  85. package/dist/models/HybridTransactionsResponse.d.ts +2 -7
  86. package/dist/models/HybridTransactionsResponse.js +8 -16
  87. package/dist/models/HybridTransactionsResponseData.d.ts +2 -7
  88. package/dist/models/HybridTransactionsResponseData.js +10 -19
  89. package/dist/models/MonthDetail.d.ts +2 -7
  90. package/dist/models/MonthDetail.js +30 -33
  91. package/dist/models/MonthDetailResponse.d.ts +2 -7
  92. package/dist/models/MonthDetailResponse.js +8 -16
  93. package/dist/models/MonthDetailResponseData.d.ts +2 -7
  94. package/dist/models/MonthDetailResponseData.js +8 -16
  95. package/dist/models/MonthSummariesResponse.d.ts +2 -7
  96. package/dist/models/MonthSummariesResponse.js +8 -16
  97. package/dist/models/MonthSummariesResponseData.d.ts +2 -7
  98. package/dist/models/MonthSummariesResponseData.js +11 -18
  99. package/dist/models/MonthSummary.d.ts +2 -7
  100. package/dist/models/MonthSummary.js +27 -31
  101. package/dist/models/NewTransaction.d.ts +95 -0
  102. package/dist/models/NewTransaction.js +65 -0
  103. package/dist/models/PatchCategoryWrapper.d.ts +2 -7
  104. package/dist/models/PatchCategoryWrapper.js +8 -16
  105. package/dist/models/PatchMonthCategoryWrapper.d.ts +2 -7
  106. package/dist/models/PatchMonthCategoryWrapper.js +8 -16
  107. package/dist/models/PatchPayeeWrapper.d.ts +27 -0
  108. package/dist/models/PatchPayeeWrapper.js +43 -0
  109. package/dist/models/PatchTransactionsWrapper.d.ts +5 -10
  110. package/dist/models/PatchTransactionsWrapper.js +10 -18
  111. package/dist/models/Payee.d.ts +2 -7
  112. package/dist/models/Payee.js +16 -23
  113. package/dist/models/PayeeLocation.d.ts +2 -7
  114. package/dist/models/PayeeLocation.js +20 -24
  115. package/dist/models/PayeeLocationResponse.d.ts +2 -7
  116. package/dist/models/PayeeLocationResponse.js +8 -16
  117. package/dist/models/PayeeLocationResponseData.d.ts +2 -7
  118. package/dist/models/PayeeLocationResponseData.js +8 -16
  119. package/dist/models/PayeeLocationsResponse.d.ts +2 -7
  120. package/dist/models/PayeeLocationsResponse.js +8 -16
  121. package/dist/models/PayeeLocationsResponseData.d.ts +2 -7
  122. package/dist/models/PayeeLocationsResponseData.js +8 -16
  123. package/dist/models/PayeeResponse.d.ts +2 -7
  124. package/dist/models/PayeeResponse.js +8 -16
  125. package/dist/models/PayeeResponseData.d.ts +2 -7
  126. package/dist/models/PayeeResponseData.js +8 -16
  127. package/dist/models/PayeesResponse.d.ts +2 -7
  128. package/dist/models/PayeesResponse.js +8 -16
  129. package/dist/models/PayeesResponseData.d.ts +2 -7
  130. package/dist/models/PayeesResponseData.js +11 -18
  131. package/dist/models/PostAccountWrapper.d.ts +2 -7
  132. package/dist/models/PostAccountWrapper.js +8 -16
  133. package/dist/models/PostScheduledTransactionWrapper.d.ts +27 -0
  134. package/dist/models/PostScheduledTransactionWrapper.js +43 -0
  135. package/dist/models/PostTransactionsWrapper.d.ts +7 -12
  136. package/dist/models/PostTransactionsWrapper.js +10 -20
  137. package/dist/models/PutTransactionWrapper.d.ts +5 -10
  138. package/dist/models/PutTransactionWrapper.js +10 -18
  139. package/dist/models/SaveAccount.d.ts +2 -7
  140. package/dist/models/SaveAccount.js +14 -20
  141. package/dist/models/SaveCategory.d.ts +2 -7
  142. package/dist/models/SaveCategory.js +11 -21
  143. package/dist/models/SaveCategoryResponse.d.ts +2 -7
  144. package/dist/models/SaveCategoryResponse.js +8 -16
  145. package/dist/models/SaveCategoryResponseData.d.ts +2 -7
  146. package/dist/models/SaveCategoryResponseData.js +11 -18
  147. package/dist/models/SaveMonthCategory.d.ts +2 -7
  148. package/dist/models/SaveMonthCategory.js +8 -16
  149. package/dist/models/SavePayee.d.ts +26 -0
  150. package/dist/models/SavePayee.js +40 -0
  151. package/dist/models/SavePayeeResponse.d.ts +27 -0
  152. package/dist/models/SavePayeeResponse.js +43 -0
  153. package/dist/models/SavePayeeResponseData.d.ts +33 -0
  154. package/dist/models/SavePayeeResponseData.js +47 -0
  155. package/dist/models/SaveScheduledTransaction.d.ts +76 -0
  156. package/dist/models/SaveScheduledTransaction.js +62 -0
  157. package/dist/models/SaveSubTransaction.d.ts +2 -7
  158. package/dist/models/SaveSubTransaction.js +16 -25
  159. package/dist/models/SaveTransactionWithIdOrImportId.d.ts +101 -0
  160. package/dist/models/SaveTransactionWithIdOrImportId.js +67 -0
  161. package/dist/models/SaveTransactionWithOptionalFields.d.ts +5 -16
  162. package/dist/models/SaveTransactionWithOptionalFields.js +29 -41
  163. package/dist/models/SaveTransactionsResponse.d.ts +2 -7
  164. package/dist/models/SaveTransactionsResponse.js +8 -16
  165. package/dist/models/SaveTransactionsResponseData.d.ts +2 -7
  166. package/dist/models/SaveTransactionsResponseData.js +17 -25
  167. package/dist/models/ScheduledSubTransaction.d.ts +2 -7
  168. package/dist/models/ScheduledSubTransaction.js +25 -31
  169. package/dist/models/ScheduledTransactionDetail.d.ts +9 -8
  170. package/dist/models/ScheduledTransactionDetail.js +49 -48
  171. package/dist/models/ScheduledTransactionFrequency.d.ts +30 -0
  172. package/dist/models/ScheduledTransactionFrequency.js +53 -0
  173. package/dist/models/ScheduledTransactionResponse.d.ts +2 -7
  174. package/dist/models/ScheduledTransactionResponse.js +8 -16
  175. package/dist/models/ScheduledTransactionResponseData.d.ts +2 -7
  176. package/dist/models/ScheduledTransactionResponseData.js +8 -16
  177. package/dist/models/ScheduledTransactionSummary.d.ts +8 -7
  178. package/dist/models/ScheduledTransactionSummary.js +38 -39
  179. package/dist/models/ScheduledTransactionsResponse.d.ts +2 -7
  180. package/dist/models/ScheduledTransactionsResponse.js +8 -16
  181. package/dist/models/ScheduledTransactionsResponseData.d.ts +2 -7
  182. package/dist/models/ScheduledTransactionsResponseData.js +11 -18
  183. package/dist/models/SubTransaction.d.ts +2 -7
  184. package/dist/models/SubTransaction.js +31 -37
  185. package/dist/models/TransactionClearedStatus.d.ts +2 -6
  186. package/dist/models/TransactionClearedStatus.js +13 -7
  187. package/dist/models/TransactionDetail.d.ts +11 -10
  188. package/dist/models/TransactionDetail.js +62 -61
  189. package/dist/models/TransactionFlagColor.d.ts +2 -6
  190. package/dist/models/TransactionFlagColor.js +13 -7
  191. package/dist/models/TransactionResponse.d.ts +2 -7
  192. package/dist/models/TransactionResponse.js +8 -16
  193. package/dist/models/TransactionResponseData.d.ts +2 -7
  194. package/dist/models/TransactionResponseData.js +8 -16
  195. package/dist/models/TransactionSummary.d.ts +10 -9
  196. package/dist/models/TransactionSummary.js +51 -52
  197. package/dist/models/TransactionsImportResponse.d.ts +2 -7
  198. package/dist/models/TransactionsImportResponse.js +8 -16
  199. package/dist/models/TransactionsImportResponseData.d.ts +2 -7
  200. package/dist/models/TransactionsImportResponseData.js +8 -16
  201. package/dist/models/TransactionsResponse.d.ts +2 -7
  202. package/dist/models/TransactionsResponse.js +8 -16
  203. package/dist/models/TransactionsResponseData.d.ts +2 -7
  204. package/dist/models/TransactionsResponseData.js +11 -18
  205. package/dist/models/User.d.ts +2 -7
  206. package/dist/models/User.js +8 -16
  207. package/dist/models/UserResponse.d.ts +2 -7
  208. package/dist/models/UserResponse.js +8 -16
  209. package/dist/models/UserResponseData.d.ts +2 -7
  210. package/dist/models/UserResponseData.js +8 -16
  211. package/dist/models/index.d.ts +10 -9
  212. package/dist/models/index.js +10 -9
  213. package/dist/runtime.d.ts +1 -6
  214. package/dist/runtime.js +1 -6
  215. package/package.json +1 -1
@@ -5,12 +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
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
14
9
  */
15
10
  Object.defineProperty(exports, "__esModule", { value: true });
16
11
  exports.SaveTransactionsResponseToJSON = exports.SaveTransactionsResponseFromJSONTyped = exports.SaveTransactionsResponseFromJSON = exports.instanceOfSaveTransactionsResponse = void 0;
@@ -19,9 +14,9 @@ const SaveTransactionsResponseData_1 = require("./SaveTransactionsResponseData")
19
14
  * Check if a given object implements the SaveTransactionsResponse interface.
20
15
  */
21
16
  function instanceOfSaveTransactionsResponse(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "data" in value;
24
- return isInstance;
17
+ if (!('data' in value) || value['data'] === undefined)
18
+ return false;
19
+ return true;
25
20
  }
26
21
  exports.instanceOfSaveTransactionsResponse = instanceOfSaveTransactionsResponse;
27
22
  function SaveTransactionsResponseFromJSON(json) {
@@ -29,7 +24,7 @@ function SaveTransactionsResponseFromJSON(json) {
29
24
  }
30
25
  exports.SaveTransactionsResponseFromJSON = SaveTransactionsResponseFromJSON;
31
26
  function SaveTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
27
+ if (json == null) {
33
28
  return json;
34
29
  }
35
30
  return {
@@ -38,14 +33,11 @@ function SaveTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
38
33
  }
39
34
  exports.SaveTransactionsResponseFromJSONTyped = SaveTransactionsResponseFromJSONTyped;
40
35
  function SaveTransactionsResponseToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
36
+ if (value == null) {
37
+ return value;
46
38
  }
47
39
  return {
48
- 'data': (0, SaveTransactionsResponseData_1.SaveTransactionsResponseDataToJSON)(value.data),
40
+ 'data': (0, SaveTransactionsResponseData_1.SaveTransactionsResponseDataToJSON)(value['data']),
49
41
  };
50
42
  }
51
43
  exports.SaveTransactionsResponseToJSON = SaveTransactionsResponseToJSON;
@@ -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 { TransactionDetail } from './TransactionDetail';
13
8
  /**
@@ -50,7 +45,7 @@ export interface SaveTransactionsResponseData {
50
45
  /**
51
46
  * Check if a given object implements the SaveTransactionsResponseData interface.
52
47
  */
53
- export declare function instanceOfSaveTransactionsResponseData(value: object): boolean;
48
+ export declare function instanceOfSaveTransactionsResponseData(value: object): value is SaveTransactionsResponseData;
54
49
  export declare function SaveTransactionsResponseDataFromJSON(json: any): SaveTransactionsResponseData;
55
50
  export declare function SaveTransactionsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveTransactionsResponseData;
56
51
  export declare function SaveTransactionsResponseDataToJSON(value?: SaveTransactionsResponseData | null): any;
@@ -5,25 +5,20 @@
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
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
14
9
  */
15
10
  Object.defineProperty(exports, "__esModule", { value: true });
16
11
  exports.SaveTransactionsResponseDataToJSON = exports.SaveTransactionsResponseDataFromJSONTyped = exports.SaveTransactionsResponseDataFromJSON = exports.instanceOfSaveTransactionsResponseData = void 0;
17
- const runtime_1 = require("../runtime");
18
12
  const TransactionDetail_1 = require("./TransactionDetail");
19
13
  /**
20
14
  * Check if a given object implements the SaveTransactionsResponseData interface.
21
15
  */
22
16
  function instanceOfSaveTransactionsResponseData(value) {
23
- let isInstance = true;
24
- isInstance = isInstance && "transaction_ids" in value;
25
- isInstance = isInstance && "server_knowledge" in value;
26
- return isInstance;
17
+ if (!('transaction_ids' in value) || value['transaction_ids'] === undefined)
18
+ return false;
19
+ if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
20
+ return false;
21
+ return true;
27
22
  }
28
23
  exports.instanceOfSaveTransactionsResponseData = instanceOfSaveTransactionsResponseData;
29
24
  function SaveTransactionsResponseDataFromJSON(json) {
@@ -31,31 +26,28 @@ function SaveTransactionsResponseDataFromJSON(json) {
31
26
  }
32
27
  exports.SaveTransactionsResponseDataFromJSON = SaveTransactionsResponseDataFromJSON;
33
28
  function SaveTransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
34
- if ((json === undefined) || (json === null)) {
29
+ if (json == null) {
35
30
  return json;
36
31
  }
37
32
  return {
38
33
  'transaction_ids': json['transaction_ids'],
39
- 'transaction': !(0, runtime_1.exists)(json, 'transaction') ? undefined : (0, TransactionDetail_1.TransactionDetailFromJSON)(json['transaction']),
40
- 'transactions': !(0, runtime_1.exists)(json, 'transactions') ? undefined : (json['transactions'].map(TransactionDetail_1.TransactionDetailFromJSON)),
41
- 'duplicate_import_ids': !(0, runtime_1.exists)(json, 'duplicate_import_ids') ? undefined : json['duplicate_import_ids'],
34
+ 'transaction': json['transaction'] == null ? undefined : (0, TransactionDetail_1.TransactionDetailFromJSON)(json['transaction']),
35
+ 'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(TransactionDetail_1.TransactionDetailFromJSON)),
36
+ 'duplicate_import_ids': json['duplicate_import_ids'] == null ? undefined : json['duplicate_import_ids'],
42
37
  'server_knowledge': json['server_knowledge'],
43
38
  };
44
39
  }
45
40
  exports.SaveTransactionsResponseDataFromJSONTyped = SaveTransactionsResponseDataFromJSONTyped;
46
41
  function SaveTransactionsResponseDataToJSON(value) {
47
- if (value === undefined) {
48
- return undefined;
49
- }
50
- if (value === null) {
51
- return null;
42
+ if (value == null) {
43
+ return value;
52
44
  }
53
45
  return {
54
- 'transaction_ids': value.transaction_ids,
55
- 'transaction': (0, TransactionDetail_1.TransactionDetailToJSON)(value.transaction),
56
- 'transactions': value.transactions === undefined ? undefined : (value.transactions.map(TransactionDetail_1.TransactionDetailToJSON)),
57
- 'duplicate_import_ids': value.duplicate_import_ids,
58
- 'server_knowledge': value.server_knowledge,
46
+ 'transaction_ids': value['transaction_ids'],
47
+ 'transaction': (0, TransactionDetail_1.TransactionDetailToJSON)(value['transaction']),
48
+ 'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(TransactionDetail_1.TransactionDetailToJSON)),
49
+ 'duplicate_import_ids': value['duplicate_import_ids'],
50
+ 'server_knowledge': value['server_knowledge'],
59
51
  };
60
52
  }
61
53
  exports.SaveTransactionsResponseDataToJSON = SaveTransactionsResponseDataToJSON;
@@ -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
  *
@@ -67,7 +62,7 @@ export interface ScheduledSubTransaction {
67
62
  /**
68
63
  * Check if a given object implements the ScheduledSubTransaction interface.
69
64
  */
70
- export declare function instanceOfScheduledSubTransaction(value: object): boolean;
65
+ export declare function instanceOfScheduledSubTransaction(value: object): value is ScheduledSubTransaction;
71
66
  export declare function ScheduledSubTransactionFromJSON(json: any): ScheduledSubTransaction;
72
67
  export declare function ScheduledSubTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledSubTransaction;
73
68
  export declare function ScheduledSubTransactionToJSON(value?: ScheduledSubTransaction | null): any;
@@ -5,26 +5,23 @@
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
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
14
9
  */
15
10
  Object.defineProperty(exports, "__esModule", { value: true });
16
11
  exports.ScheduledSubTransactionToJSON = exports.ScheduledSubTransactionFromJSONTyped = exports.ScheduledSubTransactionFromJSON = exports.instanceOfScheduledSubTransaction = void 0;
17
- const runtime_1 = require("../runtime");
18
12
  /**
19
13
  * Check if a given object implements the ScheduledSubTransaction interface.
20
14
  */
21
15
  function instanceOfScheduledSubTransaction(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "id" in value;
24
- isInstance = isInstance && "scheduled_transaction_id" in value;
25
- isInstance = isInstance && "amount" in value;
26
- isInstance = isInstance && "deleted" in value;
27
- return isInstance;
16
+ if (!('id' in value) || value['id'] === undefined)
17
+ return false;
18
+ if (!('scheduled_transaction_id' in value) || value['scheduled_transaction_id'] === undefined)
19
+ return false;
20
+ if (!('amount' in value) || value['amount'] === undefined)
21
+ return false;
22
+ if (!('deleted' in value) || value['deleted'] === undefined)
23
+ return false;
24
+ return true;
28
25
  }
29
26
  exports.instanceOfScheduledSubTransaction = instanceOfScheduledSubTransaction;
30
27
  function ScheduledSubTransactionFromJSON(json) {
@@ -32,37 +29,34 @@ function ScheduledSubTransactionFromJSON(json) {
32
29
  }
33
30
  exports.ScheduledSubTransactionFromJSON = ScheduledSubTransactionFromJSON;
34
31
  function ScheduledSubTransactionFromJSONTyped(json, ignoreDiscriminator) {
35
- if ((json === undefined) || (json === null)) {
32
+ if (json == null) {
36
33
  return json;
37
34
  }
38
35
  return {
39
36
  'id': json['id'],
40
37
  'scheduled_transaction_id': json['scheduled_transaction_id'],
41
38
  'amount': json['amount'],
42
- 'memo': !(0, runtime_1.exists)(json, 'memo') ? undefined : json['memo'],
43
- 'payee_id': !(0, runtime_1.exists)(json, 'payee_id') ? undefined : json['payee_id'],
44
- 'category_id': !(0, runtime_1.exists)(json, 'category_id') ? undefined : json['category_id'],
45
- 'transfer_account_id': !(0, runtime_1.exists)(json, 'transfer_account_id') ? undefined : json['transfer_account_id'],
39
+ 'memo': json['memo'] == null ? undefined : json['memo'],
40
+ 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
41
+ 'category_id': json['category_id'] == null ? undefined : json['category_id'],
42
+ 'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
46
43
  'deleted': json['deleted'],
47
44
  };
48
45
  }
49
46
  exports.ScheduledSubTransactionFromJSONTyped = ScheduledSubTransactionFromJSONTyped;
50
47
  function ScheduledSubTransactionToJSON(value) {
51
- if (value === undefined) {
52
- return undefined;
53
- }
54
- if (value === null) {
55
- return null;
48
+ if (value == null) {
49
+ return value;
56
50
  }
57
51
  return {
58
- 'id': value.id,
59
- 'scheduled_transaction_id': value.scheduled_transaction_id,
60
- 'amount': value.amount,
61
- 'memo': value.memo,
62
- 'payee_id': value.payee_id,
63
- 'category_id': value.category_id,
64
- 'transfer_account_id': value.transfer_account_id,
65
- 'deleted': value.deleted,
52
+ 'id': value['id'],
53
+ 'scheduled_transaction_id': value['scheduled_transaction_id'],
54
+ 'amount': value['amount'],
55
+ 'memo': value['memo'],
56
+ 'payee_id': value['payee_id'],
57
+ 'category_id': value['category_id'],
58
+ 'transfer_account_id': value['transfer_account_id'],
59
+ 'deleted': value['deleted'],
66
60
  };
67
61
  }
68
62
  exports.ScheduledSubTransactionToJSON = ScheduledSubTransactionToJSON;
@@ -2,15 +2,10 @@
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 { ScheduledSubTransaction } from './ScheduledSubTransaction';
13
7
  import type { TransactionFlagColor } from './TransactionFlagColor';
8
+ import type { ScheduledSubTransaction } from './ScheduledSubTransaction';
14
9
  /**
15
10
  *
16
11
  * @export
@@ -59,6 +54,12 @@ export interface ScheduledTransactionDetail {
59
54
  * @memberof ScheduledTransactionDetail
60
55
  */
61
56
  flag_color?: TransactionFlagColor | null;
57
+ /**
58
+ * The customized name of a transaction flag
59
+ * @type {string}
60
+ * @memberof ScheduledTransactionDetail
61
+ */
62
+ flag_name?: string | null;
62
63
  /**
63
64
  *
64
65
  * @type {string}
@@ -136,7 +137,7 @@ export type ScheduledTransactionDetailFrequencyEnum = typeof ScheduledTransactio
136
137
  /**
137
138
  * Check if a given object implements the ScheduledTransactionDetail interface.
138
139
  */
139
- export declare function instanceOfScheduledTransactionDetail(value: object): boolean;
140
+ export declare function instanceOfScheduledTransactionDetail(value: object): value is ScheduledTransactionDetail;
140
141
  export declare function ScheduledTransactionDetailFromJSON(json: any): ScheduledTransactionDetail;
141
142
  export declare function ScheduledTransactionDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionDetail;
142
143
  export declare function ScheduledTransactionDetailToJSON(value?: ScheduledTransactionDetail | null): any;
@@ -5,18 +5,12 @@
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
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
14
9
  */
15
10
  Object.defineProperty(exports, "__esModule", { value: true });
16
11
  exports.ScheduledTransactionDetailToJSON = exports.ScheduledTransactionDetailFromJSONTyped = exports.ScheduledTransactionDetailFromJSON = exports.instanceOfScheduledTransactionDetail = exports.ScheduledTransactionDetailFrequencyEnum = void 0;
17
- const runtime_1 = require("../runtime");
18
- const ScheduledSubTransaction_1 = require("./ScheduledSubTransaction");
19
12
  const TransactionFlagColor_1 = require("./TransactionFlagColor");
13
+ const ScheduledSubTransaction_1 = require("./ScheduledSubTransaction");
20
14
  /**
21
15
  * @export
22
16
  */
@@ -39,17 +33,25 @@ exports.ScheduledTransactionDetailFrequencyEnum = {
39
33
  * Check if a given object implements the ScheduledTransactionDetail interface.
40
34
  */
41
35
  function instanceOfScheduledTransactionDetail(value) {
42
- let isInstance = true;
43
- isInstance = isInstance && "id" in value;
44
- isInstance = isInstance && "date_first" in value;
45
- isInstance = isInstance && "date_next" in value;
46
- isInstance = isInstance && "frequency" in value;
47
- isInstance = isInstance && "amount" in value;
48
- isInstance = isInstance && "account_id" in value;
49
- isInstance = isInstance && "deleted" in value;
50
- isInstance = isInstance && "account_name" in value;
51
- isInstance = isInstance && "subtransactions" in value;
52
- return isInstance;
36
+ if (!('id' in value) || value['id'] === undefined)
37
+ return false;
38
+ if (!('date_first' in value) || value['date_first'] === undefined)
39
+ return false;
40
+ if (!('date_next' in value) || value['date_next'] === undefined)
41
+ return false;
42
+ if (!('frequency' in value) || value['frequency'] === undefined)
43
+ return false;
44
+ if (!('amount' in value) || value['amount'] === undefined)
45
+ return false;
46
+ if (!('account_id' in value) || value['account_id'] === undefined)
47
+ return false;
48
+ if (!('deleted' in value) || value['deleted'] === undefined)
49
+ return false;
50
+ if (!('account_name' in value) || value['account_name'] === undefined)
51
+ return false;
52
+ if (!('subtransactions' in value) || value['subtransactions'] === undefined)
53
+ return false;
54
+ return true;
53
55
  }
54
56
  exports.instanceOfScheduledTransactionDetail = instanceOfScheduledTransactionDetail;
55
57
  function ScheduledTransactionDetailFromJSON(json) {
@@ -57,7 +59,7 @@ function ScheduledTransactionDetailFromJSON(json) {
57
59
  }
58
60
  exports.ScheduledTransactionDetailFromJSON = ScheduledTransactionDetailFromJSON;
59
61
  function ScheduledTransactionDetailFromJSONTyped(json, ignoreDiscriminator) {
60
- if ((json === undefined) || (json === null)) {
62
+ if (json == null) {
61
63
  return json;
62
64
  }
63
65
  return {
@@ -66,44 +68,43 @@ function ScheduledTransactionDetailFromJSONTyped(json, ignoreDiscriminator) {
66
68
  'date_next': json['date_next'],
67
69
  'frequency': json['frequency'],
68
70
  'amount': json['amount'],
69
- 'memo': !(0, runtime_1.exists)(json, 'memo') ? undefined : json['memo'],
70
- 'flag_color': !(0, runtime_1.exists)(json, 'flag_color') ? undefined : (0, TransactionFlagColor_1.TransactionFlagColorFromJSON)(json['flag_color']),
71
+ 'memo': json['memo'] == null ? undefined : json['memo'],
72
+ 'flag_color': json['flag_color'] == null ? undefined : (0, TransactionFlagColor_1.TransactionFlagColorFromJSON)(json['flag_color']),
73
+ 'flag_name': json['flag_name'] == null ? undefined : json['flag_name'],
71
74
  'account_id': json['account_id'],
72
- 'payee_id': !(0, runtime_1.exists)(json, 'payee_id') ? undefined : json['payee_id'],
73
- 'category_id': !(0, runtime_1.exists)(json, 'category_id') ? undefined : json['category_id'],
74
- 'transfer_account_id': !(0, runtime_1.exists)(json, 'transfer_account_id') ? undefined : json['transfer_account_id'],
75
+ 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
76
+ 'category_id': json['category_id'] == null ? undefined : json['category_id'],
77
+ 'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
75
78
  'deleted': json['deleted'],
76
79
  'account_name': json['account_name'],
77
- 'payee_name': !(0, runtime_1.exists)(json, 'payee_name') ? undefined : json['payee_name'],
78
- 'category_name': !(0, runtime_1.exists)(json, 'category_name') ? undefined : json['category_name'],
80
+ 'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
81
+ 'category_name': json['category_name'] == null ? undefined : json['category_name'],
79
82
  'subtransactions': (json['subtransactions'].map(ScheduledSubTransaction_1.ScheduledSubTransactionFromJSON)),
80
83
  };
81
84
  }
82
85
  exports.ScheduledTransactionDetailFromJSONTyped = ScheduledTransactionDetailFromJSONTyped;
83
86
  function ScheduledTransactionDetailToJSON(value) {
84
- if (value === undefined) {
85
- return undefined;
86
- }
87
- if (value === null) {
88
- return null;
87
+ if (value == null) {
88
+ return value;
89
89
  }
90
90
  return {
91
- 'id': value.id,
92
- 'date_first': value.date_first,
93
- 'date_next': value.date_next,
94
- 'frequency': value.frequency,
95
- 'amount': value.amount,
96
- 'memo': value.memo,
97
- 'flag_color': (0, TransactionFlagColor_1.TransactionFlagColorToJSON)(value.flag_color),
98
- 'account_id': value.account_id,
99
- 'payee_id': value.payee_id,
100
- 'category_id': value.category_id,
101
- 'transfer_account_id': value.transfer_account_id,
102
- 'deleted': value.deleted,
103
- 'account_name': value.account_name,
104
- 'payee_name': value.payee_name,
105
- 'category_name': value.category_name,
106
- 'subtransactions': (value.subtransactions.map(ScheduledSubTransaction_1.ScheduledSubTransactionToJSON)),
91
+ 'id': value['id'],
92
+ 'date_first': value['date_first'],
93
+ 'date_next': value['date_next'],
94
+ 'frequency': value['frequency'],
95
+ 'amount': value['amount'],
96
+ 'memo': value['memo'],
97
+ 'flag_color': (0, TransactionFlagColor_1.TransactionFlagColorToJSON)(value['flag_color']),
98
+ 'flag_name': value['flag_name'],
99
+ 'account_id': value['account_id'],
100
+ 'payee_id': value['payee_id'],
101
+ 'category_id': value['category_id'],
102
+ 'transfer_account_id': value['transfer_account_id'],
103
+ 'deleted': value['deleted'],
104
+ 'account_name': value['account_name'],
105
+ 'payee_name': value['payee_name'],
106
+ 'category_name': value['category_name'],
107
+ 'subtransactions': (value['subtransactions'].map(ScheduledSubTransaction_1.ScheduledSubTransactionToJSON)),
107
108
  };
108
109
  }
109
110
  exports.ScheduledTransactionDetailToJSON = ScheduledTransactionDetailToJSON;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * YNAB API Endpoints
3
+ * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
+ *
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
6
+ */
7
+ /**
8
+ * The scheduled transaction frequency
9
+ * @export
10
+ */
11
+ export declare const ScheduledTransactionFrequency: {
12
+ readonly Never: "never";
13
+ readonly Daily: "daily";
14
+ readonly Weekly: "weekly";
15
+ readonly EveryOtherWeek: "everyOtherWeek";
16
+ readonly TwiceAMonth: "twiceAMonth";
17
+ readonly Every4Weeks: "every4Weeks";
18
+ readonly Monthly: "monthly";
19
+ readonly EveryOtherMonth: "everyOtherMonth";
20
+ readonly Every3Months: "every3Months";
21
+ readonly Every4Months: "every4Months";
22
+ readonly TwiceAYear: "twiceAYear";
23
+ readonly Yearly: "yearly";
24
+ readonly EveryOtherYear: "everyOtherYear";
25
+ };
26
+ export type ScheduledTransactionFrequency = typeof ScheduledTransactionFrequency[keyof typeof ScheduledTransactionFrequency];
27
+ export declare function instanceOfScheduledTransactionFrequency(value: any): boolean;
28
+ export declare function ScheduledTransactionFrequencyFromJSON(json: any): ScheduledTransactionFrequency;
29
+ export declare function ScheduledTransactionFrequencyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionFrequency;
30
+ export declare function ScheduledTransactionFrequencyToJSON(value?: ScheduledTransactionFrequency | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * YNAB API Endpoints
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
+ *
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.ScheduledTransactionFrequencyToJSON = exports.ScheduledTransactionFrequencyFromJSONTyped = exports.ScheduledTransactionFrequencyFromJSON = exports.instanceOfScheduledTransactionFrequency = exports.ScheduledTransactionFrequency = void 0;
12
+ /**
13
+ * The scheduled transaction frequency
14
+ * @export
15
+ */
16
+ exports.ScheduledTransactionFrequency = {
17
+ Never: 'never',
18
+ Daily: 'daily',
19
+ Weekly: 'weekly',
20
+ EveryOtherWeek: 'everyOtherWeek',
21
+ TwiceAMonth: 'twiceAMonth',
22
+ Every4Weeks: 'every4Weeks',
23
+ Monthly: 'monthly',
24
+ EveryOtherMonth: 'everyOtherMonth',
25
+ Every3Months: 'every3Months',
26
+ Every4Months: 'every4Months',
27
+ TwiceAYear: 'twiceAYear',
28
+ Yearly: 'yearly',
29
+ EveryOtherYear: 'everyOtherYear'
30
+ };
31
+ function instanceOfScheduledTransactionFrequency(value) {
32
+ for (const key in exports.ScheduledTransactionFrequency) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.ScheduledTransactionFrequency, key)) {
34
+ if (exports.ScheduledTransactionFrequency[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ exports.instanceOfScheduledTransactionFrequency = instanceOfScheduledTransactionFrequency;
42
+ function ScheduledTransactionFrequencyFromJSON(json) {
43
+ return ScheduledTransactionFrequencyFromJSONTyped(json, false);
44
+ }
45
+ exports.ScheduledTransactionFrequencyFromJSON = ScheduledTransactionFrequencyFromJSON;
46
+ function ScheduledTransactionFrequencyFromJSONTyped(json, ignoreDiscriminator) {
47
+ return json;
48
+ }
49
+ exports.ScheduledTransactionFrequencyFromJSONTyped = ScheduledTransactionFrequencyFromJSONTyped;
50
+ function ScheduledTransactionFrequencyToJSON(value) {
51
+ return value;
52
+ }
53
+ exports.ScheduledTransactionFrequencyToJSON = ScheduledTransactionFrequencyToJSON;
@@ -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 { ScheduledTransactionResponseData } from './ScheduledTransactionResponseData';
13
8
  /**
@@ -26,7 +21,7 @@ export interface ScheduledTransactionResponse {
26
21
  /**
27
22
  * Check if a given object implements the ScheduledTransactionResponse interface.
28
23
  */
29
- export declare function instanceOfScheduledTransactionResponse(value: object): boolean;
24
+ export declare function instanceOfScheduledTransactionResponse(value: object): value is ScheduledTransactionResponse;
30
25
  export declare function ScheduledTransactionResponseFromJSON(json: any): ScheduledTransactionResponse;
31
26
  export declare function ScheduledTransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionResponse;
32
27
  export declare function ScheduledTransactionResponseToJSON(value?: ScheduledTransactionResponse | null): any;
@@ -5,12 +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
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
8
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
14
9
  */
15
10
  Object.defineProperty(exports, "__esModule", { value: true });
16
11
  exports.ScheduledTransactionResponseToJSON = exports.ScheduledTransactionResponseFromJSONTyped = exports.ScheduledTransactionResponseFromJSON = exports.instanceOfScheduledTransactionResponse = void 0;
@@ -19,9 +14,9 @@ const ScheduledTransactionResponseData_1 = require("./ScheduledTransactionRespon
19
14
  * Check if a given object implements the ScheduledTransactionResponse interface.
20
15
  */
21
16
  function instanceOfScheduledTransactionResponse(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "data" in value;
24
- return isInstance;
17
+ if (!('data' in value) || value['data'] === undefined)
18
+ return false;
19
+ return true;
25
20
  }
26
21
  exports.instanceOfScheduledTransactionResponse = instanceOfScheduledTransactionResponse;
27
22
  function ScheduledTransactionResponseFromJSON(json) {
@@ -29,7 +24,7 @@ function ScheduledTransactionResponseFromJSON(json) {
29
24
  }
30
25
  exports.ScheduledTransactionResponseFromJSON = ScheduledTransactionResponseFromJSON;
31
26
  function ScheduledTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
27
+ if (json == null) {
33
28
  return json;
34
29
  }
35
30
  return {
@@ -38,14 +33,11 @@ function ScheduledTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
38
33
  }
39
34
  exports.ScheduledTransactionResponseFromJSONTyped = ScheduledTransactionResponseFromJSONTyped;
40
35
  function ScheduledTransactionResponseToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
36
+ if (value == null) {
37
+ return value;
46
38
  }
47
39
  return {
48
- 'data': (0, ScheduledTransactionResponseData_1.ScheduledTransactionResponseDataToJSON)(value.data),
40
+ 'data': (0, ScheduledTransactionResponseData_1.ScheduledTransactionResponseDataToJSON)(value['data']),
49
41
  };
50
42
  }
51
43
  exports.ScheduledTransactionResponseToJSON = ScheduledTransactionResponseToJSON;
@@ -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 { ScheduledTransactionDetail } from './ScheduledTransactionDetail';
13
8
  /**
@@ -26,7 +21,7 @@ export interface ScheduledTransactionResponseData {
26
21
  /**
27
22
  * Check if a given object implements the ScheduledTransactionResponseData interface.
28
23
  */
29
- export declare function instanceOfScheduledTransactionResponseData(value: object): boolean;
24
+ export declare function instanceOfScheduledTransactionResponseData(value: object): value is ScheduledTransactionResponseData;
30
25
  export declare function ScheduledTransactionResponseDataFromJSON(json: any): ScheduledTransactionResponseData;
31
26
  export declare function ScheduledTransactionResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduledTransactionResponseData;
32
27
  export declare function ScheduledTransactionResponseDataToJSON(value?: ScheduledTransactionResponseData | null): any;