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
|
@@ -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.PutTransactionWrapperToJSON = exports.PutTransactionWrapperFromJSONTyped = exports.PutTransactionWrapperFromJSON = exports.instanceOfPutTransactionWrapper = void 0;
|
|
17
|
-
const
|
|
12
|
+
const ExistingTransaction_1 = require("./ExistingTransaction");
|
|
18
13
|
/**
|
|
19
14
|
* Check if a given object implements the PutTransactionWrapper interface.
|
|
20
15
|
*/
|
|
21
16
|
function instanceOfPutTransactionWrapper(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
17
|
+
if (!('transaction' in value) || value['transaction'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
25
20
|
}
|
|
26
21
|
exports.instanceOfPutTransactionWrapper = instanceOfPutTransactionWrapper;
|
|
27
22
|
function PutTransactionWrapperFromJSON(json) {
|
|
@@ -29,23 +24,20 @@ function PutTransactionWrapperFromJSON(json) {
|
|
|
29
24
|
}
|
|
30
25
|
exports.PutTransactionWrapperFromJSON = PutTransactionWrapperFromJSON;
|
|
31
26
|
function PutTransactionWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
27
|
+
if (json == null) {
|
|
33
28
|
return json;
|
|
34
29
|
}
|
|
35
30
|
return {
|
|
36
|
-
'transaction': (0,
|
|
31
|
+
'transaction': (0, ExistingTransaction_1.ExistingTransactionFromJSON)(json['transaction']),
|
|
37
32
|
};
|
|
38
33
|
}
|
|
39
34
|
exports.PutTransactionWrapperFromJSONTyped = PutTransactionWrapperFromJSONTyped;
|
|
40
35
|
function PutTransactionWrapperToJSON(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
|
-
'transaction': (0,
|
|
40
|
+
'transaction': (0, ExistingTransaction_1.ExistingTransactionToJSON)(value['transaction']),
|
|
49
41
|
};
|
|
50
42
|
}
|
|
51
43
|
exports.PutTransactionWrapperToJSON = PutTransactionWrapperToJSON;
|
|
@@ -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 { AccountType } from './AccountType';
|
|
13
8
|
/**
|
|
@@ -38,7 +33,7 @@ export interface SaveAccount {
|
|
|
38
33
|
/**
|
|
39
34
|
* Check if a given object implements the SaveAccount interface.
|
|
40
35
|
*/
|
|
41
|
-
export declare function instanceOfSaveAccount(value: object):
|
|
36
|
+
export declare function instanceOfSaveAccount(value: object): value is SaveAccount;
|
|
42
37
|
export declare function SaveAccountFromJSON(json: any): SaveAccount;
|
|
43
38
|
export declare function SaveAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveAccount;
|
|
44
39
|
export declare function SaveAccountToJSON(value?: SaveAccount | 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.SaveAccountToJSON = exports.SaveAccountFromJSONTyped = exports.SaveAccountFromJSON = exports.instanceOfSaveAccount = void 0;
|
|
@@ -19,11 +14,13 @@ const AccountType_1 = require("./AccountType");
|
|
|
19
14
|
* Check if a given object implements the SaveAccount interface.
|
|
20
15
|
*/
|
|
21
16
|
function instanceOfSaveAccount(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('balance' in value) || value['balance'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
27
24
|
}
|
|
28
25
|
exports.instanceOfSaveAccount = instanceOfSaveAccount;
|
|
29
26
|
function SaveAccountFromJSON(json) {
|
|
@@ -31,7 +28,7 @@ function SaveAccountFromJSON(json) {
|
|
|
31
28
|
}
|
|
32
29
|
exports.SaveAccountFromJSON = SaveAccountFromJSON;
|
|
33
30
|
function SaveAccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (
|
|
31
|
+
if (json == null) {
|
|
35
32
|
return json;
|
|
36
33
|
}
|
|
37
34
|
return {
|
|
@@ -42,16 +39,13 @@ function SaveAccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
39
|
}
|
|
43
40
|
exports.SaveAccountFromJSONTyped = SaveAccountFromJSONTyped;
|
|
44
41
|
function SaveAccountToJSON(value) {
|
|
45
|
-
if (value
|
|
46
|
-
return
|
|
47
|
-
}
|
|
48
|
-
if (value === null) {
|
|
49
|
-
return null;
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
50
44
|
}
|
|
51
45
|
return {
|
|
52
|
-
'name': value
|
|
53
|
-
'type': (0, AccountType_1.AccountTypeToJSON)(value
|
|
54
|
-
'balance': value
|
|
46
|
+
'name': value['name'],
|
|
47
|
+
'type': (0, AccountType_1.AccountTypeToJSON)(value['type']),
|
|
48
|
+
'balance': value['balance'],
|
|
55
49
|
};
|
|
56
50
|
}
|
|
57
51
|
exports.SaveAccountToJSON = SaveAccountToJSON;
|
|
@@ -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
|
*
|
|
@@ -37,7 +32,7 @@ export interface SaveCategory {
|
|
|
37
32
|
/**
|
|
38
33
|
* Check if a given object implements the SaveCategory interface.
|
|
39
34
|
*/
|
|
40
|
-
export declare function instanceOfSaveCategory(value: object):
|
|
35
|
+
export declare function instanceOfSaveCategory(value: object): value is SaveCategory;
|
|
41
36
|
export declare function SaveCategoryFromJSON(json: any): SaveCategory;
|
|
42
37
|
export declare function SaveCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveCategory;
|
|
43
38
|
export declare function SaveCategoryToJSON(value?: SaveCategory | null): any;
|
|
@@ -5,22 +5,15 @@
|
|
|
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.SaveCategoryToJSON = exports.SaveCategoryFromJSONTyped = exports.SaveCategoryFromJSON = exports.instanceOfSaveCategory = void 0;
|
|
17
|
-
const runtime_1 = require("../runtime");
|
|
18
12
|
/**
|
|
19
13
|
* Check if a given object implements the SaveCategory interface.
|
|
20
14
|
*/
|
|
21
15
|
function instanceOfSaveCategory(value) {
|
|
22
|
-
|
|
23
|
-
return isInstance;
|
|
16
|
+
return true;
|
|
24
17
|
}
|
|
25
18
|
exports.instanceOfSaveCategory = instanceOfSaveCategory;
|
|
26
19
|
function SaveCategoryFromJSON(json) {
|
|
@@ -28,27 +21,24 @@ function SaveCategoryFromJSON(json) {
|
|
|
28
21
|
}
|
|
29
22
|
exports.SaveCategoryFromJSON = SaveCategoryFromJSON;
|
|
30
23
|
function SaveCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
24
|
+
if (json == null) {
|
|
32
25
|
return json;
|
|
33
26
|
}
|
|
34
27
|
return {
|
|
35
|
-
'name':
|
|
36
|
-
'note':
|
|
37
|
-
'category_group_id':
|
|
28
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
30
|
+
'category_group_id': json['category_group_id'] == null ? undefined : json['category_group_id'],
|
|
38
31
|
};
|
|
39
32
|
}
|
|
40
33
|
exports.SaveCategoryFromJSONTyped = SaveCategoryFromJSONTyped;
|
|
41
34
|
function SaveCategoryToJSON(value) {
|
|
42
|
-
if (value
|
|
43
|
-
return
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
47
37
|
}
|
|
48
38
|
return {
|
|
49
|
-
'name': value
|
|
50
|
-
'note': value
|
|
51
|
-
'category_group_id': value
|
|
39
|
+
'name': value['name'],
|
|
40
|
+
'note': value['note'],
|
|
41
|
+
'category_group_id': value['category_group_id'],
|
|
52
42
|
};
|
|
53
43
|
}
|
|
54
44
|
exports.SaveCategoryToJSON = SaveCategoryToJSON;
|
|
@@ -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 { SaveCategoryResponseData } from './SaveCategoryResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface SaveCategoryResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the SaveCategoryResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfSaveCategoryResponse(value: object):
|
|
24
|
+
export declare function instanceOfSaveCategoryResponse(value: object): value is SaveCategoryResponse;
|
|
30
25
|
export declare function SaveCategoryResponseFromJSON(json: any): SaveCategoryResponse;
|
|
31
26
|
export declare function SaveCategoryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveCategoryResponse;
|
|
32
27
|
export declare function SaveCategoryResponseToJSON(value?: SaveCategoryResponse | 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.SaveCategoryResponseToJSON = exports.SaveCategoryResponseFromJSONTyped = exports.SaveCategoryResponseFromJSON = exports.instanceOfSaveCategoryResponse = void 0;
|
|
@@ -19,9 +14,9 @@ const SaveCategoryResponseData_1 = require("./SaveCategoryResponseData");
|
|
|
19
14
|
* Check if a given object implements the SaveCategoryResponse interface.
|
|
20
15
|
*/
|
|
21
16
|
function instanceOfSaveCategoryResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
17
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
25
20
|
}
|
|
26
21
|
exports.instanceOfSaveCategoryResponse = instanceOfSaveCategoryResponse;
|
|
27
22
|
function SaveCategoryResponseFromJSON(json) {
|
|
@@ -29,7 +24,7 @@ function SaveCategoryResponseFromJSON(json) {
|
|
|
29
24
|
}
|
|
30
25
|
exports.SaveCategoryResponseFromJSON = SaveCategoryResponseFromJSON;
|
|
31
26
|
function SaveCategoryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
27
|
+
if (json == null) {
|
|
33
28
|
return json;
|
|
34
29
|
}
|
|
35
30
|
return {
|
|
@@ -38,14 +33,11 @@ function SaveCategoryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
33
|
}
|
|
39
34
|
exports.SaveCategoryResponseFromJSONTyped = SaveCategoryResponseFromJSONTyped;
|
|
40
35
|
function SaveCategoryResponseToJSON(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, SaveCategoryResponseData_1.SaveCategoryResponseDataToJSON)(value
|
|
40
|
+
'data': (0, SaveCategoryResponseData_1.SaveCategoryResponseDataToJSON)(value['data']),
|
|
49
41
|
};
|
|
50
42
|
}
|
|
51
43
|
exports.SaveCategoryResponseToJSON = SaveCategoryResponseToJSON;
|
|
@@ -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 { Category } from './Category';
|
|
13
8
|
/**
|
|
@@ -32,7 +27,7 @@ export interface SaveCategoryResponseData {
|
|
|
32
27
|
/**
|
|
33
28
|
* Check if a given object implements the SaveCategoryResponseData interface.
|
|
34
29
|
*/
|
|
35
|
-
export declare function instanceOfSaveCategoryResponseData(value: object):
|
|
30
|
+
export declare function instanceOfSaveCategoryResponseData(value: object): value is SaveCategoryResponseData;
|
|
36
31
|
export declare function SaveCategoryResponseDataFromJSON(json: any): SaveCategoryResponseData;
|
|
37
32
|
export declare function SaveCategoryResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveCategoryResponseData;
|
|
38
33
|
export declare function SaveCategoryResponseDataToJSON(value?: SaveCategoryResponseData | 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.SaveCategoryResponseDataToJSON = exports.SaveCategoryResponseDataFromJSONTyped = exports.SaveCategoryResponseDataFromJSON = exports.instanceOfSaveCategoryResponseData = void 0;
|
|
@@ -19,10 +14,11 @@ const Category_1 = require("./Category");
|
|
|
19
14
|
* Check if a given object implements the SaveCategoryResponseData interface.
|
|
20
15
|
*/
|
|
21
16
|
function instanceOfSaveCategoryResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
26
22
|
}
|
|
27
23
|
exports.instanceOfSaveCategoryResponseData = instanceOfSaveCategoryResponseData;
|
|
28
24
|
function SaveCategoryResponseDataFromJSON(json) {
|
|
@@ -30,7 +26,7 @@ function SaveCategoryResponseDataFromJSON(json) {
|
|
|
30
26
|
}
|
|
31
27
|
exports.SaveCategoryResponseDataFromJSON = SaveCategoryResponseDataFromJSON;
|
|
32
28
|
function SaveCategoryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (
|
|
29
|
+
if (json == null) {
|
|
34
30
|
return json;
|
|
35
31
|
}
|
|
36
32
|
return {
|
|
@@ -40,15 +36,12 @@ function SaveCategoryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
36
|
}
|
|
41
37
|
exports.SaveCategoryResponseDataFromJSONTyped = SaveCategoryResponseDataFromJSONTyped;
|
|
42
38
|
function SaveCategoryResponseDataToJSON(value) {
|
|
43
|
-
if (value
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
if (value === null) {
|
|
47
|
-
return null;
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
48
41
|
}
|
|
49
42
|
return {
|
|
50
|
-
'category': (0, Category_1.CategoryToJSON)(value
|
|
51
|
-
'server_knowledge': value
|
|
43
|
+
'category': (0, Category_1.CategoryToJSON)(value['category']),
|
|
44
|
+
'server_knowledge': value['server_knowledge'],
|
|
52
45
|
};
|
|
53
46
|
}
|
|
54
47
|
exports.SaveCategoryResponseDataToJSON = SaveCategoryResponseDataToJSON;
|
|
@@ -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
|
*
|
|
@@ -25,7 +20,7 @@ export interface SaveMonthCategory {
|
|
|
25
20
|
/**
|
|
26
21
|
* Check if a given object implements the SaveMonthCategory interface.
|
|
27
22
|
*/
|
|
28
|
-
export declare function instanceOfSaveMonthCategory(value: object):
|
|
23
|
+
export declare function instanceOfSaveMonthCategory(value: object): value is SaveMonthCategory;
|
|
29
24
|
export declare function SaveMonthCategoryFromJSON(json: any): SaveMonthCategory;
|
|
30
25
|
export declare function SaveMonthCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveMonthCategory;
|
|
31
26
|
export declare function SaveMonthCategoryToJSON(value?: SaveMonthCategory | 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.SaveMonthCategoryToJSON = exports.SaveMonthCategoryFromJSONTyped = exports.SaveMonthCategoryFromJSON = exports.instanceOfSaveMonthCategory = void 0;
|
|
@@ -18,9 +13,9 @@ exports.SaveMonthCategoryToJSON = exports.SaveMonthCategoryFromJSONTyped = expor
|
|
|
18
13
|
* Check if a given object implements the SaveMonthCategory interface.
|
|
19
14
|
*/
|
|
20
15
|
function instanceOfSaveMonthCategory(value) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return
|
|
16
|
+
if (!('budgeted' in value) || value['budgeted'] === undefined)
|
|
17
|
+
return false;
|
|
18
|
+
return true;
|
|
24
19
|
}
|
|
25
20
|
exports.instanceOfSaveMonthCategory = instanceOfSaveMonthCategory;
|
|
26
21
|
function SaveMonthCategoryFromJSON(json) {
|
|
@@ -28,7 +23,7 @@ function SaveMonthCategoryFromJSON(json) {
|
|
|
28
23
|
}
|
|
29
24
|
exports.SaveMonthCategoryFromJSON = SaveMonthCategoryFromJSON;
|
|
30
25
|
function SaveMonthCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
26
|
+
if (json == null) {
|
|
32
27
|
return json;
|
|
33
28
|
}
|
|
34
29
|
return {
|
|
@@ -37,14 +32,11 @@ function SaveMonthCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
32
|
}
|
|
38
33
|
exports.SaveMonthCategoryFromJSONTyped = SaveMonthCategoryFromJSONTyped;
|
|
39
34
|
function SaveMonthCategoryToJSON(value) {
|
|
40
|
-
if (value
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
if (value === null) {
|
|
44
|
-
return null;
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
45
37
|
}
|
|
46
38
|
return {
|
|
47
|
-
'budgeted': value
|
|
39
|
+
'budgeted': value['budgeted'],
|
|
48
40
|
};
|
|
49
41
|
}
|
|
50
42
|
exports.SaveMonthCategoryToJSON = SaveMonthCategoryToJSON;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YNAB API Endpoints
|
|
3
|
+
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
|
4
|
+
*
|
|
5
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface SavePayee
|
|
11
|
+
*/
|
|
12
|
+
export interface SavePayee {
|
|
13
|
+
/**
|
|
14
|
+
* The name of the payee. The name must be a maximum of 500 characters.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof SavePayee
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the SavePayee interface.
|
|
22
|
+
*/
|
|
23
|
+
export declare function instanceOfSavePayee(value: object): value is SavePayee;
|
|
24
|
+
export declare function SavePayeeFromJSON(json: any): SavePayee;
|
|
25
|
+
export declare function SavePayeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavePayee;
|
|
26
|
+
export declare function SavePayeeToJSON(value?: SavePayee | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
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.SavePayeeToJSON = exports.SavePayeeFromJSONTyped = exports.SavePayeeFromJSON = exports.instanceOfSavePayee = void 0;
|
|
12
|
+
/**
|
|
13
|
+
* Check if a given object implements the SavePayee interface.
|
|
14
|
+
*/
|
|
15
|
+
function instanceOfSavePayee(value) {
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
exports.instanceOfSavePayee = instanceOfSavePayee;
|
|
19
|
+
function SavePayeeFromJSON(json) {
|
|
20
|
+
return SavePayeeFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
exports.SavePayeeFromJSON = SavePayeeFromJSON;
|
|
23
|
+
function SavePayeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.SavePayeeFromJSONTyped = SavePayeeFromJSONTyped;
|
|
32
|
+
function SavePayeeToJSON(value) {
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': value['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.SavePayeeToJSON = SavePayeeToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { SavePayeeResponseData } from './SavePayeeResponseData';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface SavePayeeResponse
|
|
12
|
+
*/
|
|
13
|
+
export interface SavePayeeResponse {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {SavePayeeResponseData}
|
|
17
|
+
* @memberof SavePayeeResponse
|
|
18
|
+
*/
|
|
19
|
+
data: SavePayeeResponseData;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SavePayeeResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export declare function instanceOfSavePayeeResponse(value: object): value is SavePayeeResponse;
|
|
25
|
+
export declare function SavePayeeResponseFromJSON(json: any): SavePayeeResponse;
|
|
26
|
+
export declare function SavePayeeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavePayeeResponse;
|
|
27
|
+
export declare function SavePayeeResponseToJSON(value?: SavePayeeResponse | null): any;
|
|
@@ -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.SavePayeeResponseToJSON = exports.SavePayeeResponseFromJSONTyped = exports.SavePayeeResponseFromJSON = exports.instanceOfSavePayeeResponse = void 0;
|
|
12
|
+
const SavePayeeResponseData_1 = require("./SavePayeeResponseData");
|
|
13
|
+
/**
|
|
14
|
+
* Check if a given object implements the SavePayeeResponse interface.
|
|
15
|
+
*/
|
|
16
|
+
function instanceOfSavePayeeResponse(value) {
|
|
17
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
exports.instanceOfSavePayeeResponse = instanceOfSavePayeeResponse;
|
|
22
|
+
function SavePayeeResponseFromJSON(json) {
|
|
23
|
+
return SavePayeeResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
exports.SavePayeeResponseFromJSON = SavePayeeResponseFromJSON;
|
|
26
|
+
function SavePayeeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'data': (0, SavePayeeResponseData_1.SavePayeeResponseDataFromJSON)(json['data']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
exports.SavePayeeResponseFromJSONTyped = SavePayeeResponseFromJSONTyped;
|
|
35
|
+
function SavePayeeResponseToJSON(value) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'data': (0, SavePayeeResponseData_1.SavePayeeResponseDataToJSON)(value['data']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.SavePayeeResponseToJSON = SavePayeeResponseToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { Payee } from './Payee';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface SavePayeeResponseData
|
|
12
|
+
*/
|
|
13
|
+
export interface SavePayeeResponseData {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {Payee}
|
|
17
|
+
* @memberof SavePayeeResponseData
|
|
18
|
+
*/
|
|
19
|
+
payee: Payee;
|
|
20
|
+
/**
|
|
21
|
+
* The knowledge of the server
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof SavePayeeResponseData
|
|
24
|
+
*/
|
|
25
|
+
server_knowledge: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the SavePayeeResponseData interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfSavePayeeResponseData(value: object): value is SavePayeeResponseData;
|
|
31
|
+
export declare function SavePayeeResponseDataFromJSON(json: any): SavePayeeResponseData;
|
|
32
|
+
export declare function SavePayeeResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavePayeeResponseData;
|
|
33
|
+
export declare function SavePayeeResponseDataToJSON(value?: SavePayeeResponseData | null): any;
|