ynab 2.10.0 → 3.1.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 +50 -42
- package/dist/apis/AccountsApi.d.ts +12 -12
- package/dist/apis/AccountsApi.js +38 -28
- package/dist/apis/CategoriesApi.d.ts +68 -25
- package/dist/apis/CategoriesApi.js +176 -46
- package/dist/apis/DeprecatedApi.js +17 -7
- package/dist/apis/MoneyMovementsApi.d.ts +67 -0
- package/dist/apis/MoneyMovementsApi.js +194 -0
- package/dist/apis/MonthsApi.d.ts +16 -16
- package/dist/apis/MonthsApi.js +38 -28
- package/dist/apis/PayeeLocationsApi.d.ts +12 -12
- package/dist/apis/PayeeLocationsApi.js +38 -28
- package/dist/apis/PayeesApi.d.ts +10 -10
- package/dist/apis/PayeesApi.js +36 -26
- package/dist/apis/PlansApi.d.ts +53 -0
- package/dist/apis/{BudgetsApi.js → PlansApi.js} +50 -40
- package/dist/apis/ScheduledTransactionsApi.d.ts +20 -20
- package/dist/apis/ScheduledTransactionsApi.js +52 -42
- package/dist/apis/TransactionsApi.d.ts +49 -49
- package/dist/apis/TransactionsApi.js +99 -89
- package/dist/apis/UserApi.d.ts +2 -2
- package/dist/apis/UserApi.js +19 -9
- package/dist/apis/index.d.ts +2 -1
- package/dist/apis/index.js +2 -1
- package/dist/browser/ynab.js +1 -1
- package/dist/esm/apis/AccountsApi.d.ts +12 -12
- package/dist/esm/apis/AccountsApi.js +23 -23
- package/dist/esm/apis/CategoriesApi.d.ts +68 -25
- package/dist/esm/apis/CategoriesApi.js +228 -42
- package/dist/esm/apis/DeprecatedApi.js +2 -2
- package/dist/esm/apis/MoneyMovementsApi.d.ts +67 -0
- package/dist/esm/apis/MoneyMovementsApi.js +302 -0
- package/dist/esm/apis/MonthsApi.d.ts +16 -16
- package/dist/esm/apis/MonthsApi.js +23 -23
- package/dist/esm/apis/PayeeLocationsApi.d.ts +12 -12
- package/dist/esm/apis/PayeeLocationsApi.js +23 -23
- package/dist/esm/apis/PayeesApi.d.ts +10 -10
- package/dist/esm/apis/PayeesApi.js +21 -21
- package/dist/esm/apis/PlansApi.d.ts +53 -0
- package/dist/esm/apis/{BudgetsApi.js → PlansApi.js} +38 -38
- package/dist/esm/apis/ScheduledTransactionsApi.d.ts +20 -20
- package/dist/esm/apis/ScheduledTransactionsApi.js +37 -37
- package/dist/esm/apis/TransactionsApi.d.ts +49 -49
- package/dist/esm/apis/TransactionsApi.js +84 -84
- package/dist/esm/apis/UserApi.d.ts +2 -2
- package/dist/esm/apis/UserApi.js +4 -4
- package/dist/esm/apis/index.d.ts +2 -1
- package/dist/esm/apis/index.js +2 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +5 -5
- package/dist/esm/models/Account.d.ts +6 -6
- package/dist/esm/models/Category.d.ts +10 -4
- package/dist/esm/models/Category.js +2 -0
- package/dist/esm/models/CategoryGroupWithCategories.d.ts +1 -1
- package/dist/esm/models/CurrencyFormat.d.ts +1 -1
- package/dist/esm/models/DateFormat.d.ts +1 -1
- package/dist/esm/models/ExistingCategory.d.ts +51 -0
- package/dist/esm/models/ExistingCategory.js +45 -0
- package/dist/esm/models/ExistingTransaction.d.ts +4 -4
- package/dist/esm/models/HybridTransaction.d.ts +12 -12
- package/dist/esm/models/MoneyMovement.d.ts +75 -0
- package/dist/esm/models/MoneyMovement.js +57 -0
- package/dist/esm/models/MoneyMovementGroup.d.ts +51 -0
- package/dist/esm/models/MoneyMovementGroup.js +51 -0
- package/dist/esm/models/MoneyMovementGroupsResponse.d.ts +28 -0
- package/dist/esm/models/MoneyMovementGroupsResponse.js +40 -0
- package/dist/esm/models/MoneyMovementGroupsResponseData.d.ts +34 -0
- package/dist/esm/models/MoneyMovementGroupsResponseData.js +44 -0
- package/dist/esm/models/MoneyMovementsResponse.d.ts +28 -0
- package/dist/esm/models/{BudgetSettingsResponse.js → MoneyMovementsResponse.js} +11 -11
- package/dist/esm/models/MoneyMovementsResponseData.d.ts +34 -0
- package/dist/esm/models/MoneyMovementsResponseData.js +44 -0
- package/dist/esm/models/MonthDetail.d.ts +4 -4
- package/dist/esm/models/MonthSummary.d.ts +1 -1
- package/dist/esm/models/NewCategory.d.ts +51 -0
- package/dist/esm/models/NewCategory.js +45 -0
- package/dist/esm/models/NewTransaction.d.ts +4 -4
- package/dist/esm/models/PatchCategoryGroupWrapper.d.ts +28 -0
- package/dist/esm/models/PatchCategoryGroupWrapper.js +40 -0
- package/dist/esm/models/PatchCategoryWrapper.d.ts +3 -3
- package/dist/esm/models/PatchCategoryWrapper.js +3 -3
- package/dist/{models/BudgetDetail.d.ts → esm/models/PlanDetail.d.ts} +30 -30
- package/dist/esm/models/{BudgetDetail.js → PlanDetail.js} +8 -8
- package/dist/esm/models/PlanDetailResponse.d.ts +28 -0
- package/dist/esm/models/PlanDetailResponse.js +40 -0
- package/dist/esm/models/PlanDetailResponseData.d.ts +34 -0
- package/dist/esm/models/{BudgetDetailResponseData.js → PlanDetailResponseData.js} +11 -11
- package/dist/esm/models/PlanSettings.d.ts +35 -0
- package/dist/esm/models/{BudgetSettings.js → PlanSettings.js} +8 -8
- package/dist/esm/models/PlanSettingsResponse.d.ts +28 -0
- package/dist/esm/models/{BudgetDetailResponse.js → PlanSettingsResponse.js} +11 -11
- package/dist/esm/models/PlanSettingsResponseData.d.ts +28 -0
- package/dist/esm/models/PlanSettingsResponseData.js +40 -0
- package/dist/esm/models/PlanSummary.d.ts +72 -0
- package/dist/esm/models/{BudgetSummary.js → PlanSummary.js} +8 -8
- package/dist/esm/models/PlanSummaryResponse.d.ts +28 -0
- package/dist/esm/models/PlanSummaryResponse.js +40 -0
- package/dist/esm/models/PlanSummaryResponseData.d.ts +34 -0
- package/dist/esm/models/PlanSummaryResponseData.js +42 -0
- package/dist/esm/models/PostCategoryGroupWrapper.d.ts +28 -0
- package/dist/esm/models/PostCategoryGroupWrapper.js +40 -0
- package/dist/esm/models/PostCategoryWrapper.d.ts +28 -0
- package/dist/esm/models/PostCategoryWrapper.js +40 -0
- package/dist/esm/models/SaveCategory.d.ts +7 -1
- package/dist/esm/models/SaveCategory.js +2 -0
- package/dist/esm/models/SaveCategoryGroup.d.ts +27 -0
- package/dist/esm/models/SaveCategoryGroup.js +39 -0
- package/dist/esm/models/SaveCategoryGroupResponse.d.ts +28 -0
- package/dist/esm/models/SaveCategoryGroupResponse.js +40 -0
- package/dist/esm/models/SaveCategoryGroupResponseData.d.ts +34 -0
- package/dist/esm/models/SaveCategoryGroupResponseData.js +44 -0
- package/dist/esm/models/SaveMonthCategory.d.ts +1 -1
- package/dist/esm/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
- package/dist/esm/models/ScheduledTransactionDetail.d.ts +6 -6
- package/dist/esm/models/ScheduledTransactionSummary.d.ts +1 -1
- package/dist/esm/models/TransactionDetail.d.ts +11 -11
- package/dist/esm/models/TransactionSummary.d.ts +1 -1
- package/dist/esm/models/index.d.ts +23 -9
- package/dist/esm/models/index.js +23 -9
- package/dist/esm/runtime.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +22 -12
- package/dist/models/Account.d.ts +6 -6
- package/dist/models/Account.js +5 -6
- package/dist/models/AccountResponse.js +5 -6
- package/dist/models/AccountResponseData.js +5 -6
- package/dist/models/AccountType.js +6 -6
- package/dist/models/AccountsResponse.js +5 -6
- package/dist/models/AccountsResponseData.js +5 -6
- package/dist/models/BulkResponse.js +5 -6
- package/dist/models/BulkResponseData.js +5 -6
- package/dist/models/BulkResponseDataBulk.js +5 -6
- package/dist/models/BulkTransactions.js +5 -6
- package/dist/models/CategoriesResponse.js +5 -6
- package/dist/models/CategoriesResponseData.js +5 -6
- package/dist/models/Category.d.ts +10 -4
- package/dist/models/Category.js +8 -6
- package/dist/models/CategoryGoalType.js +4 -5
- package/dist/models/CategoryGroup.js +5 -6
- package/dist/models/CategoryGroupWithCategories.d.ts +1 -1
- package/dist/models/CategoryGroupWithCategories.js +5 -6
- package/dist/models/CategoryGroupWithCategoriesAllOf.js +4 -5
- package/dist/models/CategoryResponse.js +5 -6
- package/dist/models/CategoryResponseData.js +5 -6
- package/dist/models/CurrencyFormat.d.ts +1 -1
- package/dist/models/CurrencyFormat.js +5 -6
- package/dist/models/DateFormat.d.ts +1 -1
- package/dist/models/DateFormat.js +5 -6
- package/dist/models/ErrorDetail.js +5 -6
- package/dist/models/ErrorResponse.js +5 -6
- package/dist/models/ExistingCategory.d.ts +51 -0
- package/dist/models/ExistingCategory.js +51 -0
- package/dist/models/ExistingTransaction.d.ts +4 -4
- package/dist/models/ExistingTransaction.js +5 -6
- package/dist/models/HybridTransaction.d.ts +12 -12
- package/dist/models/HybridTransaction.js +6 -6
- package/dist/models/HybridTransactionAllOf.js +5 -5
- package/dist/models/HybridTransactionsResponse.js +5 -6
- package/dist/models/HybridTransactionsResponseData.js +5 -6
- package/dist/models/MoneyMovement.d.ts +75 -0
- package/dist/models/MoneyMovement.js +63 -0
- package/dist/models/MoneyMovementGroup.d.ts +51 -0
- package/dist/models/MoneyMovementGroup.js +57 -0
- package/dist/models/MoneyMovementGroupsResponse.d.ts +28 -0
- package/dist/models/MoneyMovementGroupsResponse.js +46 -0
- package/dist/models/MoneyMovementGroupsResponseData.d.ts +34 -0
- package/dist/models/MoneyMovementGroupsResponseData.js +50 -0
- package/dist/models/MoneyMovementsResponse.d.ts +28 -0
- package/dist/models/MoneyMovementsResponse.js +46 -0
- package/dist/models/MoneyMovementsResponseData.d.ts +34 -0
- package/dist/models/MoneyMovementsResponseData.js +50 -0
- package/dist/models/MonthDetail.d.ts +4 -4
- package/dist/models/MonthDetail.js +5 -6
- package/dist/models/MonthDetailAllOf.js +4 -5
- package/dist/models/MonthDetailResponse.js +5 -6
- package/dist/models/MonthDetailResponseData.js +5 -6
- package/dist/models/MonthSummariesResponse.js +5 -6
- package/dist/models/MonthSummariesResponseData.js +5 -6
- package/dist/models/MonthSummary.d.ts +1 -1
- package/dist/models/MonthSummary.js +5 -6
- package/dist/models/NewCategory.d.ts +51 -0
- package/dist/models/NewCategory.js +51 -0
- package/dist/models/NewTransaction.d.ts +4 -4
- package/dist/models/NewTransaction.js +5 -6
- package/dist/models/PatchCategoryGroupWrapper.d.ts +28 -0
- package/dist/models/PatchCategoryGroupWrapper.js +46 -0
- package/dist/models/PatchCategoryWrapper.d.ts +3 -3
- package/dist/models/PatchCategoryWrapper.js +8 -9
- package/dist/models/PatchMonthCategoryWrapper.js +5 -6
- package/dist/models/PatchPayeeWrapper.js +5 -6
- package/dist/models/PatchTransactionsWrapper.js +5 -6
- package/dist/models/Payee.js +5 -6
- package/dist/models/PayeeLocation.js +5 -6
- package/dist/models/PayeeLocationResponse.js +5 -6
- package/dist/models/PayeeLocationResponseData.js +5 -6
- package/dist/models/PayeeLocationsResponse.js +5 -6
- package/dist/models/PayeeLocationsResponseData.js +5 -6
- package/dist/models/PayeeResponse.js +5 -6
- package/dist/models/PayeeResponseData.js +5 -6
- package/dist/models/PayeesResponse.js +5 -6
- package/dist/models/PayeesResponseData.js +5 -6
- package/dist/{esm/models/BudgetDetail.d.ts → models/PlanDetail.d.ts} +30 -30
- package/dist/models/{BudgetDetail.js → PlanDetail.js} +13 -14
- package/dist/models/PlanDetailResponse.d.ts +28 -0
- package/dist/models/PlanDetailResponse.js +46 -0
- package/dist/models/PlanDetailResponseData.d.ts +34 -0
- package/dist/models/PlanDetailResponseData.js +50 -0
- package/dist/models/PlanSettings.d.ts +35 -0
- package/dist/models/{BudgetSettings.js → PlanSettings.js} +13 -14
- package/dist/models/PlanSettingsResponse.d.ts +28 -0
- package/dist/models/PlanSettingsResponse.js +46 -0
- package/dist/models/PlanSettingsResponseData.d.ts +28 -0
- package/dist/models/PlanSettingsResponseData.js +46 -0
- package/dist/models/PlanSummary.d.ts +72 -0
- package/dist/models/{BudgetSummary.js → PlanSummary.js} +13 -14
- package/dist/models/PlanSummaryResponse.d.ts +28 -0
- package/dist/models/PlanSummaryResponse.js +46 -0
- package/dist/models/PlanSummaryResponseData.d.ts +34 -0
- package/dist/models/PlanSummaryResponseData.js +48 -0
- package/dist/models/PostAccountWrapper.js +5 -6
- package/dist/models/PostCategoryGroupWrapper.d.ts +28 -0
- package/dist/models/PostCategoryGroupWrapper.js +46 -0
- package/dist/models/PostCategoryWrapper.d.ts +28 -0
- package/dist/models/PostCategoryWrapper.js +46 -0
- package/dist/models/PostScheduledTransactionWrapper.js +5 -6
- package/dist/models/PostTransactionsWrapper.js +5 -6
- package/dist/models/PutScheduledTransactionWrapper.js +5 -6
- package/dist/models/PutTransactionWrapper.js +5 -6
- package/dist/models/SaveAccount.js +5 -6
- package/dist/models/SaveCategory.d.ts +7 -1
- package/dist/models/SaveCategory.js +7 -6
- package/dist/models/SaveCategoryGroup.d.ts +27 -0
- package/dist/models/SaveCategoryGroup.js +45 -0
- package/dist/models/SaveCategoryGroupResponse.d.ts +28 -0
- package/dist/models/SaveCategoryGroupResponse.js +46 -0
- package/dist/models/SaveCategoryGroupResponseData.d.ts +34 -0
- package/dist/models/SaveCategoryGroupResponseData.js +50 -0
- package/dist/models/SaveCategoryResponse.js +5 -6
- package/dist/models/SaveCategoryResponseData.js +5 -6
- package/dist/models/SaveMonthCategory.d.ts +1 -1
- package/dist/models/SaveMonthCategory.js +5 -6
- package/dist/models/SavePayee.js +5 -6
- package/dist/models/SavePayeeResponse.js +5 -6
- package/dist/models/SavePayeeResponseData.js +5 -6
- package/dist/models/SaveScheduledTransaction.js +5 -6
- package/dist/models/SaveSubTransaction.js +5 -6
- package/dist/models/SaveTransaction.js +4 -5
- package/dist/models/SaveTransactionWithId.js +4 -5
- package/dist/models/SaveTransactionWithIdAllOf.js +4 -5
- package/dist/models/SaveTransactionWithIdOrImportId.d.ts +4 -4
- package/dist/models/SaveTransactionWithIdOrImportId.js +5 -6
- package/dist/models/SaveTransactionWithOptionalFields.js +5 -6
- package/dist/models/SaveTransactionWithOptionalFieldsFlagColor.js +4 -5
- package/dist/models/SaveTransactionsResponse.js +5 -6
- package/dist/models/SaveTransactionsResponseData.js +5 -6
- package/dist/models/ScheduledSubTransaction.js +5 -6
- package/dist/models/ScheduledTransactionDetail.d.ts +6 -6
- package/dist/models/ScheduledTransactionDetail.js +6 -6
- package/dist/models/ScheduledTransactionDetailAllOf.js +4 -5
- package/dist/models/ScheduledTransactionFrequency.js +6 -6
- package/dist/models/ScheduledTransactionResponse.js +5 -6
- package/dist/models/ScheduledTransactionResponseData.js +5 -6
- package/dist/models/ScheduledTransactionSummary.d.ts +1 -1
- package/dist/models/ScheduledTransactionSummary.js +6 -6
- package/dist/models/ScheduledTransactionSummaryFlagColor.js +4 -5
- package/dist/models/ScheduledTransactionsResponse.js +5 -6
- package/dist/models/ScheduledTransactionsResponseData.js +5 -6
- package/dist/models/SubTransaction.js +5 -6
- package/dist/models/TransactionClearedStatus.js +6 -6
- package/dist/models/TransactionDetail.d.ts +11 -11
- package/dist/models/TransactionDetail.js +6 -6
- package/dist/models/TransactionDetailAllOf.js +4 -5
- package/dist/models/TransactionFlagColor.js +6 -6
- package/dist/models/TransactionResponse.js +5 -6
- package/dist/models/TransactionResponseData.js +5 -6
- package/dist/models/TransactionSummary.d.ts +1 -1
- package/dist/models/TransactionSummary.js +6 -6
- package/dist/models/TransactionSummaryDebtTransactionType.js +4 -5
- package/dist/models/TransactionsImportResponse.js +5 -6
- package/dist/models/TransactionsImportResponseData.js +5 -6
- package/dist/models/TransactionsResponse.js +5 -6
- package/dist/models/TransactionsResponseData.js +5 -6
- package/dist/models/User.js +5 -6
- package/dist/models/UserResponse.js +5 -6
- package/dist/models/UserResponseData.js +5 -6
- package/dist/models/index.d.ts +23 -9
- package/dist/models/index.js +23 -9
- package/dist/runtime.js +5 -5
- package/package.json +7 -8
- package/dist/apis/BudgetsApi.d.ts +0 -53
- package/dist/esm/apis/BudgetsApi.d.ts +0 -53
- package/dist/esm/models/BudgetDetailAllOf.d.ts +0 -95
- package/dist/esm/models/BudgetDetailAllOf.js +0 -71
- package/dist/esm/models/BudgetDetailResponse.d.ts +0 -28
- package/dist/esm/models/BudgetDetailResponseData.d.ts +0 -34
- package/dist/esm/models/BudgetSettings.d.ts +0 -35
- package/dist/esm/models/BudgetSettingsResponse.d.ts +0 -28
- package/dist/esm/models/BudgetSettingsResponseData.d.ts +0 -28
- package/dist/esm/models/BudgetSettingsResponseData.js +0 -40
- package/dist/esm/models/BudgetSummary.d.ts +0 -72
- package/dist/esm/models/BudgetSummaryResponse.d.ts +0 -28
- package/dist/esm/models/BudgetSummaryResponse.js +0 -40
- package/dist/esm/models/BudgetSummaryResponseData.d.ts +0 -34
- package/dist/esm/models/BudgetSummaryResponseData.js +0 -42
- package/dist/models/BudgetDetailAllOf.d.ts +0 -95
- package/dist/models/BudgetDetailAllOf.js +0 -78
- package/dist/models/BudgetDetailResponse.d.ts +0 -28
- package/dist/models/BudgetDetailResponse.js +0 -47
- package/dist/models/BudgetDetailResponseData.d.ts +0 -34
- package/dist/models/BudgetDetailResponseData.js +0 -51
- package/dist/models/BudgetSettings.d.ts +0 -35
- package/dist/models/BudgetSettingsResponse.d.ts +0 -28
- package/dist/models/BudgetSettingsResponse.js +0 -47
- package/dist/models/BudgetSettingsResponseData.d.ts +0 -28
- package/dist/models/BudgetSettingsResponseData.js +0 -47
- package/dist/models/BudgetSummary.d.ts +0 -72
- package/dist/models/BudgetSummaryResponse.d.ts +0 -28
- package/dist/models/BudgetSummaryResponse.js +0 -47
- package/dist/models/BudgetSummaryResponseData.d.ts +0 -34
- package/dist/models/BudgetSummaryResponseData.js +0 -49
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.instanceOfCurrencyFormat = instanceOfCurrencyFormat;
|
|
12
|
+
exports.CurrencyFormatFromJSON = CurrencyFormatFromJSON;
|
|
13
|
+
exports.CurrencyFormatFromJSONTyped = CurrencyFormatFromJSONTyped;
|
|
14
|
+
exports.CurrencyFormatToJSON = CurrencyFormatToJSON;
|
|
15
|
+
exports.CurrencyFormatToJSONTyped = CurrencyFormatToJSONTyped;
|
|
12
16
|
/**
|
|
13
17
|
* Check if a given object implements the CurrencyFormat interface.
|
|
14
18
|
*/
|
|
@@ -31,11 +35,9 @@ function instanceOfCurrencyFormat(value) {
|
|
|
31
35
|
return false;
|
|
32
36
|
return true;
|
|
33
37
|
}
|
|
34
|
-
exports.instanceOfCurrencyFormat = instanceOfCurrencyFormat;
|
|
35
38
|
function CurrencyFormatFromJSON(json) {
|
|
36
39
|
return CurrencyFormatFromJSONTyped(json, false);
|
|
37
40
|
}
|
|
38
|
-
exports.CurrencyFormatFromJSON = CurrencyFormatFromJSON;
|
|
39
41
|
function CurrencyFormatFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
42
|
if (json == null) {
|
|
41
43
|
return json;
|
|
@@ -51,11 +53,9 @@ function CurrencyFormatFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
53
|
'display_symbol': json['display_symbol'],
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
|
-
exports.CurrencyFormatFromJSONTyped = CurrencyFormatFromJSONTyped;
|
|
55
56
|
function CurrencyFormatToJSON(json) {
|
|
56
57
|
return CurrencyFormatToJSONTyped(json, false);
|
|
57
58
|
}
|
|
58
|
-
exports.CurrencyFormatToJSON = CurrencyFormatToJSON;
|
|
59
59
|
function CurrencyFormatToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
60
|
if (value == null) {
|
|
61
61
|
return value;
|
|
@@ -71,4 +71,3 @@ function CurrencyFormatToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
71
|
'display_symbol': value['display_symbol'],
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
exports.CurrencyFormatToJSONTyped = CurrencyFormatToJSONTyped;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
|
-
* The date format setting for the
|
|
8
|
+
* The date format setting for the plan. In some cases the format will not be available and will be specified as null.
|
|
9
9
|
* @export
|
|
10
10
|
* @interface DateFormat
|
|
11
11
|
*/
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.instanceOfDateFormat = instanceOfDateFormat;
|
|
12
|
+
exports.DateFormatFromJSON = DateFormatFromJSON;
|
|
13
|
+
exports.DateFormatFromJSONTyped = DateFormatFromJSONTyped;
|
|
14
|
+
exports.DateFormatToJSON = DateFormatToJSON;
|
|
15
|
+
exports.DateFormatToJSONTyped = DateFormatToJSONTyped;
|
|
12
16
|
/**
|
|
13
17
|
* Check if a given object implements the DateFormat interface.
|
|
14
18
|
*/
|
|
@@ -17,11 +21,9 @@ function instanceOfDateFormat(value) {
|
|
|
17
21
|
return false;
|
|
18
22
|
return true;
|
|
19
23
|
}
|
|
20
|
-
exports.instanceOfDateFormat = instanceOfDateFormat;
|
|
21
24
|
function DateFormatFromJSON(json) {
|
|
22
25
|
return DateFormatFromJSONTyped(json, false);
|
|
23
26
|
}
|
|
24
|
-
exports.DateFormatFromJSON = DateFormatFromJSON;
|
|
25
27
|
function DateFormatFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
28
|
if (json == null) {
|
|
27
29
|
return json;
|
|
@@ -30,11 +32,9 @@ function DateFormatFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
32
|
'format': json['format'],
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
|
-
exports.DateFormatFromJSONTyped = DateFormatFromJSONTyped;
|
|
34
35
|
function DateFormatToJSON(json) {
|
|
35
36
|
return DateFormatToJSONTyped(json, false);
|
|
36
37
|
}
|
|
37
|
-
exports.DateFormatToJSON = DateFormatToJSON;
|
|
38
38
|
function DateFormatToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
39
|
if (value == null) {
|
|
40
40
|
return value;
|
|
@@ -43,4 +43,3 @@ function DateFormatToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
43
43
|
'format': value['format'],
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
exports.DateFormatToJSONTyped = DateFormatToJSONTyped;
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.instanceOfErrorDetail = instanceOfErrorDetail;
|
|
12
|
+
exports.ErrorDetailFromJSON = ErrorDetailFromJSON;
|
|
13
|
+
exports.ErrorDetailFromJSONTyped = ErrorDetailFromJSONTyped;
|
|
14
|
+
exports.ErrorDetailToJSON = ErrorDetailToJSON;
|
|
15
|
+
exports.ErrorDetailToJSONTyped = ErrorDetailToJSONTyped;
|
|
12
16
|
/**
|
|
13
17
|
* Check if a given object implements the ErrorDetail interface.
|
|
14
18
|
*/
|
|
@@ -21,11 +25,9 @@ function instanceOfErrorDetail(value) {
|
|
|
21
25
|
return false;
|
|
22
26
|
return true;
|
|
23
27
|
}
|
|
24
|
-
exports.instanceOfErrorDetail = instanceOfErrorDetail;
|
|
25
28
|
function ErrorDetailFromJSON(json) {
|
|
26
29
|
return ErrorDetailFromJSONTyped(json, false);
|
|
27
30
|
}
|
|
28
|
-
exports.ErrorDetailFromJSON = ErrorDetailFromJSON;
|
|
29
31
|
function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
32
|
if (json == null) {
|
|
31
33
|
return json;
|
|
@@ -36,11 +38,9 @@ function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
38
|
'detail': json['detail'],
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
|
-
exports.ErrorDetailFromJSONTyped = ErrorDetailFromJSONTyped;
|
|
40
41
|
function ErrorDetailToJSON(json) {
|
|
41
42
|
return ErrorDetailToJSONTyped(json, false);
|
|
42
43
|
}
|
|
43
|
-
exports.ErrorDetailToJSON = ErrorDetailToJSON;
|
|
44
44
|
function ErrorDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
45
|
if (value == null) {
|
|
46
46
|
return value;
|
|
@@ -51,4 +51,3 @@ function ErrorDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
51
|
'detail': value['detail'],
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
exports.ErrorDetailToJSONTyped = ErrorDetailToJSONTyped;
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.instanceOfErrorResponse = instanceOfErrorResponse;
|
|
12
|
+
exports.ErrorResponseFromJSON = ErrorResponseFromJSON;
|
|
13
|
+
exports.ErrorResponseFromJSONTyped = ErrorResponseFromJSONTyped;
|
|
14
|
+
exports.ErrorResponseToJSON = ErrorResponseToJSON;
|
|
15
|
+
exports.ErrorResponseToJSONTyped = ErrorResponseToJSONTyped;
|
|
12
16
|
const ErrorDetail_1 = require("./ErrorDetail");
|
|
13
17
|
/**
|
|
14
18
|
* Check if a given object implements the ErrorResponse interface.
|
|
@@ -18,11 +22,9 @@ function instanceOfErrorResponse(value) {
|
|
|
18
22
|
return false;
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
|
-
exports.instanceOfErrorResponse = instanceOfErrorResponse;
|
|
22
25
|
function ErrorResponseFromJSON(json) {
|
|
23
26
|
return ErrorResponseFromJSONTyped(json, false);
|
|
24
27
|
}
|
|
25
|
-
exports.ErrorResponseFromJSON = ErrorResponseFromJSON;
|
|
26
28
|
function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
29
|
if (json == null) {
|
|
28
30
|
return json;
|
|
@@ -31,11 +33,9 @@ function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
33
|
'error': (0, ErrorDetail_1.ErrorDetailFromJSON)(json['error']),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
|
-
exports.ErrorResponseFromJSONTyped = ErrorResponseFromJSONTyped;
|
|
35
36
|
function ErrorResponseToJSON(json) {
|
|
36
37
|
return ErrorResponseToJSONTyped(json, false);
|
|
37
38
|
}
|
|
38
|
-
exports.ErrorResponseToJSON = ErrorResponseToJSON;
|
|
39
39
|
function ErrorResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
@@ -44,4 +44,3 @@ function ErrorResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
44
|
'error': (0, ErrorDetail_1.ErrorDetailToJSON)(value['error']),
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
exports.ErrorResponseToJSONTyped = ErrorResponseToJSONTyped;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 ExistingCategory
|
|
11
|
+
*/
|
|
12
|
+
export interface ExistingCategory {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof ExistingCategory
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ExistingCategory
|
|
23
|
+
*/
|
|
24
|
+
note?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ExistingCategory
|
|
29
|
+
*/
|
|
30
|
+
category_group_id?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The goal target amount in milliunits format. If value is specified and goal has not already been configured for category, a monthly 'Needed for Spending' goal will be created for the category with this target amount.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ExistingCategory
|
|
35
|
+
*/
|
|
36
|
+
goal_target?: number;
|
|
37
|
+
/**
|
|
38
|
+
* The goal target date in ISO format (e.g. 2016-12-01).
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ExistingCategory
|
|
41
|
+
*/
|
|
42
|
+
goal_target_date?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ExistingCategory interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfExistingCategory(value: object): value is ExistingCategory;
|
|
48
|
+
export declare function ExistingCategoryFromJSON(json: any): ExistingCategory;
|
|
49
|
+
export declare function ExistingCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExistingCategory;
|
|
50
|
+
export declare function ExistingCategoryToJSON(json: any): ExistingCategory;
|
|
51
|
+
export declare function ExistingCategoryToJSONTyped(value?: ExistingCategory | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfExistingCategory = instanceOfExistingCategory;
|
|
12
|
+
exports.ExistingCategoryFromJSON = ExistingCategoryFromJSON;
|
|
13
|
+
exports.ExistingCategoryFromJSONTyped = ExistingCategoryFromJSONTyped;
|
|
14
|
+
exports.ExistingCategoryToJSON = ExistingCategoryToJSON;
|
|
15
|
+
exports.ExistingCategoryToJSONTyped = ExistingCategoryToJSONTyped;
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the ExistingCategory interface.
|
|
18
|
+
*/
|
|
19
|
+
function instanceOfExistingCategory(value) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
function ExistingCategoryFromJSON(json) {
|
|
23
|
+
return ExistingCategoryFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
function ExistingCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
31
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
32
|
+
'category_group_id': json['category_group_id'] == null ? undefined : json['category_group_id'],
|
|
33
|
+
'goal_target': json['goal_target'] == null ? undefined : json['goal_target'],
|
|
34
|
+
'goal_target_date': json['goal_target_date'] == null ? undefined : json['goal_target_date'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function ExistingCategoryToJSON(json) {
|
|
38
|
+
return ExistingCategoryToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ExistingCategoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'name': value['name'],
|
|
46
|
+
'note': value['note'],
|
|
47
|
+
'category_group_id': value['category_group_id'],
|
|
48
|
+
'goal_target': value['goal_target'],
|
|
49
|
+
'goal_target_date': value['goal_target_date'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -36,25 +36,25 @@ export interface ExistingTransaction {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof ExistingTransaction
|
|
38
38
|
*/
|
|
39
|
-
payee_id?: string
|
|
39
|
+
payee_id?: string;
|
|
40
40
|
/**
|
|
41
41
|
* The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee.
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof ExistingTransaction
|
|
44
44
|
*/
|
|
45
|
-
payee_name?: string
|
|
45
|
+
payee_name?: string;
|
|
46
46
|
/**
|
|
47
47
|
* The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied.
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof ExistingTransaction
|
|
50
50
|
*/
|
|
51
|
-
category_id?: string
|
|
51
|
+
category_id?: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof ExistingTransaction
|
|
56
56
|
*/
|
|
57
|
-
memo?: string
|
|
57
|
+
memo?: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {TransactionClearedStatus}
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.instanceOfExistingTransaction = instanceOfExistingTransaction;
|
|
12
|
+
exports.ExistingTransactionFromJSON = ExistingTransactionFromJSON;
|
|
13
|
+
exports.ExistingTransactionFromJSONTyped = ExistingTransactionFromJSONTyped;
|
|
14
|
+
exports.ExistingTransactionToJSON = ExistingTransactionToJSON;
|
|
15
|
+
exports.ExistingTransactionToJSONTyped = ExistingTransactionToJSONTyped;
|
|
12
16
|
const TransactionFlagColor_1 = require("./TransactionFlagColor");
|
|
13
17
|
const TransactionClearedStatus_1 = require("./TransactionClearedStatus");
|
|
14
18
|
const SaveSubTransaction_1 = require("./SaveSubTransaction");
|
|
@@ -18,11 +22,9 @@ const SaveSubTransaction_1 = require("./SaveSubTransaction");
|
|
|
18
22
|
function instanceOfExistingTransaction(value) {
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
|
-
exports.instanceOfExistingTransaction = instanceOfExistingTransaction;
|
|
22
25
|
function ExistingTransactionFromJSON(json) {
|
|
23
26
|
return ExistingTransactionFromJSONTyped(json, false);
|
|
24
27
|
}
|
|
25
|
-
exports.ExistingTransactionFromJSON = ExistingTransactionFromJSON;
|
|
26
28
|
function ExistingTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
29
|
if (json == null) {
|
|
28
30
|
return json;
|
|
@@ -41,11 +43,9 @@ function ExistingTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
43
|
'subtransactions': json['subtransactions'] == null ? undefined : (json['subtransactions'].map(SaveSubTransaction_1.SaveSubTransactionFromJSON)),
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
|
-
exports.ExistingTransactionFromJSONTyped = ExistingTransactionFromJSONTyped;
|
|
45
46
|
function ExistingTransactionToJSON(json) {
|
|
46
47
|
return ExistingTransactionToJSONTyped(json, false);
|
|
47
48
|
}
|
|
48
|
-
exports.ExistingTransactionToJSON = ExistingTransactionToJSON;
|
|
49
49
|
function ExistingTransactionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
50
|
if (value == null) {
|
|
51
51
|
return value;
|
|
@@ -64,4 +64,3 @@ function ExistingTransactionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
64
|
'subtransactions': value['subtransactions'] == null ? undefined : (value['subtransactions'].map(SaveSubTransaction_1.SaveSubTransactionToJSON)),
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
exports.ExistingTransactionToJSONTyped = ExistingTransactionToJSONTyped;
|
|
@@ -35,7 +35,7 @@ export interface HybridTransaction {
|
|
|
35
35
|
* @type {string}
|
|
36
36
|
* @memberof HybridTransaction
|
|
37
37
|
*/
|
|
38
|
-
memo?: string
|
|
38
|
+
memo?: string;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* @type {TransactionClearedStatus}
|
|
@@ -59,7 +59,7 @@ export interface HybridTransaction {
|
|
|
59
59
|
* @type {string}
|
|
60
60
|
* @memberof HybridTransaction
|
|
61
61
|
*/
|
|
62
|
-
flag_name?: string
|
|
62
|
+
flag_name?: string;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @type {string}
|
|
@@ -71,52 +71,52 @@ export interface HybridTransaction {
|
|
|
71
71
|
* @type {string}
|
|
72
72
|
* @memberof HybridTransaction
|
|
73
73
|
*/
|
|
74
|
-
payee_id?: string
|
|
74
|
+
payee_id?: string;
|
|
75
75
|
/**
|
|
76
76
|
*
|
|
77
77
|
* @type {string}
|
|
78
78
|
* @memberof HybridTransaction
|
|
79
79
|
*/
|
|
80
|
-
category_id?: string
|
|
80
|
+
category_id?: string;
|
|
81
81
|
/**
|
|
82
82
|
* If a transfer transaction, the account to which it transfers
|
|
83
83
|
* @type {string}
|
|
84
84
|
* @memberof HybridTransaction
|
|
85
85
|
*/
|
|
86
|
-
transfer_account_id?: string
|
|
86
|
+
transfer_account_id?: string;
|
|
87
87
|
/**
|
|
88
88
|
* If a transfer transaction, the id of transaction on the other side of the transfer
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof HybridTransaction
|
|
91
91
|
*/
|
|
92
|
-
transfer_transaction_id?: string
|
|
92
|
+
transfer_transaction_id?: string;
|
|
93
93
|
/**
|
|
94
94
|
* If transaction is matched, the id of the matched transaction
|
|
95
95
|
* @type {string}
|
|
96
96
|
* @memberof HybridTransaction
|
|
97
97
|
*/
|
|
98
|
-
matched_transaction_id?: string
|
|
98
|
+
matched_transaction_id?: string;
|
|
99
99
|
/**
|
|
100
100
|
* If the transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'.
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof HybridTransaction
|
|
103
103
|
*/
|
|
104
|
-
import_id?: string
|
|
104
|
+
import_id?: string;
|
|
105
105
|
/**
|
|
106
106
|
* If the transaction was imported, the payee name that was used when importing and before applying any payee rename rules
|
|
107
107
|
* @type {string}
|
|
108
108
|
* @memberof HybridTransaction
|
|
109
109
|
*/
|
|
110
|
-
import_payee_name?: string
|
|
110
|
+
import_payee_name?: string;
|
|
111
111
|
/**
|
|
112
112
|
* If the transaction was imported, the original payee name as it appeared on the statement
|
|
113
113
|
* @type {string}
|
|
114
114
|
* @memberof HybridTransaction
|
|
115
115
|
*/
|
|
116
|
-
import_payee_name_original?: string
|
|
116
|
+
import_payee_name_original?: string;
|
|
117
117
|
/**
|
|
118
118
|
* If the transaction is a debt/loan account transaction, the type of transaction
|
|
119
|
-
* @type {
|
|
119
|
+
* @type {HybridTransactionDebtTransactionTypeEnum}
|
|
120
120
|
* @memberof HybridTransaction
|
|
121
121
|
*/
|
|
122
122
|
debt_transaction_type?: HybridTransactionDebtTransactionTypeEnum | null;
|
|
@@ -128,7 +128,7 @@ export interface HybridTransaction {
|
|
|
128
128
|
deleted: boolean;
|
|
129
129
|
/**
|
|
130
130
|
* Whether the hybrid transaction represents a regular transaction or a subtransaction
|
|
131
|
-
* @type {
|
|
131
|
+
* @type {HybridTransactionTypeEnum}
|
|
132
132
|
* @memberof HybridTransaction
|
|
133
133
|
*/
|
|
134
134
|
type: HybridTransactionTypeEnum;
|
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.HybridTransactionTypeEnum = exports.HybridTransactionDebtTransactionTypeEnum = void 0;
|
|
12
|
+
exports.instanceOfHybridTransaction = instanceOfHybridTransaction;
|
|
13
|
+
exports.HybridTransactionFromJSON = HybridTransactionFromJSON;
|
|
14
|
+
exports.HybridTransactionFromJSONTyped = HybridTransactionFromJSONTyped;
|
|
15
|
+
exports.HybridTransactionToJSON = HybridTransactionToJSON;
|
|
16
|
+
exports.HybridTransactionToJSONTyped = HybridTransactionToJSONTyped;
|
|
12
17
|
const TransactionFlagColor_1 = require("./TransactionFlagColor");
|
|
13
18
|
const TransactionClearedStatus_1 = require("./TransactionClearedStatus");
|
|
14
19
|
/**
|
|
@@ -55,11 +60,9 @@ function instanceOfHybridTransaction(value) {
|
|
|
55
60
|
return false;
|
|
56
61
|
return true;
|
|
57
62
|
}
|
|
58
|
-
exports.instanceOfHybridTransaction = instanceOfHybridTransaction;
|
|
59
63
|
function HybridTransactionFromJSON(json) {
|
|
60
64
|
return HybridTransactionFromJSONTyped(json, false);
|
|
61
65
|
}
|
|
62
|
-
exports.HybridTransactionFromJSON = HybridTransactionFromJSON;
|
|
63
66
|
function HybridTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
67
|
if (json == null) {
|
|
65
68
|
return json;
|
|
@@ -91,11 +94,9 @@ function HybridTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
91
94
|
'category_name': json['category_name'] == null ? undefined : json['category_name'],
|
|
92
95
|
};
|
|
93
96
|
}
|
|
94
|
-
exports.HybridTransactionFromJSONTyped = HybridTransactionFromJSONTyped;
|
|
95
97
|
function HybridTransactionToJSON(json) {
|
|
96
98
|
return HybridTransactionToJSONTyped(json, false);
|
|
97
99
|
}
|
|
98
|
-
exports.HybridTransactionToJSON = HybridTransactionToJSON;
|
|
99
100
|
function HybridTransactionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
100
101
|
if (value == null) {
|
|
101
102
|
return value;
|
|
@@ -127,4 +128,3 @@ function HybridTransactionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
127
128
|
'category_name': value['category_name'],
|
|
128
129
|
};
|
|
129
130
|
}
|
|
130
|
-
exports.HybridTransactionToJSONTyped = HybridTransactionToJSONTyped;
|
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.HybridTransactionAllOfTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfHybridTransactionAllOf = instanceOfHybridTransactionAllOf;
|
|
18
|
+
exports.HybridTransactionAllOfFromJSON = HybridTransactionAllOfFromJSON;
|
|
19
|
+
exports.HybridTransactionAllOfFromJSONTyped = HybridTransactionAllOfFromJSONTyped;
|
|
20
|
+
exports.HybridTransactionAllOfToJSON = HybridTransactionAllOfToJSON;
|
|
17
21
|
const runtime_1 = require("../runtime");
|
|
18
22
|
/**
|
|
19
23
|
* @export
|
|
@@ -31,11 +35,9 @@ function instanceOfHybridTransactionAllOf(value) {
|
|
|
31
35
|
isInstance = isInstance && "account_name" in value;
|
|
32
36
|
return isInstance;
|
|
33
37
|
}
|
|
34
|
-
exports.instanceOfHybridTransactionAllOf = instanceOfHybridTransactionAllOf;
|
|
35
38
|
function HybridTransactionAllOfFromJSON(json) {
|
|
36
39
|
return HybridTransactionAllOfFromJSONTyped(json, false);
|
|
37
40
|
}
|
|
38
|
-
exports.HybridTransactionAllOfFromJSON = HybridTransactionAllOfFromJSON;
|
|
39
41
|
function HybridTransactionAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
42
|
if ((json === undefined) || (json === null)) {
|
|
41
43
|
return json;
|
|
@@ -48,7 +50,6 @@ function HybridTransactionAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
'category_name': !(0, runtime_1.exists)(json, 'category_name') ? undefined : json['category_name'],
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
|
-
exports.HybridTransactionAllOfFromJSONTyped = HybridTransactionAllOfFromJSONTyped;
|
|
52
53
|
function HybridTransactionAllOfToJSON(value) {
|
|
53
54
|
if (value === undefined) {
|
|
54
55
|
return undefined;
|
|
@@ -64,4 +65,3 @@ function HybridTransactionAllOfToJSON(value) {
|
|
|
64
65
|
'category_name': value.category_name,
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
|
-
exports.HybridTransactionAllOfToJSON = HybridTransactionAllOfToJSON;
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.instanceOfHybridTransactionsResponse = instanceOfHybridTransactionsResponse;
|
|
12
|
+
exports.HybridTransactionsResponseFromJSON = HybridTransactionsResponseFromJSON;
|
|
13
|
+
exports.HybridTransactionsResponseFromJSONTyped = HybridTransactionsResponseFromJSONTyped;
|
|
14
|
+
exports.HybridTransactionsResponseToJSON = HybridTransactionsResponseToJSON;
|
|
15
|
+
exports.HybridTransactionsResponseToJSONTyped = HybridTransactionsResponseToJSONTyped;
|
|
12
16
|
const HybridTransactionsResponseData_1 = require("./HybridTransactionsResponseData");
|
|
13
17
|
/**
|
|
14
18
|
* Check if a given object implements the HybridTransactionsResponse interface.
|
|
@@ -18,11 +22,9 @@ function instanceOfHybridTransactionsResponse(value) {
|
|
|
18
22
|
return false;
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
|
-
exports.instanceOfHybridTransactionsResponse = instanceOfHybridTransactionsResponse;
|
|
22
25
|
function HybridTransactionsResponseFromJSON(json) {
|
|
23
26
|
return HybridTransactionsResponseFromJSONTyped(json, false);
|
|
24
27
|
}
|
|
25
|
-
exports.HybridTransactionsResponseFromJSON = HybridTransactionsResponseFromJSON;
|
|
26
28
|
function HybridTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
29
|
if (json == null) {
|
|
28
30
|
return json;
|
|
@@ -31,11 +33,9 @@ function HybridTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
33
|
'data': (0, HybridTransactionsResponseData_1.HybridTransactionsResponseDataFromJSON)(json['data']),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
|
-
exports.HybridTransactionsResponseFromJSONTyped = HybridTransactionsResponseFromJSONTyped;
|
|
35
36
|
function HybridTransactionsResponseToJSON(json) {
|
|
36
37
|
return HybridTransactionsResponseToJSONTyped(json, false);
|
|
37
38
|
}
|
|
38
|
-
exports.HybridTransactionsResponseToJSON = HybridTransactionsResponseToJSON;
|
|
39
39
|
function HybridTransactionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
@@ -44,4 +44,3 @@ function HybridTransactionsResponseToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
44
44
|
'data': (0, HybridTransactionsResponseData_1.HybridTransactionsResponseDataToJSON)(value['data']),
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
exports.HybridTransactionsResponseToJSONTyped = HybridTransactionsResponseToJSONTyped;
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.instanceOfHybridTransactionsResponseData = instanceOfHybridTransactionsResponseData;
|
|
12
|
+
exports.HybridTransactionsResponseDataFromJSON = HybridTransactionsResponseDataFromJSON;
|
|
13
|
+
exports.HybridTransactionsResponseDataFromJSONTyped = HybridTransactionsResponseDataFromJSONTyped;
|
|
14
|
+
exports.HybridTransactionsResponseDataToJSON = HybridTransactionsResponseDataToJSON;
|
|
15
|
+
exports.HybridTransactionsResponseDataToJSONTyped = HybridTransactionsResponseDataToJSONTyped;
|
|
12
16
|
const HybridTransaction_1 = require("./HybridTransaction");
|
|
13
17
|
/**
|
|
14
18
|
* Check if a given object implements the HybridTransactionsResponseData interface.
|
|
@@ -18,11 +22,9 @@ function instanceOfHybridTransactionsResponseData(value) {
|
|
|
18
22
|
return false;
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
|
-
exports.instanceOfHybridTransactionsResponseData = instanceOfHybridTransactionsResponseData;
|
|
22
25
|
function HybridTransactionsResponseDataFromJSON(json) {
|
|
23
26
|
return HybridTransactionsResponseDataFromJSONTyped(json, false);
|
|
24
27
|
}
|
|
25
|
-
exports.HybridTransactionsResponseDataFromJSON = HybridTransactionsResponseDataFromJSON;
|
|
26
28
|
function HybridTransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
29
|
if (json == null) {
|
|
28
30
|
return json;
|
|
@@ -32,11 +34,9 @@ function HybridTransactionsResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
32
34
|
'server_knowledge': json['server_knowledge'] == null ? undefined : json['server_knowledge'],
|
|
33
35
|
};
|
|
34
36
|
}
|
|
35
|
-
exports.HybridTransactionsResponseDataFromJSONTyped = HybridTransactionsResponseDataFromJSONTyped;
|
|
36
37
|
function HybridTransactionsResponseDataToJSON(json) {
|
|
37
38
|
return HybridTransactionsResponseDataToJSONTyped(json, false);
|
|
38
39
|
}
|
|
39
|
-
exports.HybridTransactionsResponseDataToJSON = HybridTransactionsResponseDataToJSON;
|
|
40
40
|
function HybridTransactionsResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
41
|
if (value == null) {
|
|
42
42
|
return value;
|
|
@@ -46,4 +46,3 @@ function HybridTransactionsResponseDataToJSONTyped(value, ignoreDiscriminator =
|
|
|
46
46
|
'server_knowledge': value['server_knowledge'],
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
exports.HybridTransactionsResponseDataToJSONTyped = HybridTransactionsResponseDataToJSONTyped;
|