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
|
@@ -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 { PayeeResponseData } from './PayeeResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface PayeeResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the PayeeResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfPayeeResponse(value: object):
|
|
24
|
+
export declare function instanceOfPayeeResponse(value: object): value is PayeeResponse;
|
|
30
25
|
export declare function PayeeResponseFromJSON(json: any): PayeeResponse;
|
|
31
26
|
export declare function PayeeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeResponse;
|
|
32
27
|
export declare function PayeeResponseToJSON(value?: PayeeResponse | 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.PayeeResponseToJSON = exports.PayeeResponseFromJSONTyped = exports.PayeeResponseFromJSON = exports.instanceOfPayeeResponse = void 0;
|
|
@@ -19,9 +14,9 @@ const PayeeResponseData_1 = require("./PayeeResponseData");
|
|
|
19
14
|
* Check if a given object implements the PayeeResponse interface.
|
|
20
15
|
*/
|
|
21
16
|
function instanceOfPayeeResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
17
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
25
20
|
}
|
|
26
21
|
exports.instanceOfPayeeResponse = instanceOfPayeeResponse;
|
|
27
22
|
function PayeeResponseFromJSON(json) {
|
|
@@ -29,7 +24,7 @@ function PayeeResponseFromJSON(json) {
|
|
|
29
24
|
}
|
|
30
25
|
exports.PayeeResponseFromJSON = PayeeResponseFromJSON;
|
|
31
26
|
function PayeeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
27
|
+
if (json == null) {
|
|
33
28
|
return json;
|
|
34
29
|
}
|
|
35
30
|
return {
|
|
@@ -38,14 +33,11 @@ function PayeeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
33
|
}
|
|
39
34
|
exports.PayeeResponseFromJSONTyped = PayeeResponseFromJSONTyped;
|
|
40
35
|
function PayeeResponseToJSON(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, PayeeResponseData_1.PayeeResponseDataToJSON)(value
|
|
40
|
+
'data': (0, PayeeResponseData_1.PayeeResponseDataToJSON)(value['data']),
|
|
49
41
|
};
|
|
50
42
|
}
|
|
51
43
|
exports.PayeeResponseToJSON = PayeeResponseToJSON;
|
|
@@ -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 { Payee } from './Payee';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface PayeeResponseData {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the PayeeResponseData interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfPayeeResponseData(value: object):
|
|
24
|
+
export declare function instanceOfPayeeResponseData(value: object): value is PayeeResponseData;
|
|
30
25
|
export declare function PayeeResponseDataFromJSON(json: any): PayeeResponseData;
|
|
31
26
|
export declare function PayeeResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeeResponseData;
|
|
32
27
|
export declare function PayeeResponseDataToJSON(value?: PayeeResponseData | 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.PayeeResponseDataToJSON = exports.PayeeResponseDataFromJSONTyped = exports.PayeeResponseDataFromJSON = exports.instanceOfPayeeResponseData = void 0;
|
|
@@ -19,9 +14,9 @@ const Payee_1 = require("./Payee");
|
|
|
19
14
|
* Check if a given object implements the PayeeResponseData interface.
|
|
20
15
|
*/
|
|
21
16
|
function instanceOfPayeeResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
17
|
+
if (!('payee' in value) || value['payee'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
25
20
|
}
|
|
26
21
|
exports.instanceOfPayeeResponseData = instanceOfPayeeResponseData;
|
|
27
22
|
function PayeeResponseDataFromJSON(json) {
|
|
@@ -29,7 +24,7 @@ function PayeeResponseDataFromJSON(json) {
|
|
|
29
24
|
}
|
|
30
25
|
exports.PayeeResponseDataFromJSON = PayeeResponseDataFromJSON;
|
|
31
26
|
function PayeeResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
27
|
+
if (json == null) {
|
|
33
28
|
return json;
|
|
34
29
|
}
|
|
35
30
|
return {
|
|
@@ -38,14 +33,11 @@ function PayeeResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
33
|
}
|
|
39
34
|
exports.PayeeResponseDataFromJSONTyped = PayeeResponseDataFromJSONTyped;
|
|
40
35
|
function PayeeResponseDataToJSON(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': (0, Payee_1.PayeeToJSON)(value
|
|
40
|
+
'payee': (0, Payee_1.PayeeToJSON)(value['payee']),
|
|
49
41
|
};
|
|
50
42
|
}
|
|
51
43
|
exports.PayeeResponseDataToJSON = PayeeResponseDataToJSON;
|
|
@@ -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 { PayeesResponseData } from './PayeesResponseData';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface PayeesResponse {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the PayeesResponse interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfPayeesResponse(value: object):
|
|
24
|
+
export declare function instanceOfPayeesResponse(value: object): value is PayeesResponse;
|
|
30
25
|
export declare function PayeesResponseFromJSON(json: any): PayeesResponse;
|
|
31
26
|
export declare function PayeesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeesResponse;
|
|
32
27
|
export declare function PayeesResponseToJSON(value?: PayeesResponse | 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.PayeesResponseToJSON = exports.PayeesResponseFromJSONTyped = exports.PayeesResponseFromJSON = exports.instanceOfPayeesResponse = void 0;
|
|
@@ -19,9 +14,9 @@ const PayeesResponseData_1 = require("./PayeesResponseData");
|
|
|
19
14
|
* Check if a given object implements the PayeesResponse interface.
|
|
20
15
|
*/
|
|
21
16
|
function instanceOfPayeesResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
17
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
25
20
|
}
|
|
26
21
|
exports.instanceOfPayeesResponse = instanceOfPayeesResponse;
|
|
27
22
|
function PayeesResponseFromJSON(json) {
|
|
@@ -29,7 +24,7 @@ function PayeesResponseFromJSON(json) {
|
|
|
29
24
|
}
|
|
30
25
|
exports.PayeesResponseFromJSON = PayeesResponseFromJSON;
|
|
31
26
|
function PayeesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
27
|
+
if (json == null) {
|
|
33
28
|
return json;
|
|
34
29
|
}
|
|
35
30
|
return {
|
|
@@ -38,14 +33,11 @@ function PayeesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
33
|
}
|
|
39
34
|
exports.PayeesResponseFromJSONTyped = PayeesResponseFromJSONTyped;
|
|
40
35
|
function PayeesResponseToJSON(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, PayeesResponseData_1.PayeesResponseDataToJSON)(value
|
|
40
|
+
'data': (0, PayeesResponseData_1.PayeesResponseDataToJSON)(value['data']),
|
|
49
41
|
};
|
|
50
42
|
}
|
|
51
43
|
exports.PayeesResponseToJSON = PayeesResponseToJSON;
|
|
@@ -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 { Payee } from './Payee';
|
|
13
8
|
/**
|
|
@@ -32,7 +27,7 @@ export interface PayeesResponseData {
|
|
|
32
27
|
/**
|
|
33
28
|
* Check if a given object implements the PayeesResponseData interface.
|
|
34
29
|
*/
|
|
35
|
-
export declare function instanceOfPayeesResponseData(value: object):
|
|
30
|
+
export declare function instanceOfPayeesResponseData(value: object): value is PayeesResponseData;
|
|
36
31
|
export declare function PayeesResponseDataFromJSON(json: any): PayeesResponseData;
|
|
37
32
|
export declare function PayeesResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PayeesResponseData;
|
|
38
33
|
export declare function PayeesResponseDataToJSON(value?: PayeesResponseData | 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.PayeesResponseDataToJSON = exports.PayeesResponseDataFromJSONTyped = exports.PayeesResponseDataFromJSON = exports.instanceOfPayeesResponseData = void 0;
|
|
@@ -19,10 +14,11 @@ const Payee_1 = require("./Payee");
|
|
|
19
14
|
* Check if a given object implements the PayeesResponseData interface.
|
|
20
15
|
*/
|
|
21
16
|
function instanceOfPayeesResponseData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
if (!('payees' in value) || value['payees'] === 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.instanceOfPayeesResponseData = instanceOfPayeesResponseData;
|
|
28
24
|
function PayeesResponseDataFromJSON(json) {
|
|
@@ -30,7 +26,7 @@ function PayeesResponseDataFromJSON(json) {
|
|
|
30
26
|
}
|
|
31
27
|
exports.PayeesResponseDataFromJSON = PayeesResponseDataFromJSON;
|
|
32
28
|
function PayeesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (
|
|
29
|
+
if (json == null) {
|
|
34
30
|
return json;
|
|
35
31
|
}
|
|
36
32
|
return {
|
|
@@ -40,15 +36,12 @@ function PayeesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
36
|
}
|
|
41
37
|
exports.PayeesResponseDataFromJSONTyped = PayeesResponseDataFromJSONTyped;
|
|
42
38
|
function PayeesResponseDataToJSON(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
|
-
'payees': (value
|
|
51
|
-
'server_knowledge': value
|
|
43
|
+
'payees': (value['payees'].map(Payee_1.PayeeToJSON)),
|
|
44
|
+
'server_knowledge': value['server_knowledge'],
|
|
52
45
|
};
|
|
53
46
|
}
|
|
54
47
|
exports.PayeesResponseDataToJSON = PayeesResponseDataToJSON;
|
|
@@ -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 { SaveAccount } from './SaveAccount';
|
|
13
8
|
/**
|
|
@@ -26,7 +21,7 @@ export interface PostAccountWrapper {
|
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the PostAccountWrapper interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfPostAccountWrapper(value: object):
|
|
24
|
+
export declare function instanceOfPostAccountWrapper(value: object): value is PostAccountWrapper;
|
|
30
25
|
export declare function PostAccountWrapperFromJSON(json: any): PostAccountWrapper;
|
|
31
26
|
export declare function PostAccountWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostAccountWrapper;
|
|
32
27
|
export declare function PostAccountWrapperToJSON(value?: PostAccountWrapper | 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.PostAccountWrapperToJSON = exports.PostAccountWrapperFromJSONTyped = exports.PostAccountWrapperFromJSON = exports.instanceOfPostAccountWrapper = void 0;
|
|
@@ -19,9 +14,9 @@ const SaveAccount_1 = require("./SaveAccount");
|
|
|
19
14
|
* Check if a given object implements the PostAccountWrapper interface.
|
|
20
15
|
*/
|
|
21
16
|
function instanceOfPostAccountWrapper(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
17
|
+
if (!('account' in value) || value['account'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
25
20
|
}
|
|
26
21
|
exports.instanceOfPostAccountWrapper = instanceOfPostAccountWrapper;
|
|
27
22
|
function PostAccountWrapperFromJSON(json) {
|
|
@@ -29,7 +24,7 @@ function PostAccountWrapperFromJSON(json) {
|
|
|
29
24
|
}
|
|
30
25
|
exports.PostAccountWrapperFromJSON = PostAccountWrapperFromJSON;
|
|
31
26
|
function PostAccountWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
27
|
+
if (json == null) {
|
|
33
28
|
return json;
|
|
34
29
|
}
|
|
35
30
|
return {
|
|
@@ -38,14 +33,11 @@ function PostAccountWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
33
|
}
|
|
39
34
|
exports.PostAccountWrapperFromJSONTyped = PostAccountWrapperFromJSONTyped;
|
|
40
35
|
function PostAccountWrapperToJSON(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
|
-
'account': (0, SaveAccount_1.SaveAccountToJSON)(value
|
|
40
|
+
'account': (0, SaveAccount_1.SaveAccountToJSON)(value['account']),
|
|
49
41
|
};
|
|
50
42
|
}
|
|
51
43
|
exports.PostAccountWrapperToJSON = PostAccountWrapperToJSON;
|
|
@@ -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 { SaveScheduledTransaction } from './SaveScheduledTransaction';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PostScheduledTransactionWrapper
|
|
12
|
+
*/
|
|
13
|
+
export interface PostScheduledTransactionWrapper {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {SaveScheduledTransaction}
|
|
17
|
+
* @memberof PostScheduledTransactionWrapper
|
|
18
|
+
*/
|
|
19
|
+
scheduled_transaction: SaveScheduledTransaction;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostScheduledTransactionWrapper interface.
|
|
23
|
+
*/
|
|
24
|
+
export declare function instanceOfPostScheduledTransactionWrapper(value: object): value is PostScheduledTransactionWrapper;
|
|
25
|
+
export declare function PostScheduledTransactionWrapperFromJSON(json: any): PostScheduledTransactionWrapper;
|
|
26
|
+
export declare function PostScheduledTransactionWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostScheduledTransactionWrapper;
|
|
27
|
+
export declare function PostScheduledTransactionWrapperToJSON(value?: PostScheduledTransactionWrapper | 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.PostScheduledTransactionWrapperToJSON = exports.PostScheduledTransactionWrapperFromJSONTyped = exports.PostScheduledTransactionWrapperFromJSON = exports.instanceOfPostScheduledTransactionWrapper = void 0;
|
|
12
|
+
const SaveScheduledTransaction_1 = require("./SaveScheduledTransaction");
|
|
13
|
+
/**
|
|
14
|
+
* Check if a given object implements the PostScheduledTransactionWrapper interface.
|
|
15
|
+
*/
|
|
16
|
+
function instanceOfPostScheduledTransactionWrapper(value) {
|
|
17
|
+
if (!('scheduled_transaction' in value) || value['scheduled_transaction'] === undefined)
|
|
18
|
+
return false;
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
exports.instanceOfPostScheduledTransactionWrapper = instanceOfPostScheduledTransactionWrapper;
|
|
22
|
+
function PostScheduledTransactionWrapperFromJSON(json) {
|
|
23
|
+
return PostScheduledTransactionWrapperFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
exports.PostScheduledTransactionWrapperFromJSON = PostScheduledTransactionWrapperFromJSON;
|
|
26
|
+
function PostScheduledTransactionWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'scheduled_transaction': (0, SaveScheduledTransaction_1.SaveScheduledTransactionFromJSON)(json['scheduled_transaction']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
exports.PostScheduledTransactionWrapperFromJSONTyped = PostScheduledTransactionWrapperFromJSONTyped;
|
|
35
|
+
function PostScheduledTransactionWrapperToJSON(value) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'scheduled_transaction': (0, SaveScheduledTransaction_1.SaveScheduledTransactionToJSON)(value['scheduled_transaction']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.PostScheduledTransactionWrapperToJSON = PostScheduledTransactionWrapperToJSON;
|
|
@@ -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 { NewTransaction } from './NewTransaction';
|
|
13
8
|
/**
|
|
14
9
|
*
|
|
15
10
|
* @export
|
|
@@ -18,21 +13,21 @@ import type { SaveTransaction } from './SaveTransaction';
|
|
|
18
13
|
export interface PostTransactionsWrapper {
|
|
19
14
|
/**
|
|
20
15
|
*
|
|
21
|
-
* @type {
|
|
16
|
+
* @type {NewTransaction}
|
|
22
17
|
* @memberof PostTransactionsWrapper
|
|
23
18
|
*/
|
|
24
|
-
transaction?:
|
|
19
|
+
transaction?: NewTransaction;
|
|
25
20
|
/**
|
|
26
21
|
*
|
|
27
|
-
* @type {Array<
|
|
22
|
+
* @type {Array<NewTransaction>}
|
|
28
23
|
* @memberof PostTransactionsWrapper
|
|
29
24
|
*/
|
|
30
|
-
transactions?: Array<
|
|
25
|
+
transactions?: Array<NewTransaction>;
|
|
31
26
|
}
|
|
32
27
|
/**
|
|
33
28
|
* Check if a given object implements the PostTransactionsWrapper interface.
|
|
34
29
|
*/
|
|
35
|
-
export declare function instanceOfPostTransactionsWrapper(value: object):
|
|
30
|
+
export declare function instanceOfPostTransactionsWrapper(value: object): value is PostTransactionsWrapper;
|
|
36
31
|
export declare function PostTransactionsWrapperFromJSON(json: any): PostTransactionsWrapper;
|
|
37
32
|
export declare function PostTransactionsWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostTransactionsWrapper;
|
|
38
33
|
export declare function PostTransactionsWrapperToJSON(value?: PostTransactionsWrapper | null): any;
|
|
@@ -5,23 +5,16 @@
|
|
|
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.PostTransactionsWrapperToJSON = exports.PostTransactionsWrapperFromJSONTyped = exports.PostTransactionsWrapperFromJSON = exports.instanceOfPostTransactionsWrapper = void 0;
|
|
17
|
-
const
|
|
18
|
-
const SaveTransaction_1 = require("./SaveTransaction");
|
|
12
|
+
const NewTransaction_1 = require("./NewTransaction");
|
|
19
13
|
/**
|
|
20
14
|
* Check if a given object implements the PostTransactionsWrapper interface.
|
|
21
15
|
*/
|
|
22
16
|
function instanceOfPostTransactionsWrapper(value) {
|
|
23
|
-
|
|
24
|
-
return isInstance;
|
|
17
|
+
return true;
|
|
25
18
|
}
|
|
26
19
|
exports.instanceOfPostTransactionsWrapper = instanceOfPostTransactionsWrapper;
|
|
27
20
|
function PostTransactionsWrapperFromJSON(json) {
|
|
@@ -29,25 +22,22 @@ function PostTransactionsWrapperFromJSON(json) {
|
|
|
29
22
|
}
|
|
30
23
|
exports.PostTransactionsWrapperFromJSON = PostTransactionsWrapperFromJSON;
|
|
31
24
|
function PostTransactionsWrapperFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
25
|
+
if (json == null) {
|
|
33
26
|
return json;
|
|
34
27
|
}
|
|
35
28
|
return {
|
|
36
|
-
'transaction':
|
|
37
|
-
'transactions':
|
|
29
|
+
'transaction': json['transaction'] == null ? undefined : (0, NewTransaction_1.NewTransactionFromJSON)(json['transaction']),
|
|
30
|
+
'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(NewTransaction_1.NewTransactionFromJSON)),
|
|
38
31
|
};
|
|
39
32
|
}
|
|
40
33
|
exports.PostTransactionsWrapperFromJSONTyped = PostTransactionsWrapperFromJSONTyped;
|
|
41
34
|
function PostTransactionsWrapperToJSON(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
|
-
'transaction': (0,
|
|
50
|
-
'transactions': value
|
|
39
|
+
'transaction': (0, NewTransaction_1.NewTransactionToJSON)(value['transaction']),
|
|
40
|
+
'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(NewTransaction_1.NewTransactionToJSON)),
|
|
51
41
|
};
|
|
52
42
|
}
|
|
53
43
|
exports.PostTransactionsWrapperToJSON = PostTransactionsWrapperToJSON;
|
|
@@ -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 { ExistingTransaction } from './ExistingTransaction';
|
|
13
8
|
/**
|
|
14
9
|
*
|
|
15
10
|
* @export
|
|
@@ -18,15 +13,15 @@ import type { SaveTransaction } from './SaveTransaction';
|
|
|
18
13
|
export interface PutTransactionWrapper {
|
|
19
14
|
/**
|
|
20
15
|
*
|
|
21
|
-
* @type {
|
|
16
|
+
* @type {ExistingTransaction}
|
|
22
17
|
* @memberof PutTransactionWrapper
|
|
23
18
|
*/
|
|
24
|
-
transaction:
|
|
19
|
+
transaction: ExistingTransaction;
|
|
25
20
|
}
|
|
26
21
|
/**
|
|
27
22
|
* Check if a given object implements the PutTransactionWrapper interface.
|
|
28
23
|
*/
|
|
29
|
-
export declare function instanceOfPutTransactionWrapper(value: object):
|
|
24
|
+
export declare function instanceOfPutTransactionWrapper(value: object): value is PutTransactionWrapper;
|
|
30
25
|
export declare function PutTransactionWrapperFromJSON(json: any): PutTransactionWrapper;
|
|
31
26
|
export declare function PutTransactionWrapperFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutTransactionWrapper;
|
|
32
27
|
export declare function PutTransactionWrapperToJSON(value?: PutTransactionWrapper | null): any;
|