ynab 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/dist/apis/AccountsApi.d.ts +1 -1
  2. package/dist/apis/AccountsApi.js +1 -1
  3. package/dist/apis/BudgetsApi.d.ts +1 -1
  4. package/dist/apis/BudgetsApi.js +1 -1
  5. package/dist/apis/CategoriesApi.d.ts +1 -1
  6. package/dist/apis/CategoriesApi.js +1 -1
  7. package/dist/apis/MonthsApi.d.ts +1 -1
  8. package/dist/apis/MonthsApi.js +1 -1
  9. package/dist/apis/PayeeLocationsApi.d.ts +1 -1
  10. package/dist/apis/PayeeLocationsApi.js +1 -1
  11. package/dist/apis/PayeesApi.d.ts +17 -2
  12. package/dist/apis/PayeesApi.js +43 -1
  13. package/dist/apis/ScheduledTransactionsApi.d.ts +1 -1
  14. package/dist/apis/ScheduledTransactionsApi.js +1 -1
  15. package/dist/apis/TransactionsApi.d.ts +9 -9
  16. package/dist/apis/TransactionsApi.js +9 -9
  17. package/dist/apis/UserApi.d.ts +1 -1
  18. package/dist/apis/UserApi.js +1 -1
  19. package/dist/browser/ynab.js +1 -1
  20. package/dist/models/Account.d.ts +8 -8
  21. package/dist/models/Account.js +51 -46
  22. package/dist/models/AccountResponse.d.ts +2 -2
  23. package/dist/models/AccountResponse.js +8 -11
  24. package/dist/models/AccountResponseData.d.ts +2 -2
  25. package/dist/models/AccountResponseData.js +8 -11
  26. package/dist/models/AccountType.d.ts +2 -1
  27. package/dist/models/AccountType.js +13 -2
  28. package/dist/models/AccountsResponse.d.ts +2 -2
  29. package/dist/models/AccountsResponse.js +8 -11
  30. package/dist/models/AccountsResponseData.d.ts +2 -2
  31. package/dist/models/AccountsResponseData.js +11 -13
  32. package/dist/models/BudgetDetail.d.ts +8 -8
  33. package/dist/models/BudgetDetail.js +45 -48
  34. package/dist/models/BudgetDetailResponse.d.ts +2 -2
  35. package/dist/models/BudgetDetailResponse.js +8 -11
  36. package/dist/models/BudgetDetailResponseData.d.ts +2 -2
  37. package/dist/models/BudgetDetailResponseData.js +11 -13
  38. package/dist/models/BudgetSettings.d.ts +2 -2
  39. package/dist/models/BudgetSettings.js +11 -13
  40. package/dist/models/BudgetSettingsResponse.d.ts +2 -2
  41. package/dist/models/BudgetSettingsResponse.js +8 -11
  42. package/dist/models/BudgetSettingsResponseData.d.ts +2 -2
  43. package/dist/models/BudgetSettingsResponseData.js +8 -11
  44. package/dist/models/BudgetSummary.d.ts +4 -4
  45. package/dist/models/BudgetSummary.js +23 -26
  46. package/dist/models/BudgetSummaryResponse.d.ts +2 -2
  47. package/dist/models/BudgetSummaryResponse.js +8 -11
  48. package/dist/models/BudgetSummaryResponseData.d.ts +2 -2
  49. package/dist/models/BudgetSummaryResponseData.js +10 -14
  50. package/dist/models/BulkResponse.d.ts +2 -2
  51. package/dist/models/BulkResponse.js +8 -11
  52. package/dist/models/BulkResponseData.d.ts +2 -2
  53. package/dist/models/BulkResponseData.js +8 -11
  54. package/dist/models/BulkResponseDataBulk.d.ts +2 -2
  55. package/dist/models/BulkResponseDataBulk.js +11 -13
  56. package/dist/models/BulkTransactions.d.ts +5 -5
  57. package/dist/models/BulkTransactions.js +10 -13
  58. package/dist/models/CategoriesResponse.d.ts +2 -2
  59. package/dist/models/CategoriesResponse.js +8 -11
  60. package/dist/models/CategoriesResponseData.d.ts +2 -2
  61. package/dist/models/CategoriesResponseData.js +11 -13
  62. package/dist/models/Category.d.ts +21 -15
  63. package/dist/models/Category.js +61 -56
  64. package/dist/models/CategoryGroup.d.ts +2 -2
  65. package/dist/models/CategoryGroup.js +17 -17
  66. package/dist/models/CategoryGroupWithCategories.d.ts +2 -2
  67. package/dist/models/CategoryGroupWithCategories.js +20 -19
  68. package/dist/models/CategoryResponse.d.ts +2 -2
  69. package/dist/models/CategoryResponse.js +8 -11
  70. package/dist/models/CategoryResponseData.d.ts +2 -2
  71. package/dist/models/CategoryResponseData.js +8 -11
  72. package/dist/models/CurrencyFormat.d.ts +2 -2
  73. package/dist/models/CurrencyFormat.js +29 -25
  74. package/dist/models/DateFormat.d.ts +2 -2
  75. package/dist/models/DateFormat.js +8 -11
  76. package/dist/models/ErrorDetail.d.ts +2 -2
  77. package/dist/models/ErrorDetail.js +14 -15
  78. package/dist/models/ErrorResponse.d.ts +2 -2
  79. package/dist/models/ErrorResponse.js +8 -11
  80. package/dist/models/ExistingTransaction.d.ts +94 -0
  81. package/dist/models/ExistingTransaction.js +68 -0
  82. package/dist/models/HybridTransaction.d.ts +21 -15
  83. package/dist/models/HybridTransaction.js +63 -57
  84. package/dist/models/HybridTransactionsResponse.d.ts +2 -2
  85. package/dist/models/HybridTransactionsResponse.js +8 -11
  86. package/dist/models/HybridTransactionsResponseData.d.ts +2 -2
  87. package/dist/models/HybridTransactionsResponseData.js +10 -14
  88. package/dist/models/MonthDetail.d.ts +4 -4
  89. package/dist/models/MonthDetail.js +30 -28
  90. package/dist/models/MonthDetailResponse.d.ts +2 -2
  91. package/dist/models/MonthDetailResponse.js +8 -11
  92. package/dist/models/MonthDetailResponseData.d.ts +2 -2
  93. package/dist/models/MonthDetailResponseData.js +8 -11
  94. package/dist/models/MonthSummariesResponse.d.ts +2 -2
  95. package/dist/models/MonthSummariesResponse.js +8 -11
  96. package/dist/models/MonthSummariesResponseData.d.ts +2 -2
  97. package/dist/models/MonthSummariesResponseData.js +11 -13
  98. package/dist/models/MonthSummary.d.ts +4 -4
  99. package/dist/models/MonthSummary.js +27 -26
  100. package/dist/models/NewTransaction.d.ts +100 -0
  101. package/dist/models/NewTransaction.js +70 -0
  102. package/dist/models/PatchCategoryWrapper.d.ts +2 -2
  103. package/dist/models/PatchCategoryWrapper.js +8 -11
  104. package/dist/models/PatchMonthCategoryWrapper.d.ts +2 -2
  105. package/dist/models/PatchMonthCategoryWrapper.js +8 -11
  106. package/dist/models/PatchPayeeWrapper.d.ts +32 -0
  107. package/dist/models/PatchPayeeWrapper.js +48 -0
  108. package/dist/models/PatchTransactionsWrapper.d.ts +5 -5
  109. package/dist/models/PatchTransactionsWrapper.js +10 -13
  110. package/dist/models/Payee.d.ts +3 -3
  111. package/dist/models/Payee.js +16 -18
  112. package/dist/models/PayeeLocation.d.ts +2 -2
  113. package/dist/models/PayeeLocation.js +20 -19
  114. package/dist/models/PayeeLocationResponse.d.ts +2 -2
  115. package/dist/models/PayeeLocationResponse.js +8 -11
  116. package/dist/models/PayeeLocationResponseData.d.ts +2 -2
  117. package/dist/models/PayeeLocationResponseData.js +8 -11
  118. package/dist/models/PayeeLocationsResponse.d.ts +2 -2
  119. package/dist/models/PayeeLocationsResponse.js +8 -11
  120. package/dist/models/PayeeLocationsResponseData.d.ts +2 -2
  121. package/dist/models/PayeeLocationsResponseData.js +8 -11
  122. package/dist/models/PayeeResponse.d.ts +2 -2
  123. package/dist/models/PayeeResponse.js +8 -11
  124. package/dist/models/PayeeResponseData.d.ts +2 -2
  125. package/dist/models/PayeeResponseData.js +8 -11
  126. package/dist/models/PayeesResponse.d.ts +2 -2
  127. package/dist/models/PayeesResponse.js +8 -11
  128. package/dist/models/PayeesResponseData.d.ts +2 -2
  129. package/dist/models/PayeesResponseData.js +11 -13
  130. package/dist/models/PostAccountWrapper.d.ts +2 -2
  131. package/dist/models/PostAccountWrapper.js +8 -11
  132. package/dist/models/PostTransactionsWrapper.d.ts +7 -7
  133. package/dist/models/PostTransactionsWrapper.js +10 -15
  134. package/dist/models/PutTransactionWrapper.d.ts +5 -5
  135. package/dist/models/PutTransactionWrapper.js +10 -13
  136. package/dist/models/SaveAccount.d.ts +2 -2
  137. package/dist/models/SaveAccount.js +14 -15
  138. package/dist/models/SaveCategory.d.ts +4 -4
  139. package/dist/models/SaveCategory.js +11 -16
  140. package/dist/models/SaveCategoryResponse.d.ts +2 -2
  141. package/dist/models/SaveCategoryResponse.js +8 -11
  142. package/dist/models/SaveCategoryResponseData.d.ts +2 -2
  143. package/dist/models/SaveCategoryResponseData.js +11 -13
  144. package/dist/models/SaveMonthCategory.d.ts +2 -2
  145. package/dist/models/SaveMonthCategory.js +8 -11
  146. package/dist/models/SavePayee.d.ts +31 -0
  147. package/dist/models/SavePayee.js +45 -0
  148. package/dist/models/SavePayeeResponse.d.ts +32 -0
  149. package/dist/models/SavePayeeResponse.js +48 -0
  150. package/dist/models/SavePayeeResponseData.d.ts +38 -0
  151. package/dist/models/SavePayeeResponseData.js +52 -0
  152. package/dist/models/SaveSubTransaction.d.ts +6 -6
  153. package/dist/models/SaveSubTransaction.js +16 -20
  154. package/dist/models/SaveTransactionWithIdOrImportId.d.ts +106 -0
  155. package/dist/models/SaveTransactionWithIdOrImportId.js +72 -0
  156. package/dist/models/SaveTransactionWithOptionalFields.d.ts +9 -15
  157. package/dist/models/SaveTransactionWithOptionalFields.js +29 -36
  158. package/dist/models/SaveTransactionsResponse.d.ts +2 -2
  159. package/dist/models/SaveTransactionsResponse.js +8 -11
  160. package/dist/models/SaveTransactionsResponseData.d.ts +2 -2
  161. package/dist/models/SaveTransactionsResponseData.js +17 -20
  162. package/dist/models/ScheduledSubTransaction.d.ts +6 -6
  163. package/dist/models/ScheduledSubTransaction.js +25 -26
  164. package/dist/models/ScheduledTransactionDetail.d.ts +16 -10
  165. package/dist/models/ScheduledTransactionDetail.js +49 -43
  166. package/dist/models/ScheduledTransactionResponse.d.ts +2 -2
  167. package/dist/models/ScheduledTransactionResponse.js +8 -11
  168. package/dist/models/ScheduledTransactionResponseData.d.ts +2 -2
  169. package/dist/models/ScheduledTransactionResponseData.js +8 -11
  170. package/dist/models/ScheduledTransactionSummary.d.ts +13 -7
  171. package/dist/models/ScheduledTransactionSummary.js +38 -34
  172. package/dist/models/ScheduledTransactionsResponse.d.ts +2 -2
  173. package/dist/models/ScheduledTransactionsResponse.js +8 -11
  174. package/dist/models/ScheduledTransactionsResponseData.d.ts +2 -2
  175. package/dist/models/ScheduledTransactionsResponseData.js +11 -13
  176. package/dist/models/SubTransaction.d.ts +9 -9
  177. package/dist/models/SubTransaction.js +31 -32
  178. package/dist/models/TransactionClearedStatus.d.ts +2 -1
  179. package/dist/models/TransactionClearedStatus.js +13 -2
  180. package/dist/models/TransactionDetail.d.ts +22 -16
  181. package/dist/models/TransactionDetail.js +62 -56
  182. package/dist/models/TransactionFlagColor.d.ts +2 -1
  183. package/dist/models/TransactionFlagColor.js +13 -2
  184. package/dist/models/TransactionResponse.d.ts +2 -2
  185. package/dist/models/TransactionResponse.js +8 -11
  186. package/dist/models/TransactionResponseData.d.ts +2 -2
  187. package/dist/models/TransactionResponseData.js +8 -11
  188. package/dist/models/TransactionSummary.d.ts +19 -13
  189. package/dist/models/TransactionSummary.js +51 -47
  190. package/dist/models/TransactionsImportResponse.d.ts +2 -2
  191. package/dist/models/TransactionsImportResponse.js +8 -11
  192. package/dist/models/TransactionsImportResponseData.d.ts +2 -2
  193. package/dist/models/TransactionsImportResponseData.js +8 -11
  194. package/dist/models/TransactionsResponse.d.ts +2 -2
  195. package/dist/models/TransactionsResponse.js +8 -11
  196. package/dist/models/TransactionsResponseData.d.ts +2 -2
  197. package/dist/models/TransactionsResponseData.js +11 -13
  198. package/dist/models/User.d.ts +2 -2
  199. package/dist/models/User.js +8 -11
  200. package/dist/models/UserResponse.d.ts +2 -2
  201. package/dist/models/UserResponse.js +8 -11
  202. package/dist/models/UserResponseData.d.ts +2 -2
  203. package/dist/models/UserResponseData.js +8 -11
  204. package/dist/models/index.d.ts +7 -9
  205. package/dist/models/index.js +7 -9
  206. package/dist/runtime.d.ts +1 -1
  207. package/dist/runtime.js +1 -1
  208. package/package.json +1 -1
@@ -2,14 +2,14 @@
2
2
  * YNAB API Endpoints
3
3
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { SaveTransactionWithId } from './SaveTransactionWithId';
12
+ import type { SaveTransactionWithIdOrImportId } from './SaveTransactionWithIdOrImportId';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,15 +18,15 @@ import type { SaveTransactionWithId } from './SaveTransactionWithId';
18
18
  export interface PatchTransactionsWrapper {
19
19
  /**
20
20
  *
21
- * @type {Array<SaveTransactionWithId>}
21
+ * @type {Array<SaveTransactionWithIdOrImportId>}
22
22
  * @memberof PatchTransactionsWrapper
23
23
  */
24
- transactions: Array<SaveTransactionWithId>;
24
+ transactions: Array<SaveTransactionWithIdOrImportId>;
25
25
  }
26
26
  /**
27
27
  * Check if a given object implements the PatchTransactionsWrapper interface.
28
28
  */
29
- export declare function instanceOfPatchTransactionsWrapper(value: object): boolean;
29
+ export declare function instanceOfPatchTransactionsWrapper(value: object): value is PatchTransactionsWrapper;
30
30
  export declare function PatchTransactionsWrapperFromJSON(json: any): PatchTransactionsWrapper;
31
31
  export declare function PatchTransactionsWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchTransactionsWrapper;
32
32
  export declare function PatchTransactionsWrapperToJSON(value?: PatchTransactionsWrapper | null): any;
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,14 +14,14 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PatchTransactionsWrapperToJSON = exports.PatchTransactionsWrapperFromJSONTyped = exports.PatchTransactionsWrapperFromJSON = exports.instanceOfPatchTransactionsWrapper = void 0;
17
- const SaveTransactionWithId_1 = require("./SaveTransactionWithId");
17
+ const SaveTransactionWithIdOrImportId_1 = require("./SaveTransactionWithIdOrImportId");
18
18
  /**
19
19
  * Check if a given object implements the PatchTransactionsWrapper interface.
20
20
  */
21
21
  function instanceOfPatchTransactionsWrapper(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "transactions" in value;
24
- return isInstance;
22
+ if (!('transactions' in value) || value['transactions'] === undefined)
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfPatchTransactionsWrapper = instanceOfPatchTransactionsWrapper;
27
27
  function PatchTransactionsWrapperFromJSON(json) {
@@ -29,23 +29,20 @@ function PatchTransactionsWrapperFromJSON(json) {
29
29
  }
30
30
  exports.PatchTransactionsWrapperFromJSON = PatchTransactionsWrapperFromJSON;
31
31
  function PatchTransactionsWrapperFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
32
+ if (json == null) {
33
33
  return json;
34
34
  }
35
35
  return {
36
- 'transactions': (json['transactions'].map(SaveTransactionWithId_1.SaveTransactionWithIdFromJSON)),
36
+ 'transactions': (json['transactions'].map(SaveTransactionWithIdOrImportId_1.SaveTransactionWithIdOrImportIdFromJSON)),
37
37
  };
38
38
  }
39
39
  exports.PatchTransactionsWrapperFromJSONTyped = PatchTransactionsWrapperFromJSONTyped;
40
40
  function PatchTransactionsWrapperToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
41
+ if (value == null) {
42
+ return value;
46
43
  }
47
44
  return {
48
- 'transactions': (value.transactions.map(SaveTransactionWithId_1.SaveTransactionWithIdToJSON)),
45
+ 'transactions': (value['transactions'].map(SaveTransactionWithIdOrImportId_1.SaveTransactionWithIdOrImportIdToJSON)),
49
46
  };
50
47
  }
51
48
  exports.PatchTransactionsWrapperToJSON = PatchTransactionsWrapperToJSON;
@@ -2,7 +2,7 @@
2
2
  * YNAB API Endpoints
3
3
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -32,7 +32,7 @@ export interface Payee {
32
32
  * @type {string}
33
33
  * @memberof Payee
34
34
  */
35
- transfer_account_id?: string | null;
35
+ transfer_account_id?: string;
36
36
  /**
37
37
  * Whether or not the payee has been deleted. Deleted payees will only be included in delta requests.
38
38
  * @type {boolean}
@@ -43,7 +43,7 @@ export interface Payee {
43
43
  /**
44
44
  * Check if a given object implements the Payee interface.
45
45
  */
46
- export declare function instanceOfPayee(value: object): boolean;
46
+ export declare function instanceOfPayee(value: object): value is Payee;
47
47
  export declare function PayeeFromJSON(json: any): Payee;
48
48
  export declare function PayeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Payee;
49
49
  export declare function PayeeToJSON(value?: Payee | null): any;
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,16 +14,17 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PayeeToJSON = exports.PayeeFromJSONTyped = exports.PayeeFromJSON = exports.instanceOfPayee = void 0;
17
- const runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the Payee interface.
20
19
  */
21
20
  function instanceOfPayee(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "id" in value;
24
- isInstance = isInstance && "name" in value;
25
- isInstance = isInstance && "deleted" in value;
26
- return isInstance;
21
+ if (!('id' in value) || value['id'] === undefined)
22
+ return false;
23
+ if (!('name' in value) || value['name'] === undefined)
24
+ return false;
25
+ if (!('deleted' in value) || value['deleted'] === undefined)
26
+ return false;
27
+ return true;
27
28
  }
28
29
  exports.instanceOfPayee = instanceOfPayee;
29
30
  function PayeeFromJSON(json) {
@@ -31,29 +32,26 @@ function PayeeFromJSON(json) {
31
32
  }
32
33
  exports.PayeeFromJSON = PayeeFromJSON;
33
34
  function PayeeFromJSONTyped(json, ignoreDiscriminator) {
34
- if ((json === undefined) || (json === null)) {
35
+ if (json == null) {
35
36
  return json;
36
37
  }
37
38
  return {
38
39
  'id': json['id'],
39
40
  'name': json['name'],
40
- 'transfer_account_id': !(0, runtime_1.exists)(json, 'transfer_account_id') ? undefined : json['transfer_account_id'],
41
+ 'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
41
42
  'deleted': json['deleted'],
42
43
  };
43
44
  }
44
45
  exports.PayeeFromJSONTyped = PayeeFromJSONTyped;
45
46
  function PayeeToJSON(value) {
46
- if (value === undefined) {
47
- return undefined;
48
- }
49
- if (value === null) {
50
- return null;
47
+ if (value == null) {
48
+ return value;
51
49
  }
52
50
  return {
53
- 'id': value.id,
54
- 'name': value.name,
55
- 'transfer_account_id': value.transfer_account_id,
56
- 'deleted': value.deleted,
51
+ 'id': value['id'],
52
+ 'name': value['name'],
53
+ 'transfer_account_id': value['transfer_account_id'],
54
+ 'deleted': value['deleted'],
57
55
  };
58
56
  }
59
57
  exports.PayeeToJSON = PayeeToJSON;
@@ -2,7 +2,7 @@
2
2
  * YNAB API Endpoints
3
3
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -49,7 +49,7 @@ export interface PayeeLocation {
49
49
  /**
50
50
  * Check if a given object implements the PayeeLocation interface.
51
51
  */
52
- export declare function instanceOfPayeeLocation(value: object): boolean;
52
+ export declare function instanceOfPayeeLocation(value: object): value is PayeeLocation;
53
53
  export declare function PayeeLocationFromJSON(json: any): PayeeLocation;
54
54
  export declare function PayeeLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocation;
55
55
  export declare function PayeeLocationToJSON(value?: PayeeLocation | null): any;
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,13 +18,17 @@ exports.PayeeLocationToJSON = exports.PayeeLocationFromJSONTyped = exports.Payee
18
18
  * Check if a given object implements the PayeeLocation interface.
19
19
  */
20
20
  function instanceOfPayeeLocation(value) {
21
- let isInstance = true;
22
- isInstance = isInstance && "id" in value;
23
- isInstance = isInstance && "payee_id" in value;
24
- isInstance = isInstance && "latitude" in value;
25
- isInstance = isInstance && "longitude" in value;
26
- isInstance = isInstance && "deleted" in value;
27
- return isInstance;
21
+ if (!('id' in value) || value['id'] === undefined)
22
+ return false;
23
+ if (!('payee_id' in value) || value['payee_id'] === undefined)
24
+ return false;
25
+ if (!('latitude' in value) || value['latitude'] === undefined)
26
+ return false;
27
+ if (!('longitude' in value) || value['longitude'] === undefined)
28
+ return false;
29
+ if (!('deleted' in value) || value['deleted'] === undefined)
30
+ return false;
31
+ return true;
28
32
  }
29
33
  exports.instanceOfPayeeLocation = instanceOfPayeeLocation;
30
34
  function PayeeLocationFromJSON(json) {
@@ -32,7 +36,7 @@ function PayeeLocationFromJSON(json) {
32
36
  }
33
37
  exports.PayeeLocationFromJSON = PayeeLocationFromJSON;
34
38
  function PayeeLocationFromJSONTyped(json, ignoreDiscriminator) {
35
- if ((json === undefined) || (json === null)) {
39
+ if (json == null) {
36
40
  return json;
37
41
  }
38
42
  return {
@@ -45,18 +49,15 @@ function PayeeLocationFromJSONTyped(json, ignoreDiscriminator) {
45
49
  }
46
50
  exports.PayeeLocationFromJSONTyped = PayeeLocationFromJSONTyped;
47
51
  function PayeeLocationToJSON(value) {
48
- if (value === undefined) {
49
- return undefined;
50
- }
51
- if (value === null) {
52
- return null;
52
+ if (value == null) {
53
+ return value;
53
54
  }
54
55
  return {
55
- 'id': value.id,
56
- 'payee_id': value.payee_id,
57
- 'latitude': value.latitude,
58
- 'longitude': value.longitude,
59
- 'deleted': value.deleted,
56
+ 'id': value['id'],
57
+ 'payee_id': value['payee_id'],
58
+ 'latitude': value['latitude'],
59
+ 'longitude': value['longitude'],
60
+ 'deleted': value['deleted'],
60
61
  };
61
62
  }
62
63
  exports.PayeeLocationToJSON = PayeeLocationToJSON;
@@ -2,7 +2,7 @@
2
2
  * YNAB API Endpoints
3
3
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ export interface PayeeLocationResponse {
26
26
  /**
27
27
  * Check if a given object implements the PayeeLocationResponse interface.
28
28
  */
29
- export declare function instanceOfPayeeLocationResponse(value: object): boolean;
29
+ export declare function instanceOfPayeeLocationResponse(value: object): value is PayeeLocationResponse;
30
30
  export declare function PayeeLocationResponseFromJSON(json: any): PayeeLocationResponse;
31
31
  export declare function PayeeLocationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocationResponse;
32
32
  export declare function PayeeLocationResponseToJSON(value?: PayeeLocationResponse | null): any;
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,9 +19,9 @@ const PayeeLocationResponseData_1 = require("./PayeeLocationResponseData");
19
19
  * Check if a given object implements the PayeeLocationResponse interface.
20
20
  */
21
21
  function instanceOfPayeeLocationResponse(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "data" in value;
24
- return isInstance;
22
+ if (!('data' in value) || value['data'] === undefined)
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfPayeeLocationResponse = instanceOfPayeeLocationResponse;
27
27
  function PayeeLocationResponseFromJSON(json) {
@@ -29,7 +29,7 @@ function PayeeLocationResponseFromJSON(json) {
29
29
  }
30
30
  exports.PayeeLocationResponseFromJSON = PayeeLocationResponseFromJSON;
31
31
  function PayeeLocationResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
32
+ if (json == null) {
33
33
  return json;
34
34
  }
35
35
  return {
@@ -38,14 +38,11 @@ function PayeeLocationResponseFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  exports.PayeeLocationResponseFromJSONTyped = PayeeLocationResponseFromJSONTyped;
40
40
  function PayeeLocationResponseToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
41
+ if (value == null) {
42
+ return value;
46
43
  }
47
44
  return {
48
- 'data': (0, PayeeLocationResponseData_1.PayeeLocationResponseDataToJSON)(value.data),
45
+ 'data': (0, PayeeLocationResponseData_1.PayeeLocationResponseDataToJSON)(value['data']),
49
46
  };
50
47
  }
51
48
  exports.PayeeLocationResponseToJSON = PayeeLocationResponseToJSON;
@@ -2,7 +2,7 @@
2
2
  * YNAB API Endpoints
3
3
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ export interface PayeeLocationResponseData {
26
26
  /**
27
27
  * Check if a given object implements the PayeeLocationResponseData interface.
28
28
  */
29
- export declare function instanceOfPayeeLocationResponseData(value: object): boolean;
29
+ export declare function instanceOfPayeeLocationResponseData(value: object): value is PayeeLocationResponseData;
30
30
  export declare function PayeeLocationResponseDataFromJSON(json: any): PayeeLocationResponseData;
31
31
  export declare function PayeeLocationResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocationResponseData;
32
32
  export declare function PayeeLocationResponseDataToJSON(value?: PayeeLocationResponseData | null): any;
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,9 +19,9 @@ const PayeeLocation_1 = require("./PayeeLocation");
19
19
  * Check if a given object implements the PayeeLocationResponseData interface.
20
20
  */
21
21
  function instanceOfPayeeLocationResponseData(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "payee_location" in value;
24
- return isInstance;
22
+ if (!('payee_location' in value) || value['payee_location'] === undefined)
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfPayeeLocationResponseData = instanceOfPayeeLocationResponseData;
27
27
  function PayeeLocationResponseDataFromJSON(json) {
@@ -29,7 +29,7 @@ function PayeeLocationResponseDataFromJSON(json) {
29
29
  }
30
30
  exports.PayeeLocationResponseDataFromJSON = PayeeLocationResponseDataFromJSON;
31
31
  function PayeeLocationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
32
+ if (json == null) {
33
33
  return json;
34
34
  }
35
35
  return {
@@ -38,14 +38,11 @@ function PayeeLocationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  exports.PayeeLocationResponseDataFromJSONTyped = PayeeLocationResponseDataFromJSONTyped;
40
40
  function PayeeLocationResponseDataToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
41
+ if (value == null) {
42
+ return value;
46
43
  }
47
44
  return {
48
- 'payee_location': (0, PayeeLocation_1.PayeeLocationToJSON)(value.payee_location),
45
+ 'payee_location': (0, PayeeLocation_1.PayeeLocationToJSON)(value['payee_location']),
49
46
  };
50
47
  }
51
48
  exports.PayeeLocationResponseDataToJSON = PayeeLocationResponseDataToJSON;
@@ -2,7 +2,7 @@
2
2
  * YNAB API Endpoints
3
3
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ export interface PayeeLocationsResponse {
26
26
  /**
27
27
  * Check if a given object implements the PayeeLocationsResponse interface.
28
28
  */
29
- export declare function instanceOfPayeeLocationsResponse(value: object): boolean;
29
+ export declare function instanceOfPayeeLocationsResponse(value: object): value is PayeeLocationsResponse;
30
30
  export declare function PayeeLocationsResponseFromJSON(json: any): PayeeLocationsResponse;
31
31
  export declare function PayeeLocationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocationsResponse;
32
32
  export declare function PayeeLocationsResponseToJSON(value?: PayeeLocationsResponse | null): any;
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,9 +19,9 @@ const PayeeLocationsResponseData_1 = require("./PayeeLocationsResponseData");
19
19
  * Check if a given object implements the PayeeLocationsResponse interface.
20
20
  */
21
21
  function instanceOfPayeeLocationsResponse(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "data" in value;
24
- return isInstance;
22
+ if (!('data' in value) || value['data'] === undefined)
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfPayeeLocationsResponse = instanceOfPayeeLocationsResponse;
27
27
  function PayeeLocationsResponseFromJSON(json) {
@@ -29,7 +29,7 @@ function PayeeLocationsResponseFromJSON(json) {
29
29
  }
30
30
  exports.PayeeLocationsResponseFromJSON = PayeeLocationsResponseFromJSON;
31
31
  function PayeeLocationsResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
32
+ if (json == null) {
33
33
  return json;
34
34
  }
35
35
  return {
@@ -38,14 +38,11 @@ function PayeeLocationsResponseFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  exports.PayeeLocationsResponseFromJSONTyped = PayeeLocationsResponseFromJSONTyped;
40
40
  function PayeeLocationsResponseToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
41
+ if (value == null) {
42
+ return value;
46
43
  }
47
44
  return {
48
- 'data': (0, PayeeLocationsResponseData_1.PayeeLocationsResponseDataToJSON)(value.data),
45
+ 'data': (0, PayeeLocationsResponseData_1.PayeeLocationsResponseDataToJSON)(value['data']),
49
46
  };
50
47
  }
51
48
  exports.PayeeLocationsResponseToJSON = PayeeLocationsResponseToJSON;
@@ -2,7 +2,7 @@
2
2
  * YNAB API Endpoints
3
3
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ export interface PayeeLocationsResponseData {
26
26
  /**
27
27
  * Check if a given object implements the PayeeLocationsResponseData interface.
28
28
  */
29
- export declare function instanceOfPayeeLocationsResponseData(value: object): boolean;
29
+ export declare function instanceOfPayeeLocationsResponseData(value: object): value is PayeeLocationsResponseData;
30
30
  export declare function PayeeLocationsResponseDataFromJSON(json: any): PayeeLocationsResponseData;
31
31
  export declare function PayeeLocationsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocationsResponseData;
32
32
  export declare function PayeeLocationsResponseDataToJSON(value?: PayeeLocationsResponseData | null): any;
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,9 +19,9 @@ const PayeeLocation_1 = require("./PayeeLocation");
19
19
  * Check if a given object implements the PayeeLocationsResponseData interface.
20
20
  */
21
21
  function instanceOfPayeeLocationsResponseData(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "payee_locations" in value;
24
- return isInstance;
22
+ if (!('payee_locations' in value) || value['payee_locations'] === undefined)
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfPayeeLocationsResponseData = instanceOfPayeeLocationsResponseData;
27
27
  function PayeeLocationsResponseDataFromJSON(json) {
@@ -29,7 +29,7 @@ function PayeeLocationsResponseDataFromJSON(json) {
29
29
  }
30
30
  exports.PayeeLocationsResponseDataFromJSON = PayeeLocationsResponseDataFromJSON;
31
31
  function PayeeLocationsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
32
+ if (json == null) {
33
33
  return json;
34
34
  }
35
35
  return {
@@ -38,14 +38,11 @@ function PayeeLocationsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  exports.PayeeLocationsResponseDataFromJSONTyped = PayeeLocationsResponseDataFromJSONTyped;
40
40
  function PayeeLocationsResponseDataToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
41
+ if (value == null) {
42
+ return value;
46
43
  }
47
44
  return {
48
- 'payee_locations': (value.payee_locations.map(PayeeLocation_1.PayeeLocationToJSON)),
45
+ 'payee_locations': (value['payee_locations'].map(PayeeLocation_1.PayeeLocationToJSON)),
49
46
  };
50
47
  }
51
48
  exports.PayeeLocationsResponseDataToJSON = PayeeLocationsResponseDataToJSON;
@@ -2,7 +2,7 @@
2
2
  * YNAB API Endpoints
3
3
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ export interface PayeeResponse {
26
26
  /**
27
27
  * Check if a given object implements the PayeeResponse interface.
28
28
  */
29
- export declare function instanceOfPayeeResponse(value: object): boolean;
29
+ export declare function instanceOfPayeeResponse(value: object): value is PayeeResponse;
30
30
  export declare function PayeeResponseFromJSON(json: any): PayeeResponse;
31
31
  export declare function PayeeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeResponse;
32
32
  export declare function PayeeResponseToJSON(value?: PayeeResponse | null): any;
@@ -5,7 +5,7 @@
5
5
  * YNAB API Endpoints
6
6
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0
8
+ * The version of the OpenAPI document: 1.70.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,9 +19,9 @@ const PayeeResponseData_1 = require("./PayeeResponseData");
19
19
  * Check if a given object implements the PayeeResponse interface.
20
20
  */
21
21
  function instanceOfPayeeResponse(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "data" in value;
24
- return isInstance;
22
+ if (!('data' in value) || value['data'] === undefined)
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfPayeeResponse = instanceOfPayeeResponse;
27
27
  function PayeeResponseFromJSON(json) {
@@ -29,7 +29,7 @@ function PayeeResponseFromJSON(json) {
29
29
  }
30
30
  exports.PayeeResponseFromJSON = PayeeResponseFromJSON;
31
31
  function PayeeResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
32
+ if (json == null) {
33
33
  return json;
34
34
  }
35
35
  return {
@@ -38,14 +38,11 @@ function PayeeResponseFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  exports.PayeeResponseFromJSONTyped = PayeeResponseFromJSONTyped;
40
40
  function PayeeResponseToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
41
+ if (value == null) {
42
+ return value;
46
43
  }
47
44
  return {
48
- 'data': (0, PayeeResponseData_1.PayeeResponseDataToJSON)(value.data),
45
+ 'data': (0, PayeeResponseData_1.PayeeResponseDataToJSON)(value['data']),
49
46
  };
50
47
  }
51
48
  exports.PayeeResponseToJSON = PayeeResponseToJSON;
@@ -2,7 +2,7 @@
2
2
  * YNAB API Endpoints
3
3
  * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.70.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ export interface PayeeResponseData {
26
26
  /**
27
27
  * Check if a given object implements the PayeeResponseData interface.
28
28
  */
29
- export declare function instanceOfPayeeResponseData(value: object): boolean;
29
+ export declare function instanceOfPayeeResponseData(value: object): value is PayeeResponseData;
30
30
  export declare function PayeeResponseDataFromJSON(json: any): PayeeResponseData;
31
31
  export declare function PayeeResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeResponseData;
32
32
  export declare function PayeeResponseDataToJSON(value?: PayeeResponseData | null): any;