ynab 2.3.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 +1 -6
  13. package/dist/apis/PayeesApi.js +1 -6
  14. package/dist/apis/ScheduledTransactionsApi.d.ts +16 -7
  15. package/dist/apis/ScheduledTransactionsApi.js +40 -6
  16. package/dist/apis/TransactionsApi.d.ts +28 -8
  17. package/dist/apis/TransactionsApi.js +57 -9
  18. package/dist/apis/UserApi.d.ts +1 -6
  19. package/dist/apis/UserApi.js +1 -6
  20. package/dist/browser/ynab.js +1 -1
  21. package/dist/models/Account.d.ts +7 -12
  22. package/dist/models/Account.js +1 -6
  23. package/dist/models/AccountResponse.d.ts +1 -6
  24. package/dist/models/AccountResponse.js +1 -6
  25. package/dist/models/AccountResponseData.d.ts +1 -6
  26. package/dist/models/AccountResponseData.js +1 -6
  27. package/dist/models/AccountType.d.ts +1 -6
  28. package/dist/models/AccountType.js +1 -6
  29. package/dist/models/AccountsResponse.d.ts +1 -6
  30. package/dist/models/AccountsResponse.js +1 -6
  31. package/dist/models/AccountsResponseData.d.ts +1 -6
  32. package/dist/models/AccountsResponseData.js +1 -6
  33. package/dist/models/BudgetDetail.d.ts +3 -8
  34. package/dist/models/BudgetDetail.js +1 -6
  35. package/dist/models/BudgetDetailResponse.d.ts +1 -6
  36. package/dist/models/BudgetDetailResponse.js +1 -6
  37. package/dist/models/BudgetDetailResponseData.d.ts +1 -6
  38. package/dist/models/BudgetDetailResponseData.js +1 -6
  39. package/dist/models/BudgetSettings.d.ts +1 -6
  40. package/dist/models/BudgetSettings.js +1 -6
  41. package/dist/models/BudgetSettingsResponse.d.ts +1 -6
  42. package/dist/models/BudgetSettingsResponse.js +1 -6
  43. package/dist/models/BudgetSettingsResponseData.d.ts +1 -6
  44. package/dist/models/BudgetSettingsResponseData.js +1 -6
  45. package/dist/models/BudgetSummary.d.ts +3 -8
  46. package/dist/models/BudgetSummary.js +1 -6
  47. package/dist/models/BudgetSummaryResponse.d.ts +1 -6
  48. package/dist/models/BudgetSummaryResponse.js +1 -6
  49. package/dist/models/BudgetSummaryResponseData.d.ts +1 -6
  50. package/dist/models/BudgetSummaryResponseData.js +1 -6
  51. package/dist/models/BulkResponse.d.ts +1 -6
  52. package/dist/models/BulkResponse.js +1 -6
  53. package/dist/models/BulkResponseData.d.ts +1 -6
  54. package/dist/models/BulkResponseData.js +1 -6
  55. package/dist/models/BulkResponseDataBulk.d.ts +1 -6
  56. package/dist/models/BulkResponseDataBulk.js +1 -6
  57. package/dist/models/BulkTransactions.d.ts +1 -6
  58. package/dist/models/BulkTransactions.js +1 -6
  59. package/dist/models/CategoriesResponse.d.ts +1 -6
  60. package/dist/models/CategoriesResponse.js +1 -6
  61. package/dist/models/CategoriesResponseData.d.ts +1 -6
  62. package/dist/models/CategoriesResponseData.js +1 -6
  63. package/dist/models/Category.d.ts +16 -21
  64. package/dist/models/Category.js +1 -6
  65. package/dist/models/CategoryGroup.d.ts +1 -6
  66. package/dist/models/CategoryGroup.js +1 -6
  67. package/dist/models/CategoryGroupWithCategories.d.ts +1 -6
  68. package/dist/models/CategoryGroupWithCategories.js +1 -6
  69. package/dist/models/CategoryResponse.d.ts +1 -6
  70. package/dist/models/CategoryResponse.js +1 -6
  71. package/dist/models/CategoryResponseData.d.ts +1 -6
  72. package/dist/models/CategoryResponseData.js +1 -6
  73. package/dist/models/CurrencyFormat.d.ts +1 -6
  74. package/dist/models/CurrencyFormat.js +1 -6
  75. package/dist/models/DateFormat.d.ts +1 -6
  76. package/dist/models/DateFormat.js +1 -6
  77. package/dist/models/ErrorDetail.d.ts +1 -6
  78. package/dist/models/ErrorDetail.js +1 -6
  79. package/dist/models/ErrorResponse.d.ts +1 -6
  80. package/dist/models/ErrorResponse.js +1 -6
  81. package/dist/models/ExistingTransaction.d.ts +7 -12
  82. package/dist/models/ExistingTransaction.js +1 -6
  83. package/dist/models/HybridTransaction.d.ts +15 -20
  84. package/dist/models/HybridTransaction.js +1 -6
  85. package/dist/models/HybridTransactionsResponse.d.ts +1 -6
  86. package/dist/models/HybridTransactionsResponse.js +1 -6
  87. package/dist/models/HybridTransactionsResponseData.d.ts +1 -6
  88. package/dist/models/HybridTransactionsResponseData.js +1 -6
  89. package/dist/models/MonthDetail.d.ts +3 -8
  90. package/dist/models/MonthDetail.js +1 -6
  91. package/dist/models/MonthDetailResponse.d.ts +1 -6
  92. package/dist/models/MonthDetailResponse.js +1 -6
  93. package/dist/models/MonthDetailResponseData.d.ts +1 -6
  94. package/dist/models/MonthDetailResponseData.js +1 -6
  95. package/dist/models/MonthSummariesResponse.d.ts +1 -6
  96. package/dist/models/MonthSummariesResponse.js +1 -6
  97. package/dist/models/MonthSummariesResponseData.d.ts +1 -6
  98. package/dist/models/MonthSummariesResponseData.js +1 -6
  99. package/dist/models/MonthSummary.d.ts +3 -8
  100. package/dist/models/MonthSummary.js +1 -6
  101. package/dist/models/NewTransaction.d.ts +8 -13
  102. package/dist/models/NewTransaction.js +1 -6
  103. package/dist/models/PatchCategoryWrapper.d.ts +1 -6
  104. package/dist/models/PatchCategoryWrapper.js +1 -6
  105. package/dist/models/PatchMonthCategoryWrapper.d.ts +1 -6
  106. package/dist/models/PatchMonthCategoryWrapper.js +1 -6
  107. package/dist/models/PatchPayeeWrapper.d.ts +1 -6
  108. package/dist/models/PatchPayeeWrapper.js +1 -6
  109. package/dist/models/PatchTransactionsWrapper.d.ts +1 -6
  110. package/dist/models/PatchTransactionsWrapper.js +1 -6
  111. package/dist/models/Payee.d.ts +2 -7
  112. package/dist/models/Payee.js +1 -6
  113. package/dist/models/PayeeLocation.d.ts +1 -6
  114. package/dist/models/PayeeLocation.js +1 -6
  115. package/dist/models/PayeeLocationResponse.d.ts +1 -6
  116. package/dist/models/PayeeLocationResponse.js +1 -6
  117. package/dist/models/PayeeLocationResponseData.d.ts +1 -6
  118. package/dist/models/PayeeLocationResponseData.js +1 -6
  119. package/dist/models/PayeeLocationsResponse.d.ts +1 -6
  120. package/dist/models/PayeeLocationsResponse.js +1 -6
  121. package/dist/models/PayeeLocationsResponseData.d.ts +1 -6
  122. package/dist/models/PayeeLocationsResponseData.js +1 -6
  123. package/dist/models/PayeeResponse.d.ts +1 -6
  124. package/dist/models/PayeeResponse.js +1 -6
  125. package/dist/models/PayeeResponseData.d.ts +1 -6
  126. package/dist/models/PayeeResponseData.js +1 -6
  127. package/dist/models/PayeesResponse.d.ts +1 -6
  128. package/dist/models/PayeesResponse.js +1 -6
  129. package/dist/models/PayeesResponseData.d.ts +1 -6
  130. package/dist/models/PayeesResponseData.js +1 -6
  131. package/dist/models/PostAccountWrapper.d.ts +1 -6
  132. package/dist/models/PostAccountWrapper.js +1 -6
  133. package/dist/models/PostScheduledTransactionWrapper.d.ts +27 -0
  134. package/dist/models/PostScheduledTransactionWrapper.js +43 -0
  135. package/dist/models/PostTransactionsWrapper.d.ts +1 -6
  136. package/dist/models/PostTransactionsWrapper.js +1 -6
  137. package/dist/models/PutTransactionWrapper.d.ts +1 -6
  138. package/dist/models/PutTransactionWrapper.js +1 -6
  139. package/dist/models/SaveAccount.d.ts +1 -6
  140. package/dist/models/SaveAccount.js +1 -6
  141. package/dist/models/SaveCategory.d.ts +3 -8
  142. package/dist/models/SaveCategory.js +1 -6
  143. package/dist/models/SaveCategoryResponse.d.ts +1 -6
  144. package/dist/models/SaveCategoryResponse.js +1 -6
  145. package/dist/models/SaveCategoryResponseData.d.ts +1 -6
  146. package/dist/models/SaveCategoryResponseData.js +1 -6
  147. package/dist/models/SaveMonthCategory.d.ts +1 -6
  148. package/dist/models/SaveMonthCategory.js +1 -6
  149. package/dist/models/SavePayee.d.ts +1 -6
  150. package/dist/models/SavePayee.js +1 -6
  151. package/dist/models/SavePayeeResponse.d.ts +1 -6
  152. package/dist/models/SavePayeeResponse.js +1 -6
  153. package/dist/models/SavePayeeResponseData.d.ts +1 -6
  154. package/dist/models/SavePayeeResponseData.js +1 -6
  155. package/dist/models/SaveScheduledTransaction.d.ts +76 -0
  156. package/dist/models/SaveScheduledTransaction.js +62 -0
  157. package/dist/models/SaveSubTransaction.d.ts +5 -10
  158. package/dist/models/SaveSubTransaction.js +1 -6
  159. package/dist/models/SaveTransactionWithIdOrImportId.d.ts +9 -14
  160. package/dist/models/SaveTransactionWithIdOrImportId.js +1 -6
  161. package/dist/models/SaveTransactionWithOptionalFields.d.ts +7 -12
  162. package/dist/models/SaveTransactionWithOptionalFields.js +1 -6
  163. package/dist/models/SaveTransactionsResponse.d.ts +1 -6
  164. package/dist/models/SaveTransactionsResponse.js +1 -6
  165. package/dist/models/SaveTransactionsResponseData.d.ts +1 -6
  166. package/dist/models/SaveTransactionsResponseData.js +1 -6
  167. package/dist/models/ScheduledSubTransaction.d.ts +5 -10
  168. package/dist/models/ScheduledSubTransaction.js +1 -6
  169. package/dist/models/ScheduledTransactionDetail.d.ts +9 -14
  170. package/dist/models/ScheduledTransactionDetail.js +1 -6
  171. package/dist/models/ScheduledTransactionFrequency.d.ts +30 -0
  172. package/dist/models/ScheduledTransactionFrequency.js +53 -0
  173. package/dist/models/ScheduledTransactionResponse.d.ts +1 -6
  174. package/dist/models/ScheduledTransactionResponse.js +1 -6
  175. package/dist/models/ScheduledTransactionResponseData.d.ts +1 -6
  176. package/dist/models/ScheduledTransactionResponseData.js +1 -6
  177. package/dist/models/ScheduledTransactionSummary.d.ts +7 -12
  178. package/dist/models/ScheduledTransactionSummary.js +1 -6
  179. package/dist/models/ScheduledTransactionsResponse.d.ts +1 -6
  180. package/dist/models/ScheduledTransactionsResponse.js +1 -6
  181. package/dist/models/ScheduledTransactionsResponseData.d.ts +1 -6
  182. package/dist/models/ScheduledTransactionsResponseData.js +1 -6
  183. package/dist/models/SubTransaction.d.ts +8 -13
  184. package/dist/models/SubTransaction.js +1 -6
  185. package/dist/models/TransactionClearedStatus.d.ts +1 -6
  186. package/dist/models/TransactionClearedStatus.js +1 -6
  187. package/dist/models/TransactionDetail.d.ts +15 -20
  188. package/dist/models/TransactionDetail.js +1 -6
  189. package/dist/models/TransactionFlagColor.d.ts +1 -6
  190. package/dist/models/TransactionFlagColor.js +1 -6
  191. package/dist/models/TransactionResponse.d.ts +1 -6
  192. package/dist/models/TransactionResponse.js +1 -6
  193. package/dist/models/TransactionResponseData.d.ts +1 -6
  194. package/dist/models/TransactionResponseData.js +1 -6
  195. package/dist/models/TransactionSummary.d.ts +13 -18
  196. package/dist/models/TransactionSummary.js +1 -6
  197. package/dist/models/TransactionsImportResponse.d.ts +1 -6
  198. package/dist/models/TransactionsImportResponse.js +1 -6
  199. package/dist/models/TransactionsImportResponseData.d.ts +1 -6
  200. package/dist/models/TransactionsImportResponseData.js +1 -6
  201. package/dist/models/TransactionsResponse.d.ts +1 -6
  202. package/dist/models/TransactionsResponse.js +1 -6
  203. package/dist/models/TransactionsResponseData.d.ts +1 -6
  204. package/dist/models/TransactionsResponseData.js +1 -6
  205. package/dist/models/User.d.ts +1 -6
  206. package/dist/models/User.js +1 -6
  207. package/dist/models/UserResponse.d.ts +1 -6
  208. package/dist/models/UserResponse.js +1 -6
  209. package/dist/models/UserResponseData.d.ts +1 -6
  210. package/dist/models/UserResponseData.js +1 -6
  211. package/dist/models/index.d.ts +3 -0
  212. package/dist/models/index.js +3 -0
  213. package/dist/runtime.d.ts +1 -6
  214. package/dist/runtime.js +1 -6
  215. 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.70.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
  *
@@ -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.70.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.SavePayeeToJSON = exports.SavePayeeFromJSONTyped = exports.SavePayeeFromJSON = exports.instanceOfSavePayee = void 0;
@@ -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.70.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 { SavePayeeResponseData } from './SavePayeeResponseData';
13
8
  /**
@@ -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.70.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.SavePayeeResponseToJSON = exports.SavePayeeResponseFromJSONTyped = exports.SavePayeeResponseFromJSON = exports.instanceOfSavePayeeResponse = void 0;
@@ -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.70.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 { Payee } from './Payee';
13
8
  /**
@@ -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.70.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.SavePayeeResponseDataToJSON = exports.SavePayeeResponseDataFromJSONTyped = exports.SavePayeeResponseDataFromJSON = exports.instanceOfSavePayeeResponseData = void 0;
@@ -0,0 +1,76 @@
1
+ /**
2
+ * YNAB API Endpoints
3
+ * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
+ *
5
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
6
+ */
7
+ import type { TransactionFlagColor } from './TransactionFlagColor';
8
+ import type { ScheduledTransactionFrequency } from './ScheduledTransactionFrequency';
9
+ /**
10
+ *
11
+ * @export
12
+ * @interface SaveScheduledTransaction
13
+ */
14
+ export interface SaveScheduledTransaction {
15
+ /**
16
+ *
17
+ * @type {string}
18
+ * @memberof SaveScheduledTransaction
19
+ */
20
+ account_id: string;
21
+ /**
22
+ * The scheduled transaction date in ISO format (e.g. 2016-12-01).
23
+ * @type {string}
24
+ * @memberof SaveScheduledTransaction
25
+ */
26
+ date: string;
27
+ /**
28
+ * The scheduled transaction amount in milliunits format.
29
+ * @type {number}
30
+ * @memberof SaveScheduledTransaction
31
+ */
32
+ amount?: number;
33
+ /**
34
+ * The payee for the scheduled transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `transfer_payee_id` on the account resource.
35
+ * @type {string}
36
+ * @memberof SaveScheduledTransaction
37
+ */
38
+ payee_id?: string | null;
39
+ /**
40
+ * The payee name for the the scheduled transaction. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a payee with the same name or (2) creation of a new payee.
41
+ * @type {string}
42
+ * @memberof SaveScheduledTransaction
43
+ */
44
+ payee_name?: string | null;
45
+ /**
46
+ * The category for the scheduled transaction. Credit Card Payment categories are not permitted. Creating a split scheduled transaction is not currently supported.
47
+ * @type {string}
48
+ * @memberof SaveScheduledTransaction
49
+ */
50
+ category_id?: string | null;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof SaveScheduledTransaction
55
+ */
56
+ memo?: string | null;
57
+ /**
58
+ *
59
+ * @type {TransactionFlagColor}
60
+ * @memberof SaveScheduledTransaction
61
+ */
62
+ flag_color?: TransactionFlagColor | null;
63
+ /**
64
+ *
65
+ * @type {ScheduledTransactionFrequency}
66
+ * @memberof SaveScheduledTransaction
67
+ */
68
+ frequency?: ScheduledTransactionFrequency;
69
+ }
70
+ /**
71
+ * Check if a given object implements the SaveScheduledTransaction interface.
72
+ */
73
+ export declare function instanceOfSaveScheduledTransaction(value: object): value is SaveScheduledTransaction;
74
+ export declare function SaveScheduledTransactionFromJSON(json: any): SaveScheduledTransaction;
75
+ export declare function SaveScheduledTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveScheduledTransaction;
76
+ export declare function SaveScheduledTransactionToJSON(value?: SaveScheduledTransaction | null): any;
@@ -0,0 +1,62 @@
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.SaveScheduledTransactionToJSON = exports.SaveScheduledTransactionFromJSONTyped = exports.SaveScheduledTransactionFromJSON = exports.instanceOfSaveScheduledTransaction = void 0;
12
+ const TransactionFlagColor_1 = require("./TransactionFlagColor");
13
+ const ScheduledTransactionFrequency_1 = require("./ScheduledTransactionFrequency");
14
+ /**
15
+ * Check if a given object implements the SaveScheduledTransaction interface.
16
+ */
17
+ function instanceOfSaveScheduledTransaction(value) {
18
+ if (!('account_id' in value) || value['account_id'] === undefined)
19
+ return false;
20
+ if (!('date' in value) || value['date'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ exports.instanceOfSaveScheduledTransaction = instanceOfSaveScheduledTransaction;
25
+ function SaveScheduledTransactionFromJSON(json) {
26
+ return SaveScheduledTransactionFromJSONTyped(json, false);
27
+ }
28
+ exports.SaveScheduledTransactionFromJSON = SaveScheduledTransactionFromJSON;
29
+ function SaveScheduledTransactionFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'account_id': json['account_id'],
35
+ 'date': json['date'],
36
+ 'amount': json['amount'] == null ? undefined : json['amount'],
37
+ 'payee_id': json['payee_id'] == null ? undefined : json['payee_id'],
38
+ 'payee_name': json['payee_name'] == null ? undefined : json['payee_name'],
39
+ 'category_id': json['category_id'] == null ? undefined : json['category_id'],
40
+ 'memo': json['memo'] == null ? undefined : json['memo'],
41
+ 'flag_color': json['flag_color'] == null ? undefined : (0, TransactionFlagColor_1.TransactionFlagColorFromJSON)(json['flag_color']),
42
+ 'frequency': json['frequency'] == null ? undefined : (0, ScheduledTransactionFrequency_1.ScheduledTransactionFrequencyFromJSON)(json['frequency']),
43
+ };
44
+ }
45
+ exports.SaveScheduledTransactionFromJSONTyped = SaveScheduledTransactionFromJSONTyped;
46
+ function SaveScheduledTransactionToJSON(value) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'account_id': value['account_id'],
52
+ 'date': value['date'],
53
+ 'amount': value['amount'],
54
+ 'payee_id': value['payee_id'],
55
+ 'payee_name': value['payee_name'],
56
+ 'category_id': value['category_id'],
57
+ 'memo': value['memo'],
58
+ 'flag_color': (0, TransactionFlagColor_1.TransactionFlagColorToJSON)(value['flag_color']),
59
+ 'frequency': (0, ScheduledTransactionFrequency_1.ScheduledTransactionFrequencyToJSON)(value['frequency']),
60
+ };
61
+ }
62
+ exports.SaveScheduledTransactionToJSON = SaveScheduledTransactionToJSON;
@@ -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.70.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
  *
@@ -26,25 +21,25 @@ export interface SaveSubTransaction {
26
21
  * @type {string}
27
22
  * @memberof SaveSubTransaction
28
23
  */
29
- payee_id?: string;
24
+ payee_id?: string | null;
30
25
  /**
31
26
  * The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if import_id is also specified on parent transaction) or (2) a payee with the same name or (3) creation of a new payee.
32
27
  * @type {string}
33
28
  * @memberof SaveSubTransaction
34
29
  */
35
- payee_name?: string;
30
+ payee_name?: string | null;
36
31
  /**
37
32
  * The category for the subtransaction. Credit Card Payment categories are not permitted and will be ignored if supplied.
38
33
  * @type {string}
39
34
  * @memberof SaveSubTransaction
40
35
  */
41
- category_id?: string;
36
+ category_id?: string | null;
42
37
  /**
43
38
  *
44
39
  * @type {string}
45
40
  * @memberof SaveSubTransaction
46
41
  */
47
- memo?: string;
42
+ memo?: string | null;
48
43
  }
49
44
  /**
50
45
  * Check if a given object implements the SaveSubTransaction interface.
@@ -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.70.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.SaveSubTransactionToJSON = exports.SaveSubTransactionFromJSONTyped = exports.SaveSubTransactionFromJSON = exports.instanceOfSaveSubTransaction = void 0;
@@ -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.70.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 { TransactionFlagColor } from './TransactionFlagColor';
13
8
  import type { TransactionClearedStatus } from './TransactionClearedStatus';
@@ -37,29 +32,29 @@ export interface SaveTransactionWithIdOrImportId {
37
32
  */
38
33
  amount?: number;
39
34
  /**
40
- * The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `tranfer_payee_id` on the account resource.
35
+ * The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `transfer_payee_id` on the account resource.
41
36
  * @type {string}
42
37
  * @memberof SaveTransactionWithIdOrImportId
43
38
  */
44
- payee_id?: string;
39
+ payee_id?: string | null;
45
40
  /**
46
41
  * The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee.
47
42
  * @type {string}
48
43
  * @memberof SaveTransactionWithIdOrImportId
49
44
  */
50
- payee_name?: string;
45
+ payee_name?: string | null;
51
46
  /**
52
47
  * The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied.
53
48
  * @type {string}
54
49
  * @memberof SaveTransactionWithIdOrImportId
55
50
  */
56
- category_id?: string;
51
+ category_id?: string | null;
57
52
  /**
58
53
  *
59
54
  * @type {string}
60
55
  * @memberof SaveTransactionWithIdOrImportId
61
56
  */
62
- memo?: string;
57
+ memo?: string | null;
63
58
  /**
64
59
  *
65
60
  * @type {TransactionClearedStatus}
@@ -77,7 +72,7 @@ export interface SaveTransactionWithIdOrImportId {
77
72
  * @type {TransactionFlagColor}
78
73
  * @memberof SaveTransactionWithIdOrImportId
79
74
  */
80
- flag_color?: TransactionFlagColor;
75
+ flag_color?: TransactionFlagColor | null;
81
76
  /**
82
77
  * An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported.
83
78
  * @type {Array<SaveSubTransaction>}
@@ -89,13 +84,13 @@ export interface SaveTransactionWithIdOrImportId {
89
84
  * @type {string}
90
85
  * @memberof SaveTransactionWithIdOrImportId
91
86
  */
92
- id?: string;
87
+ id?: string | null;
93
88
  /**
94
89
  * If specified, this id will be used to lookup a transaction by its `import_id` for the purpose of updating the transaction itself. If not specified, an `id` should be supplied. You may not provide both an `id` and an `import_id` and updating an `import_id` on an existing transaction is not allowed.
95
90
  * @type {string}
96
91
  * @memberof SaveTransactionWithIdOrImportId
97
92
  */
98
- import_id?: string;
93
+ import_id?: string | null;
99
94
  }
100
95
  /**
101
96
  * Check if a given object implements the SaveTransactionWithIdOrImportId interface.
@@ -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.70.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.SaveTransactionWithIdOrImportIdToJSON = exports.SaveTransactionWithIdOrImportIdFromJSONTyped = exports.SaveTransactionWithIdOrImportIdFromJSON = exports.instanceOfSaveTransactionWithIdOrImportId = void 0;
@@ -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.70.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 { TransactionFlagColor } from './TransactionFlagColor';
13
8
  import type { TransactionClearedStatus } from './TransactionClearedStatus';
@@ -37,29 +32,29 @@ export interface SaveTransactionWithOptionalFields {
37
32
  */
38
33
  amount?: number;
39
34
  /**
40
- * The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `tranfer_payee_id` on the account resource.
35
+ * The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `transfer_payee_id` on the account resource.
41
36
  * @type {string}
42
37
  * @memberof SaveTransactionWithOptionalFields
43
38
  */
44
- payee_id?: string;
39
+ payee_id?: string | null;
45
40
  /**
46
41
  * The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee.
47
42
  * @type {string}
48
43
  * @memberof SaveTransactionWithOptionalFields
49
44
  */
50
- payee_name?: string;
45
+ payee_name?: string | null;
51
46
  /**
52
47
  * The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied.
53
48
  * @type {string}
54
49
  * @memberof SaveTransactionWithOptionalFields
55
50
  */
56
- category_id?: string;
51
+ category_id?: string | null;
57
52
  /**
58
53
  *
59
54
  * @type {string}
60
55
  * @memberof SaveTransactionWithOptionalFields
61
56
  */
62
- memo?: string;
57
+ memo?: string | null;
63
58
  /**
64
59
  *
65
60
  * @type {TransactionClearedStatus}
@@ -77,7 +72,7 @@ export interface SaveTransactionWithOptionalFields {
77
72
  * @type {TransactionFlagColor}
78
73
  * @memberof SaveTransactionWithOptionalFields
79
74
  */
80
- flag_color?: TransactionFlagColor;
75
+ flag_color?: TransactionFlagColor | null;
81
76
  /**
82
77
  * An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported.
83
78
  * @type {Array<SaveSubTransaction>}
@@ -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.70.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.SaveTransactionWithOptionalFieldsToJSON = exports.SaveTransactionWithOptionalFieldsFromJSONTyped = exports.SaveTransactionWithOptionalFieldsFromJSON = exports.instanceOfSaveTransactionWithOptionalFields = void 0;
@@ -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.70.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 { SaveTransactionsResponseData } from './SaveTransactionsResponseData';
13
8
  /**
@@ -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.70.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;
@@ -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.70.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
  /**
@@ -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.70.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;
@@ -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.70.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
  *
@@ -38,25 +33,25 @@ export interface ScheduledSubTransaction {
38
33
  * @type {string}
39
34
  * @memberof ScheduledSubTransaction
40
35
  */
41
- memo?: string;
36
+ memo?: string | null;
42
37
  /**
43
38
  *
44
39
  * @type {string}
45
40
  * @memberof ScheduledSubTransaction
46
41
  */
47
- payee_id?: string;
42
+ payee_id?: string | null;
48
43
  /**
49
44
  *
50
45
  * @type {string}
51
46
  * @memberof ScheduledSubTransaction
52
47
  */
53
- category_id?: string;
48
+ category_id?: string | null;
54
49
  /**
55
50
  * If a transfer, the account_id which the scheduled subtransaction transfers to
56
51
  * @type {string}
57
52
  * @memberof ScheduledSubTransaction
58
53
  */
59
- transfer_account_id?: string;
54
+ transfer_account_id?: string | null;
60
55
  /**
61
56
  * Whether or not the scheduled subtransaction has been deleted. Deleted scheduled subtransactions will only be included in delta requests.
62
57
  * @type {boolean}
@@ -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.70.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;
@@ -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.70.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 { TransactionFlagColor } from './TransactionFlagColor';
13
8
  import type { ScheduledSubTransaction } from './ScheduledSubTransaction';
@@ -52,19 +47,19 @@ export interface ScheduledTransactionDetail {
52
47
  * @type {string}
53
48
  * @memberof ScheduledTransactionDetail
54
49
  */
55
- memo?: string;
50
+ memo?: string | null;
56
51
  /**
57
52
  *
58
53
  * @type {TransactionFlagColor}
59
54
  * @memberof ScheduledTransactionDetail
60
55
  */
61
- flag_color?: TransactionFlagColor;
56
+ flag_color?: TransactionFlagColor | null;
62
57
  /**
63
58
  * The customized name of a transaction flag
64
59
  * @type {string}
65
60
  * @memberof ScheduledTransactionDetail
66
61
  */
67
- flag_name?: string;
62
+ flag_name?: string | null;
68
63
  /**
69
64
  *
70
65
  * @type {string}
@@ -76,19 +71,19 @@ export interface ScheduledTransactionDetail {
76
71
  * @type {string}
77
72
  * @memberof ScheduledTransactionDetail
78
73
  */
79
- payee_id?: string;
74
+ payee_id?: string | null;
80
75
  /**
81
76
  *
82
77
  * @type {string}
83
78
  * @memberof ScheduledTransactionDetail
84
79
  */
85
- category_id?: string;
80
+ category_id?: string | null;
86
81
  /**
87
82
  * If a transfer, the account_id which the scheduled transaction transfers to
88
83
  * @type {string}
89
84
  * @memberof ScheduledTransactionDetail
90
85
  */
91
- transfer_account_id?: string;
86
+ transfer_account_id?: string | null;
92
87
  /**
93
88
  * Whether or not the scheduled transaction has been deleted. Deleted scheduled transactions will only be included in delta requests.
94
89
  * @type {boolean}
@@ -106,13 +101,13 @@ export interface ScheduledTransactionDetail {
106
101
  * @type {string}
107
102
  * @memberof ScheduledTransactionDetail
108
103
  */
109
- payee_name?: string;
104
+ payee_name?: string | null;
110
105
  /**
111
106
  * The name of the category. If a split scheduled transaction, this will be 'Split'.
112
107
  * @type {string}
113
108
  * @memberof ScheduledTransactionDetail
114
109
  */
115
- category_name?: string;
110
+ category_name?: string | null;
116
111
  /**
117
112
  * If a split scheduled transaction, the subtransactions.
118
113
  * @type {Array<ScheduledSubTransaction>}