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.
- package/README.md +2 -0
- package/dist/apis/AccountsApi.d.ts +1 -6
- package/dist/apis/AccountsApi.js +1 -6
- package/dist/apis/BudgetsApi.d.ts +1 -6
- package/dist/apis/BudgetsApi.js +1 -6
- package/dist/apis/CategoriesApi.d.ts +1 -6
- package/dist/apis/CategoriesApi.js +1 -6
- package/dist/apis/MonthsApi.d.ts +1 -6
- package/dist/apis/MonthsApi.js +1 -6
- package/dist/apis/PayeeLocationsApi.d.ts +1 -6
- package/dist/apis/PayeeLocationsApi.js +1 -6
- package/dist/apis/PayeesApi.d.ts +17 -7
- package/dist/apis/PayeesApi.js +43 -6
- package/dist/apis/ScheduledTransactionsApi.d.ts +16 -7
- package/dist/apis/ScheduledTransactionsApi.js +40 -6
- package/dist/apis/TransactionsApi.d.ts +36 -16
- package/dist/apis/TransactionsApi.js +65 -17
- package/dist/apis/UserApi.d.ts +1 -6
- package/dist/apis/UserApi.js +1 -6
- package/dist/browser/ynab.js +1 -1
- package/dist/models/Account.d.ts +2 -7
- package/dist/models/Account.js +51 -51
- package/dist/models/AccountResponse.d.ts +2 -7
- package/dist/models/AccountResponse.js +8 -16
- package/dist/models/AccountResponseData.d.ts +2 -7
- package/dist/models/AccountResponseData.js +8 -16
- package/dist/models/AccountType.d.ts +2 -6
- package/dist/models/AccountType.js +13 -7
- package/dist/models/AccountsResponse.d.ts +2 -7
- package/dist/models/AccountsResponse.js +8 -16
- package/dist/models/AccountsResponseData.d.ts +2 -7
- package/dist/models/AccountsResponseData.js +11 -18
- package/dist/models/BudgetDetail.d.ts +6 -11
- package/dist/models/BudgetDetail.js +45 -53
- package/dist/models/BudgetDetailResponse.d.ts +2 -7
- package/dist/models/BudgetDetailResponse.js +8 -16
- package/dist/models/BudgetDetailResponseData.d.ts +2 -7
- package/dist/models/BudgetDetailResponseData.js +11 -18
- package/dist/models/BudgetSettings.d.ts +2 -7
- package/dist/models/BudgetSettings.js +11 -18
- package/dist/models/BudgetSettingsResponse.d.ts +2 -7
- package/dist/models/BudgetSettingsResponse.js +8 -16
- package/dist/models/BudgetSettingsResponseData.d.ts +2 -7
- package/dist/models/BudgetSettingsResponseData.js +8 -16
- package/dist/models/BudgetSummary.d.ts +2 -7
- package/dist/models/BudgetSummary.js +23 -31
- package/dist/models/BudgetSummaryResponse.d.ts +2 -7
- package/dist/models/BudgetSummaryResponse.js +8 -16
- package/dist/models/BudgetSummaryResponseData.d.ts +2 -7
- package/dist/models/BudgetSummaryResponseData.js +10 -19
- package/dist/models/BulkResponse.d.ts +2 -7
- package/dist/models/BulkResponse.js +8 -16
- package/dist/models/BulkResponseData.d.ts +2 -7
- package/dist/models/BulkResponseData.js +8 -16
- package/dist/models/BulkResponseDataBulk.d.ts +2 -7
- package/dist/models/BulkResponseDataBulk.js +11 -18
- package/dist/models/BulkTransactions.d.ts +5 -10
- package/dist/models/BulkTransactions.js +10 -18
- package/dist/models/CategoriesResponse.d.ts +2 -7
- package/dist/models/CategoriesResponse.js +8 -16
- package/dist/models/CategoriesResponseData.d.ts +2 -7
- package/dist/models/CategoriesResponseData.js +11 -18
- package/dist/models/Category.d.ts +9 -8
- package/dist/models/Category.js +61 -61
- package/dist/models/CategoryGroup.d.ts +2 -7
- package/dist/models/CategoryGroup.js +17 -22
- package/dist/models/CategoryGroupWithCategories.d.ts +2 -7
- package/dist/models/CategoryGroupWithCategories.js +20 -24
- package/dist/models/CategoryResponse.d.ts +2 -7
- package/dist/models/CategoryResponse.js +8 -16
- package/dist/models/CategoryResponseData.d.ts +2 -7
- package/dist/models/CategoryResponseData.js +8 -16
- package/dist/models/CurrencyFormat.d.ts +2 -7
- package/dist/models/CurrencyFormat.js +29 -30
- package/dist/models/DateFormat.d.ts +2 -7
- package/dist/models/DateFormat.js +8 -16
- package/dist/models/ErrorDetail.d.ts +2 -7
- package/dist/models/ErrorDetail.js +14 -20
- package/dist/models/ErrorResponse.d.ts +2 -7
- package/dist/models/ErrorResponse.js +8 -16
- package/dist/models/ExistingTransaction.d.ts +89 -0
- package/dist/models/ExistingTransaction.js +63 -0
- package/dist/models/HybridTransaction.d.ts +10 -9
- package/dist/models/HybridTransaction.js +63 -62
- package/dist/models/HybridTransactionsResponse.d.ts +2 -7
- package/dist/models/HybridTransactionsResponse.js +8 -16
- package/dist/models/HybridTransactionsResponseData.d.ts +2 -7
- package/dist/models/HybridTransactionsResponseData.js +10 -19
- package/dist/models/MonthDetail.d.ts +2 -7
- package/dist/models/MonthDetail.js +30 -33
- package/dist/models/MonthDetailResponse.d.ts +2 -7
- package/dist/models/MonthDetailResponse.js +8 -16
- package/dist/models/MonthDetailResponseData.d.ts +2 -7
- package/dist/models/MonthDetailResponseData.js +8 -16
- package/dist/models/MonthSummariesResponse.d.ts +2 -7
- package/dist/models/MonthSummariesResponse.js +8 -16
- package/dist/models/MonthSummariesResponseData.d.ts +2 -7
- package/dist/models/MonthSummariesResponseData.js +11 -18
- package/dist/models/MonthSummary.d.ts +2 -7
- package/dist/models/MonthSummary.js +27 -31
- package/dist/models/NewTransaction.d.ts +95 -0
- package/dist/models/NewTransaction.js +65 -0
- package/dist/models/PatchCategoryWrapper.d.ts +2 -7
- package/dist/models/PatchCategoryWrapper.js +8 -16
- package/dist/models/PatchMonthCategoryWrapper.d.ts +2 -7
- package/dist/models/PatchMonthCategoryWrapper.js +8 -16
- package/dist/models/PatchPayeeWrapper.d.ts +27 -0
- package/dist/models/PatchPayeeWrapper.js +43 -0
- package/dist/models/PatchTransactionsWrapper.d.ts +5 -10
- package/dist/models/PatchTransactionsWrapper.js +10 -18
- package/dist/models/Payee.d.ts +2 -7
- package/dist/models/Payee.js +16 -23
- package/dist/models/PayeeLocation.d.ts +2 -7
- package/dist/models/PayeeLocation.js +20 -24
- package/dist/models/PayeeLocationResponse.d.ts +2 -7
- package/dist/models/PayeeLocationResponse.js +8 -16
- package/dist/models/PayeeLocationResponseData.d.ts +2 -7
- package/dist/models/PayeeLocationResponseData.js +8 -16
- package/dist/models/PayeeLocationsResponse.d.ts +2 -7
- package/dist/models/PayeeLocationsResponse.js +8 -16
- package/dist/models/PayeeLocationsResponseData.d.ts +2 -7
- package/dist/models/PayeeLocationsResponseData.js +8 -16
- package/dist/models/PayeeResponse.d.ts +2 -7
- package/dist/models/PayeeResponse.js +8 -16
- package/dist/models/PayeeResponseData.d.ts +2 -7
- package/dist/models/PayeeResponseData.js +8 -16
- package/dist/models/PayeesResponse.d.ts +2 -7
- package/dist/models/PayeesResponse.js +8 -16
- package/dist/models/PayeesResponseData.d.ts +2 -7
- package/dist/models/PayeesResponseData.js +11 -18
- package/dist/models/PostAccountWrapper.d.ts +2 -7
- package/dist/models/PostAccountWrapper.js +8 -16
- package/dist/models/PostScheduledTransactionWrapper.d.ts +27 -0
- package/dist/models/PostScheduledTransactionWrapper.js +43 -0
- package/dist/models/PostTransactionsWrapper.d.ts +7 -12
- package/dist/models/PostTransactionsWrapper.js +10 -20
- package/dist/models/PutTransactionWrapper.d.ts +5 -10
- package/dist/models/PutTransactionWrapper.js +10 -18
- package/dist/models/SaveAccount.d.ts +2 -7
- package/dist/models/SaveAccount.js +14 -20
- package/dist/models/SaveCategory.d.ts +2 -7
- package/dist/models/SaveCategory.js +11 -21
- package/dist/models/SaveCategoryResponse.d.ts +2 -7
- package/dist/models/SaveCategoryResponse.js +8 -16
- package/dist/models/SaveCategoryResponseData.d.ts +2 -7
- package/dist/models/SaveCategoryResponseData.js +11 -18
- package/dist/models/SaveMonthCategory.d.ts +2 -7
- package/dist/models/SaveMonthCategory.js +8 -16
- package/dist/models/SavePayee.d.ts +26 -0
- package/dist/models/SavePayee.js +40 -0
- package/dist/models/SavePayeeResponse.d.ts +27 -0
- package/dist/models/SavePayeeResponse.js +43 -0
- package/dist/models/SavePayeeResponseData.d.ts +33 -0
- package/dist/models/SavePayeeResponseData.js +47 -0
- package/dist/models/SaveScheduledTransaction.d.ts +76 -0
- package/dist/models/SaveScheduledTransaction.js +62 -0
- package/dist/models/SaveSubTransaction.d.ts +2 -7
- package/dist/models/SaveSubTransaction.js +16 -25
- package/dist/models/SaveTransactionWithIdOrImportId.d.ts +101 -0
- package/dist/models/SaveTransactionWithIdOrImportId.js +67 -0
- package/dist/models/SaveTransactionWithOptionalFields.d.ts +5 -16
- package/dist/models/SaveTransactionWithOptionalFields.js +29 -41
- package/dist/models/SaveTransactionsResponse.d.ts +2 -7
- package/dist/models/SaveTransactionsResponse.js +8 -16
- package/dist/models/SaveTransactionsResponseData.d.ts +2 -7
- package/dist/models/SaveTransactionsResponseData.js +17 -25
- package/dist/models/ScheduledSubTransaction.d.ts +2 -7
- package/dist/models/ScheduledSubTransaction.js +25 -31
- package/dist/models/ScheduledTransactionDetail.d.ts +9 -8
- package/dist/models/ScheduledTransactionDetail.js +49 -48
- package/dist/models/ScheduledTransactionFrequency.d.ts +30 -0
- package/dist/models/ScheduledTransactionFrequency.js +53 -0
- package/dist/models/ScheduledTransactionResponse.d.ts +2 -7
- package/dist/models/ScheduledTransactionResponse.js +8 -16
- package/dist/models/ScheduledTransactionResponseData.d.ts +2 -7
- package/dist/models/ScheduledTransactionResponseData.js +8 -16
- package/dist/models/ScheduledTransactionSummary.d.ts +8 -7
- package/dist/models/ScheduledTransactionSummary.js +38 -39
- package/dist/models/ScheduledTransactionsResponse.d.ts +2 -7
- package/dist/models/ScheduledTransactionsResponse.js +8 -16
- package/dist/models/ScheduledTransactionsResponseData.d.ts +2 -7
- package/dist/models/ScheduledTransactionsResponseData.js +11 -18
- package/dist/models/SubTransaction.d.ts +2 -7
- package/dist/models/SubTransaction.js +31 -37
- package/dist/models/TransactionClearedStatus.d.ts +2 -6
- package/dist/models/TransactionClearedStatus.js +13 -7
- package/dist/models/TransactionDetail.d.ts +11 -10
- package/dist/models/TransactionDetail.js +62 -61
- package/dist/models/TransactionFlagColor.d.ts +2 -6
- package/dist/models/TransactionFlagColor.js +13 -7
- package/dist/models/TransactionResponse.d.ts +2 -7
- package/dist/models/TransactionResponse.js +8 -16
- package/dist/models/TransactionResponseData.d.ts +2 -7
- package/dist/models/TransactionResponseData.js +8 -16
- package/dist/models/TransactionSummary.d.ts +10 -9
- package/dist/models/TransactionSummary.js +51 -52
- package/dist/models/TransactionsImportResponse.d.ts +2 -7
- package/dist/models/TransactionsImportResponse.js +8 -16
- package/dist/models/TransactionsImportResponseData.d.ts +2 -7
- package/dist/models/TransactionsImportResponseData.js +8 -16
- package/dist/models/TransactionsResponse.d.ts +2 -7
- package/dist/models/TransactionsResponse.js +8 -16
- package/dist/models/TransactionsResponseData.d.ts +2 -7
- package/dist/models/TransactionsResponseData.js +11 -18
- package/dist/models/User.d.ts +2 -7
- package/dist/models/User.js +8 -16
- package/dist/models/UserResponse.d.ts +2 -7
- package/dist/models/UserResponse.js +8 -16
- package/dist/models/UserResponseData.d.ts +2 -7
- package/dist/models/UserResponseData.js +8 -16
- package/dist/models/index.d.ts +10 -9
- package/dist/models/index.js +10 -9
- package/dist/runtime.d.ts +1 -6
- package/dist/runtime.js +1 -6
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
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.PatchPayeeWrapperToJSON = exports.PatchPayeeWrapperFromJSONTyped = exports.PatchPayeeWrapperFromJSON = exports.instanceOfPatchPayeeWrapper = void 0;
|
|
12
|
+
const SavePayee_1 = require("./SavePayee");
|
|
13
|
+
/**
|
|
14
|
+
* Check if a given object implements the PatchPayeeWrapper interface.
|
|
15
|
+
*/
|
|
16
|
+
function instanceOfPatchPayeeWrapper(value) {
|
|
17
|
+
if (!('payee' in value) || value['payee'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
exports.instanceOfPatchPayeeWrapper = instanceOfPatchPayeeWrapper;
|
|
22
|
+
function PatchPayeeWrapperFromJSON(json) {
|
|
23
|
+
return PatchPayeeWrapperFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
exports.PatchPayeeWrapperFromJSON = PatchPayeeWrapperFromJSON;
|
|
26
|
+
function PatchPayeeWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'payee': (0, SavePayee_1.SavePayeeFromJSON)(json['payee']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
exports.PatchPayeeWrapperFromJSONTyped = PatchPayeeWrapperFromJSONTyped;
|
|
35
|
+
function PatchPayeeWrapperToJSON(value) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'payee': (0, SavePayee_1.SavePayeeToJSON)(value['payee']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.PatchPayeeWrapperToJSON = PatchPayeeWrapperToJSON;
|
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
* YNAB API Endpoints
|
|
3
3
|
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
4
|
*
|
|
5
|
-
*
|
|
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 {
|
|
7
|
+
import type { SaveTransactionWithIdOrImportId } from './SaveTransactionWithIdOrImportId';
|
|
13
8
|
/**
|
|
14
9
|
*
|
|
15
10
|
* @export
|
|
@@ -18,15 +13,15 @@ import type { SaveTransactionWithId } from './SaveTransactionWithId';
|
|
|
18
13
|
export interface PatchTransactionsWrapper {
|
|
19
14
|
/**
|
|
20
15
|
*
|
|
21
|
-
* @type {Array<
|
|
16
|
+
* @type {Array<SaveTransactionWithIdOrImportId>}
|
|
22
17
|
* @memberof PatchTransactionsWrapper
|
|
23
18
|
*/
|
|
24
|
-
transactions: Array<
|
|
19
|
+
transactions: Array<SaveTransactionWithIdOrImportId>;
|
|
25
20
|
}
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the PatchTransactionsWrapper interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfPatchTransactionsWrapper(value: object):
|
|
24
|
+
export declare function instanceOfPatchTransactionsWrapper(value: object): value is PatchTransactionsWrapper;
|
|
30
25
|
export declare function PatchTransactionsWrapperFromJSON(json: any): PatchTransactionsWrapper;
|
|
31
26
|
export declare function PatchTransactionsWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchTransactionsWrapper;
|
|
32
27
|
export declare function PatchTransactionsWrapperToJSON(value?: PatchTransactionsWrapper | null): any;
|
|
@@ -5,23 +5,18 @@
|
|
|
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
|
-
*
|
|
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.PatchTransactionsWrapperToJSON = exports.PatchTransactionsWrapperFromJSONTyped = exports.PatchTransactionsWrapperFromJSON = exports.instanceOfPatchTransactionsWrapper = void 0;
|
|
17
|
-
const
|
|
12
|
+
const SaveTransactionWithIdOrImportId_1 = require("./SaveTransactionWithIdOrImportId");
|
|
18
13
|
/**
|
|
19
14
|
* Check if a given object implements the PatchTransactionsWrapper interface.
|
|
20
15
|
*/
|
|
21
16
|
function instanceOfPatchTransactionsWrapper(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
17
|
+
if (!('transactions' in value) || value['transactions'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
25
20
|
}
|
|
26
21
|
exports.instanceOfPatchTransactionsWrapper = instanceOfPatchTransactionsWrapper;
|
|
27
22
|
function PatchTransactionsWrapperFromJSON(json) {
|
|
@@ -29,23 +24,20 @@ function PatchTransactionsWrapperFromJSON(json) {
|
|
|
29
24
|
}
|
|
30
25
|
exports.PatchTransactionsWrapperFromJSON = PatchTransactionsWrapperFromJSON;
|
|
31
26
|
function PatchTransactionsWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
27
|
+
if (json == null) {
|
|
33
28
|
return json;
|
|
34
29
|
}
|
|
35
30
|
return {
|
|
36
|
-
'transactions': (json['transactions'].map(
|
|
31
|
+
'transactions': (json['transactions'].map(SaveTransactionWithIdOrImportId_1.SaveTransactionWithIdOrImportIdFromJSON)),
|
|
37
32
|
};
|
|
38
33
|
}
|
|
39
34
|
exports.PatchTransactionsWrapperFromJSONTyped = PatchTransactionsWrapperFromJSONTyped;
|
|
40
35
|
function PatchTransactionsWrapperToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
46
38
|
}
|
|
47
39
|
return {
|
|
48
|
-
'transactions': (value
|
|
40
|
+
'transactions': (value['transactions'].map(SaveTransactionWithIdOrImportId_1.SaveTransactionWithIdOrImportIdToJSON)),
|
|
49
41
|
};
|
|
50
42
|
}
|
|
51
43
|
exports.PatchTransactionsWrapperToJSON = PatchTransactionsWrapperToJSON;
|
package/dist/models/Payee.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
*
|
|
@@ -43,7 +38,7 @@ export interface Payee {
|
|
|
43
38
|
/**
|
|
44
39
|
* Check if a given object implements the Payee interface.
|
|
45
40
|
*/
|
|
46
|
-
export declare function instanceOfPayee(value: object):
|
|
41
|
+
export declare function instanceOfPayee(value: object): value is Payee;
|
|
47
42
|
export declare function PayeeFromJSON(json: any): Payee;
|
|
48
43
|
export declare function PayeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Payee;
|
|
49
44
|
export declare function PayeeToJSON(value?: Payee | null): any;
|
package/dist/models/Payee.js
CHANGED
|
@@ -5,25 +5,21 @@
|
|
|
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
|
-
*
|
|
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.PayeeToJSON = exports.PayeeFromJSONTyped = exports.PayeeFromJSON = exports.instanceOfPayee = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
12
|
/**
|
|
19
13
|
* Check if a given object implements the Payee interface.
|
|
20
14
|
*/
|
|
21
15
|
function instanceOfPayee(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
17
|
+
return false;
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
27
23
|
}
|
|
28
24
|
exports.instanceOfPayee = instanceOfPayee;
|
|
29
25
|
function PayeeFromJSON(json) {
|
|
@@ -31,29 +27,26 @@ function PayeeFromJSON(json) {
|
|
|
31
27
|
}
|
|
32
28
|
exports.PayeeFromJSON = PayeeFromJSON;
|
|
33
29
|
function PayeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (
|
|
30
|
+
if (json == null) {
|
|
35
31
|
return json;
|
|
36
32
|
}
|
|
37
33
|
return {
|
|
38
34
|
'id': json['id'],
|
|
39
35
|
'name': json['name'],
|
|
40
|
-
'transfer_account_id':
|
|
36
|
+
'transfer_account_id': json['transfer_account_id'] == null ? undefined : json['transfer_account_id'],
|
|
41
37
|
'deleted': json['deleted'],
|
|
42
38
|
};
|
|
43
39
|
}
|
|
44
40
|
exports.PayeeFromJSONTyped = PayeeFromJSONTyped;
|
|
45
41
|
function PayeeToJSON(value) {
|
|
46
|
-
if (value
|
|
47
|
-
return
|
|
48
|
-
}
|
|
49
|
-
if (value === null) {
|
|
50
|
-
return null;
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
51
44
|
}
|
|
52
45
|
return {
|
|
53
|
-
'id': value
|
|
54
|
-
'name': value
|
|
55
|
-
'transfer_account_id': value
|
|
56
|
-
'deleted': value
|
|
46
|
+
'id': value['id'],
|
|
47
|
+
'name': value['name'],
|
|
48
|
+
'transfer_account_id': value['transfer_account_id'],
|
|
49
|
+
'deleted': value['deleted'],
|
|
57
50
|
};
|
|
58
51
|
}
|
|
59
52
|
exports.PayeeToJSON = PayeeToJSON;
|
|
@@ -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
|
-
*
|
|
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
|
*
|
|
@@ -49,7 +44,7 @@ export interface PayeeLocation {
|
|
|
49
44
|
/**
|
|
50
45
|
* Check if a given object implements the PayeeLocation interface.
|
|
51
46
|
*/
|
|
52
|
-
export declare function instanceOfPayeeLocation(value: object):
|
|
47
|
+
export declare function instanceOfPayeeLocation(value: object): value is PayeeLocation;
|
|
53
48
|
export declare function PayeeLocationFromJSON(json: any): PayeeLocation;
|
|
54
49
|
export declare function PayeeLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocation;
|
|
55
50
|
export declare function PayeeLocationToJSON(value?: PayeeLocation | 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
|
-
*
|
|
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.PayeeLocationToJSON = exports.PayeeLocationFromJSONTyped = exports.PayeeLocationFromJSON = exports.instanceOfPayeeLocation = void 0;
|
|
@@ -18,13 +13,17 @@ exports.PayeeLocationToJSON = exports.PayeeLocationFromJSONTyped = exports.Payee
|
|
|
18
13
|
* Check if a given object implements the PayeeLocation interface.
|
|
19
14
|
*/
|
|
20
15
|
function instanceOfPayeeLocation(value) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
17
|
+
return false;
|
|
18
|
+
if (!('payee_id' in value) || value['payee_id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
28
27
|
}
|
|
29
28
|
exports.instanceOfPayeeLocation = instanceOfPayeeLocation;
|
|
30
29
|
function PayeeLocationFromJSON(json) {
|
|
@@ -32,7 +31,7 @@ function PayeeLocationFromJSON(json) {
|
|
|
32
31
|
}
|
|
33
32
|
exports.PayeeLocationFromJSON = PayeeLocationFromJSON;
|
|
34
33
|
function PayeeLocationFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (
|
|
34
|
+
if (json == null) {
|
|
36
35
|
return json;
|
|
37
36
|
}
|
|
38
37
|
return {
|
|
@@ -45,18 +44,15 @@ function PayeeLocationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
44
|
}
|
|
46
45
|
exports.PayeeLocationFromJSONTyped = PayeeLocationFromJSONTyped;
|
|
47
46
|
function PayeeLocationToJSON(value) {
|
|
48
|
-
if (value
|
|
49
|
-
return
|
|
50
|
-
}
|
|
51
|
-
if (value === null) {
|
|
52
|
-
return null;
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
53
49
|
}
|
|
54
50
|
return {
|
|
55
|
-
'id': value
|
|
56
|
-
'payee_id': value
|
|
57
|
-
'latitude': value
|
|
58
|
-
'longitude': value
|
|
59
|
-
'deleted': value
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'payee_id': value['payee_id'],
|
|
53
|
+
'latitude': value['latitude'],
|
|
54
|
+
'longitude': value['longitude'],
|
|
55
|
+
'deleted': value['deleted'],
|
|
60
56
|
};
|
|
61
57
|
}
|
|
62
58
|
exports.PayeeLocationToJSON = PayeeLocationToJSON;
|
|
@@ -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
|
-
*
|
|
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 { PayeeLocationResponseData } from './PayeeLocationResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface PayeeLocationResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the PayeeLocationResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfPayeeLocationResponse(value: object):
|
|
24
|
+
export declare function instanceOfPayeeLocationResponse(value: object): value is PayeeLocationResponse;
|
|
30
25
|
export declare function PayeeLocationResponseFromJSON(json: any): PayeeLocationResponse;
|
|
31
26
|
export declare function PayeeLocationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocationResponse;
|
|
32
27
|
export declare function PayeeLocationResponseToJSON(value?: PayeeLocationResponse | 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
|
-
*
|
|
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.PayeeLocationResponseToJSON = exports.PayeeLocationResponseFromJSONTyped = exports.PayeeLocationResponseFromJSON = exports.instanceOfPayeeLocationResponse = void 0;
|
|
@@ -19,9 +14,9 @@ const PayeeLocationResponseData_1 = require("./PayeeLocationResponseData");
|
|
|
19
14
|
* Check if a given object implements the PayeeLocationResponse interface.
|
|
20
15
|
*/
|
|
21
16
|
function instanceOfPayeeLocationResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
17
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
25
20
|
}
|
|
26
21
|
exports.instanceOfPayeeLocationResponse = instanceOfPayeeLocationResponse;
|
|
27
22
|
function PayeeLocationResponseFromJSON(json) {
|
|
@@ -29,7 +24,7 @@ function PayeeLocationResponseFromJSON(json) {
|
|
|
29
24
|
}
|
|
30
25
|
exports.PayeeLocationResponseFromJSON = PayeeLocationResponseFromJSON;
|
|
31
26
|
function PayeeLocationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
27
|
+
if (json == null) {
|
|
33
28
|
return json;
|
|
34
29
|
}
|
|
35
30
|
return {
|
|
@@ -38,14 +33,11 @@ function PayeeLocationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
33
|
}
|
|
39
34
|
exports.PayeeLocationResponseFromJSONTyped = PayeeLocationResponseFromJSONTyped;
|
|
40
35
|
function PayeeLocationResponseToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
46
38
|
}
|
|
47
39
|
return {
|
|
48
|
-
'data': (0, PayeeLocationResponseData_1.PayeeLocationResponseDataToJSON)(value
|
|
40
|
+
'data': (0, PayeeLocationResponseData_1.PayeeLocationResponseDataToJSON)(value['data']),
|
|
49
41
|
};
|
|
50
42
|
}
|
|
51
43
|
exports.PayeeLocationResponseToJSON = PayeeLocationResponseToJSON;
|
|
@@ -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
|
-
*
|
|
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 { PayeeLocation } from './PayeeLocation';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface PayeeLocationResponseData {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the PayeeLocationResponseData interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfPayeeLocationResponseData(value: object):
|
|
24
|
+
export declare function instanceOfPayeeLocationResponseData(value: object): value is PayeeLocationResponseData;
|
|
30
25
|
export declare function PayeeLocationResponseDataFromJSON(json: any): PayeeLocationResponseData;
|
|
31
26
|
export declare function PayeeLocationResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocationResponseData;
|
|
32
27
|
export declare function PayeeLocationResponseDataToJSON(value?: PayeeLocationResponseData | 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
|
-
*
|
|
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.PayeeLocationResponseDataToJSON = exports.PayeeLocationResponseDataFromJSONTyped = exports.PayeeLocationResponseDataFromJSON = exports.instanceOfPayeeLocationResponseData = void 0;
|
|
@@ -19,9 +14,9 @@ const PayeeLocation_1 = require("./PayeeLocation");
|
|
|
19
14
|
* Check if a given object implements the PayeeLocationResponseData interface.
|
|
20
15
|
*/
|
|
21
16
|
function instanceOfPayeeLocationResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
17
|
+
if (!('payee_location' in value) || value['payee_location'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
25
20
|
}
|
|
26
21
|
exports.instanceOfPayeeLocationResponseData = instanceOfPayeeLocationResponseData;
|
|
27
22
|
function PayeeLocationResponseDataFromJSON(json) {
|
|
@@ -29,7 +24,7 @@ function PayeeLocationResponseDataFromJSON(json) {
|
|
|
29
24
|
}
|
|
30
25
|
exports.PayeeLocationResponseDataFromJSON = PayeeLocationResponseDataFromJSON;
|
|
31
26
|
function PayeeLocationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
27
|
+
if (json == null) {
|
|
33
28
|
return json;
|
|
34
29
|
}
|
|
35
30
|
return {
|
|
@@ -38,14 +33,11 @@ function PayeeLocationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
33
|
}
|
|
39
34
|
exports.PayeeLocationResponseDataFromJSONTyped = PayeeLocationResponseDataFromJSONTyped;
|
|
40
35
|
function PayeeLocationResponseDataToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
46
38
|
}
|
|
47
39
|
return {
|
|
48
|
-
'payee_location': (0, PayeeLocation_1.PayeeLocationToJSON)(value
|
|
40
|
+
'payee_location': (0, PayeeLocation_1.PayeeLocationToJSON)(value['payee_location']),
|
|
49
41
|
};
|
|
50
42
|
}
|
|
51
43
|
exports.PayeeLocationResponseDataToJSON = PayeeLocationResponseDataToJSON;
|
|
@@ -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
|
-
*
|
|
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 { PayeeLocationsResponseData } from './PayeeLocationsResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface PayeeLocationsResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the PayeeLocationsResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfPayeeLocationsResponse(value: object):
|
|
24
|
+
export declare function instanceOfPayeeLocationsResponse(value: object): value is PayeeLocationsResponse;
|
|
30
25
|
export declare function PayeeLocationsResponseFromJSON(json: any): PayeeLocationsResponse;
|
|
31
26
|
export declare function PayeeLocationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocationsResponse;
|
|
32
27
|
export declare function PayeeLocationsResponseToJSON(value?: PayeeLocationsResponse | 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
|
-
*
|
|
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.PayeeLocationsResponseToJSON = exports.PayeeLocationsResponseFromJSONTyped = exports.PayeeLocationsResponseFromJSON = exports.instanceOfPayeeLocationsResponse = void 0;
|
|
@@ -19,9 +14,9 @@ const PayeeLocationsResponseData_1 = require("./PayeeLocationsResponseData");
|
|
|
19
14
|
* Check if a given object implements the PayeeLocationsResponse interface.
|
|
20
15
|
*/
|
|
21
16
|
function instanceOfPayeeLocationsResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
17
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
25
20
|
}
|
|
26
21
|
exports.instanceOfPayeeLocationsResponse = instanceOfPayeeLocationsResponse;
|
|
27
22
|
function PayeeLocationsResponseFromJSON(json) {
|
|
@@ -29,7 +24,7 @@ function PayeeLocationsResponseFromJSON(json) {
|
|
|
29
24
|
}
|
|
30
25
|
exports.PayeeLocationsResponseFromJSON = PayeeLocationsResponseFromJSON;
|
|
31
26
|
function PayeeLocationsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
27
|
+
if (json == null) {
|
|
33
28
|
return json;
|
|
34
29
|
}
|
|
35
30
|
return {
|
|
@@ -38,14 +33,11 @@ function PayeeLocationsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
33
|
}
|
|
39
34
|
exports.PayeeLocationsResponseFromJSONTyped = PayeeLocationsResponseFromJSONTyped;
|
|
40
35
|
function PayeeLocationsResponseToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
46
38
|
}
|
|
47
39
|
return {
|
|
48
|
-
'data': (0, PayeeLocationsResponseData_1.PayeeLocationsResponseDataToJSON)(value
|
|
40
|
+
'data': (0, PayeeLocationsResponseData_1.PayeeLocationsResponseDataToJSON)(value['data']),
|
|
49
41
|
};
|
|
50
42
|
}
|
|
51
43
|
exports.PayeeLocationsResponseToJSON = PayeeLocationsResponseToJSON;
|
|
@@ -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
|
-
*
|
|
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 { PayeeLocation } from './PayeeLocation';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface PayeeLocationsResponseData {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the PayeeLocationsResponseData interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfPayeeLocationsResponseData(value: object):
|
|
24
|
+
export declare function instanceOfPayeeLocationsResponseData(value: object): value is PayeeLocationsResponseData;
|
|
30
25
|
export declare function PayeeLocationsResponseDataFromJSON(json: any): PayeeLocationsResponseData;
|
|
31
26
|
export declare function PayeeLocationsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeLocationsResponseData;
|
|
32
27
|
export declare function PayeeLocationsResponseDataToJSON(value?: PayeeLocationsResponseData | 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
|
-
*
|
|
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.PayeeLocationsResponseDataToJSON = exports.PayeeLocationsResponseDataFromJSONTyped = exports.PayeeLocationsResponseDataFromJSON = exports.instanceOfPayeeLocationsResponseData = void 0;
|
|
@@ -19,9 +14,9 @@ const PayeeLocation_1 = require("./PayeeLocation");
|
|
|
19
14
|
* Check if a given object implements the PayeeLocationsResponseData interface.
|
|
20
15
|
*/
|
|
21
16
|
function instanceOfPayeeLocationsResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
17
|
+
if (!('payee_locations' in value) || value['payee_locations'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
25
20
|
}
|
|
26
21
|
exports.instanceOfPayeeLocationsResponseData = instanceOfPayeeLocationsResponseData;
|
|
27
22
|
function PayeeLocationsResponseDataFromJSON(json) {
|
|
@@ -29,7 +24,7 @@ function PayeeLocationsResponseDataFromJSON(json) {
|
|
|
29
24
|
}
|
|
30
25
|
exports.PayeeLocationsResponseDataFromJSON = PayeeLocationsResponseDataFromJSON;
|
|
31
26
|
function PayeeLocationsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
27
|
+
if (json == null) {
|
|
33
28
|
return json;
|
|
34
29
|
}
|
|
35
30
|
return {
|
|
@@ -38,14 +33,11 @@ function PayeeLocationsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
33
|
}
|
|
39
34
|
exports.PayeeLocationsResponseDataFromJSONTyped = PayeeLocationsResponseDataFromJSONTyped;
|
|
40
35
|
function PayeeLocationsResponseDataToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
46
38
|
}
|
|
47
39
|
return {
|
|
48
|
-
'payee_locations': (value
|
|
40
|
+
'payee_locations': (value['payee_locations'].map(PayeeLocation_1.PayeeLocationToJSON)),
|
|
49
41
|
};
|
|
50
42
|
}
|
|
51
43
|
exports.PayeeLocationsResponseDataToJSON = PayeeLocationsResponseDataToJSON;
|