ynab 2.9.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 +51 -43
- 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 +16 -4
- package/dist/esm/models/Category.js +4 -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/TransactionFlagColor.d.ts +1 -0
- package/dist/esm/models/TransactionFlagColor.js +2 -1
- package/dist/esm/models/TransactionResponseData.d.ts +6 -0
- package/dist/esm/models/TransactionResponseData.js +4 -0
- 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 +16 -4
- package/dist/models/Category.js +10 -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.d.ts +1 -0
- package/dist/models/TransactionFlagColor.js +8 -7
- package/dist/models/TransactionResponse.js +5 -6
- package/dist/models/TransactionResponseData.d.ts +6 -0
- package/dist/models/TransactionResponseData.js +9 -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
|
@@ -19,117 +19,117 @@ import type { CategoryGroup } from './CategoryGroup';
|
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
* @export
|
|
22
|
-
* @interface
|
|
22
|
+
* @interface PlanDetail
|
|
23
23
|
*/
|
|
24
|
-
export interface
|
|
24
|
+
export interface PlanDetail {
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
28
|
-
* @memberof
|
|
28
|
+
* @memberof PlanDetail
|
|
29
29
|
*/
|
|
30
30
|
id: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {string}
|
|
34
|
-
* @memberof
|
|
34
|
+
* @memberof PlanDetail
|
|
35
35
|
*/
|
|
36
36
|
name: string;
|
|
37
37
|
/**
|
|
38
|
-
* The last time any changes were made to the
|
|
38
|
+
* The last time any changes were made to the plan from either a web or mobile client
|
|
39
39
|
* @type {string}
|
|
40
|
-
* @memberof
|
|
40
|
+
* @memberof PlanDetail
|
|
41
41
|
*/
|
|
42
42
|
last_modified_on?: string;
|
|
43
43
|
/**
|
|
44
|
-
* The earliest
|
|
44
|
+
* The earliest plan month
|
|
45
45
|
* @type {string}
|
|
46
|
-
* @memberof
|
|
46
|
+
* @memberof PlanDetail
|
|
47
47
|
*/
|
|
48
48
|
first_month?: string;
|
|
49
49
|
/**
|
|
50
|
-
* The latest
|
|
50
|
+
* The latest plan month
|
|
51
51
|
* @type {string}
|
|
52
|
-
* @memberof
|
|
52
|
+
* @memberof PlanDetail
|
|
53
53
|
*/
|
|
54
54
|
last_month?: string;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {DateFormat}
|
|
58
|
-
* @memberof
|
|
58
|
+
* @memberof PlanDetail
|
|
59
59
|
*/
|
|
60
|
-
date_format?: DateFormat
|
|
60
|
+
date_format?: DateFormat;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {CurrencyFormat}
|
|
64
|
-
* @memberof
|
|
64
|
+
* @memberof PlanDetail
|
|
65
65
|
*/
|
|
66
|
-
currency_format?: CurrencyFormat
|
|
66
|
+
currency_format?: CurrencyFormat;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {Array<Account>}
|
|
70
|
-
* @memberof
|
|
70
|
+
* @memberof PlanDetail
|
|
71
71
|
*/
|
|
72
72
|
accounts?: Array<Account>;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {Array<Payee>}
|
|
76
|
-
* @memberof
|
|
76
|
+
* @memberof PlanDetail
|
|
77
77
|
*/
|
|
78
78
|
payees?: Array<Payee>;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
81
|
* @type {Array<PayeeLocation>}
|
|
82
|
-
* @memberof
|
|
82
|
+
* @memberof PlanDetail
|
|
83
83
|
*/
|
|
84
84
|
payee_locations?: Array<PayeeLocation>;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {Array<CategoryGroup>}
|
|
88
|
-
* @memberof
|
|
88
|
+
* @memberof PlanDetail
|
|
89
89
|
*/
|
|
90
90
|
category_groups?: Array<CategoryGroup>;
|
|
91
91
|
/**
|
|
92
92
|
*
|
|
93
93
|
* @type {Array<Category>}
|
|
94
|
-
* @memberof
|
|
94
|
+
* @memberof PlanDetail
|
|
95
95
|
*/
|
|
96
96
|
categories?: Array<Category>;
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
99
|
* @type {Array<MonthDetail>}
|
|
100
|
-
* @memberof
|
|
100
|
+
* @memberof PlanDetail
|
|
101
101
|
*/
|
|
102
102
|
months?: Array<MonthDetail>;
|
|
103
103
|
/**
|
|
104
104
|
*
|
|
105
105
|
* @type {Array<TransactionSummary>}
|
|
106
|
-
* @memberof
|
|
106
|
+
* @memberof PlanDetail
|
|
107
107
|
*/
|
|
108
108
|
transactions?: Array<TransactionSummary>;
|
|
109
109
|
/**
|
|
110
110
|
*
|
|
111
111
|
* @type {Array<SubTransaction>}
|
|
112
|
-
* @memberof
|
|
112
|
+
* @memberof PlanDetail
|
|
113
113
|
*/
|
|
114
114
|
subtransactions?: Array<SubTransaction>;
|
|
115
115
|
/**
|
|
116
116
|
*
|
|
117
117
|
* @type {Array<ScheduledTransactionSummary>}
|
|
118
|
-
* @memberof
|
|
118
|
+
* @memberof PlanDetail
|
|
119
119
|
*/
|
|
120
120
|
scheduled_transactions?: Array<ScheduledTransactionSummary>;
|
|
121
121
|
/**
|
|
122
122
|
*
|
|
123
123
|
* @type {Array<ScheduledSubTransaction>}
|
|
124
|
-
* @memberof
|
|
124
|
+
* @memberof PlanDetail
|
|
125
125
|
*/
|
|
126
126
|
scheduled_subtransactions?: Array<ScheduledSubTransaction>;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
|
-
* Check if a given object implements the
|
|
129
|
+
* Check if a given object implements the PlanDetail interface.
|
|
130
130
|
*/
|
|
131
|
-
export declare function
|
|
132
|
-
export declare function
|
|
133
|
-
export declare function
|
|
134
|
-
export declare function
|
|
135
|
-
export declare function
|
|
131
|
+
export declare function instanceOfPlanDetail(value: object): value is PlanDetail;
|
|
132
|
+
export declare function PlanDetailFromJSON(json: any): PlanDetail;
|
|
133
|
+
export declare function PlanDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanDetail;
|
|
134
|
+
export declare function PlanDetailToJSON(json: any): PlanDetail;
|
|
135
|
+
export declare function PlanDetailToJSONTyped(value?: PlanDetail | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -19,19 +19,19 @@ import { ScheduledSubTransactionFromJSON, ScheduledSubTransactionToJSON, } from
|
|
|
19
19
|
import { TransactionSummaryFromJSON, TransactionSummaryToJSON, } from './TransactionSummary';
|
|
20
20
|
import { CategoryGroupFromJSON, CategoryGroupToJSON, } from './CategoryGroup';
|
|
21
21
|
/**
|
|
22
|
-
* Check if a given object implements the
|
|
22
|
+
* Check if a given object implements the PlanDetail interface.
|
|
23
23
|
*/
|
|
24
|
-
export function
|
|
24
|
+
export function instanceOfPlanDetail(value) {
|
|
25
25
|
if (!('id' in value) || value['id'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
if (!('name' in value) || value['name'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
return true;
|
|
30
30
|
}
|
|
31
|
-
export function
|
|
32
|
-
return
|
|
31
|
+
export function PlanDetailFromJSON(json) {
|
|
32
|
+
return PlanDetailFromJSONTyped(json, false);
|
|
33
33
|
}
|
|
34
|
-
export function
|
|
34
|
+
export function PlanDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
35
|
if (json == null) {
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
@@ -55,10 +55,10 @@ export function BudgetDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'scheduled_subtransactions': json['scheduled_subtransactions'] == null ? undefined : (json['scheduled_subtransactions'].map(ScheduledSubTransactionFromJSON)),
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
export function
|
|
59
|
-
return
|
|
58
|
+
export function PlanDetailToJSON(json) {
|
|
59
|
+
return PlanDetailToJSONTyped(json, false);
|
|
60
60
|
}
|
|
61
|
-
export function
|
|
61
|
+
export function PlanDetailToJSONTyped(value, ignoreDiscriminator) {
|
|
62
62
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
63
|
if (value == null) {
|
|
64
64
|
return value;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { PlanDetailResponseData } from './PlanDetailResponseData';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PlanDetailResponse
|
|
12
|
+
*/
|
|
13
|
+
export interface PlanDetailResponse {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {PlanDetailResponseData}
|
|
17
|
+
* @memberof PlanDetailResponse
|
|
18
|
+
*/
|
|
19
|
+
data: PlanDetailResponseData;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PlanDetailResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export declare function instanceOfPlanDetailResponse(value: object): value is PlanDetailResponse;
|
|
25
|
+
export declare function PlanDetailResponseFromJSON(json: any): PlanDetailResponse;
|
|
26
|
+
export declare function PlanDetailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanDetailResponse;
|
|
27
|
+
export declare function PlanDetailResponseToJSON(json: any): PlanDetailResponse;
|
|
28
|
+
export declare function PlanDetailResponseToJSONTyped(value?: PlanDetailResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* YNAB API Endpoints
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
*/
|
|
9
|
+
import { PlanDetailResponseDataFromJSON, PlanDetailResponseDataToJSON, } from './PlanDetailResponseData';
|
|
10
|
+
/**
|
|
11
|
+
* Check if a given object implements the PlanDetailResponse interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfPlanDetailResponse(value) {
|
|
14
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
export function PlanDetailResponseFromJSON(json) {
|
|
19
|
+
return PlanDetailResponseFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
export function PlanDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if (json == null) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'data': PlanDetailResponseDataFromJSON(json['data']),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export function PlanDetailResponseToJSON(json) {
|
|
30
|
+
return PlanDetailResponseToJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function PlanDetailResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
33
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
34
|
+
if (value == null) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'data': PlanDetailResponseDataToJSON(value['data']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { PlanDetail } from './PlanDetail';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PlanDetailResponseData
|
|
12
|
+
*/
|
|
13
|
+
export interface PlanDetailResponseData {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {PlanDetail}
|
|
17
|
+
* @memberof PlanDetailResponseData
|
|
18
|
+
*/
|
|
19
|
+
budget: PlanDetail;
|
|
20
|
+
/**
|
|
21
|
+
* The knowledge of the server
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof PlanDetailResponseData
|
|
24
|
+
*/
|
|
25
|
+
server_knowledge: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the PlanDetailResponseData interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfPlanDetailResponseData(value: object): value is PlanDetailResponseData;
|
|
31
|
+
export declare function PlanDetailResponseDataFromJSON(json: any): PlanDetailResponseData;
|
|
32
|
+
export declare function PlanDetailResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanDetailResponseData;
|
|
33
|
+
export declare function PlanDetailResponseDataToJSON(json: any): PlanDetailResponseData;
|
|
34
|
+
export declare function PlanDetailResponseDataToJSONTyped(value?: PlanDetailResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -6,39 +6,39 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { PlanDetailFromJSON, PlanDetailToJSON, } from './PlanDetail';
|
|
10
10
|
/**
|
|
11
|
-
* Check if a given object implements the
|
|
11
|
+
* Check if a given object implements the PlanDetailResponseData interface.
|
|
12
12
|
*/
|
|
13
|
-
export function
|
|
13
|
+
export function instanceOfPlanDetailResponseData(value) {
|
|
14
14
|
if (!('budget' in value) || value['budget'] === undefined)
|
|
15
15
|
return false;
|
|
16
16
|
if (!('server_knowledge' in value) || value['server_knowledge'] === undefined)
|
|
17
17
|
return false;
|
|
18
18
|
return true;
|
|
19
19
|
}
|
|
20
|
-
export function
|
|
21
|
-
return
|
|
20
|
+
export function PlanDetailResponseDataFromJSON(json) {
|
|
21
|
+
return PlanDetailResponseDataFromJSONTyped(json, false);
|
|
22
22
|
}
|
|
23
|
-
export function
|
|
23
|
+
export function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
24
|
if (json == null) {
|
|
25
25
|
return json;
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
|
-
'budget':
|
|
28
|
+
'budget': PlanDetailFromJSON(json['budget']),
|
|
29
29
|
'server_knowledge': json['server_knowledge'],
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
export function
|
|
33
|
-
return
|
|
32
|
+
export function PlanDetailResponseDataToJSON(json) {
|
|
33
|
+
return PlanDetailResponseDataToJSONTyped(json, false);
|
|
34
34
|
}
|
|
35
|
-
export function
|
|
35
|
+
export function PlanDetailResponseDataToJSONTyped(value, ignoreDiscriminator) {
|
|
36
36
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
37
37
|
if (value == null) {
|
|
38
38
|
return value;
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
|
-
'budget':
|
|
41
|
+
'budget': PlanDetailToJSON(value['budget']),
|
|
42
42
|
'server_knowledge': value['server_knowledge'],
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { CurrencyFormat } from './CurrencyFormat';
|
|
8
|
+
import type { DateFormat } from './DateFormat';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface PlanSettings
|
|
13
|
+
*/
|
|
14
|
+
export interface PlanSettings {
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @type {DateFormat}
|
|
18
|
+
* @memberof PlanSettings
|
|
19
|
+
*/
|
|
20
|
+
date_format: DateFormat;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {CurrencyFormat}
|
|
24
|
+
* @memberof PlanSettings
|
|
25
|
+
*/
|
|
26
|
+
currency_format: CurrencyFormat;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the PlanSettings interface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function instanceOfPlanSettings(value: object): value is PlanSettings;
|
|
32
|
+
export declare function PlanSettingsFromJSON(json: any): PlanSettings;
|
|
33
|
+
export declare function PlanSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanSettings;
|
|
34
|
+
export declare function PlanSettingsToJSON(json: any): PlanSettings;
|
|
35
|
+
export declare function PlanSettingsToJSONTyped(value?: PlanSettings | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -9,19 +9,19 @@
|
|
|
9
9
|
import { CurrencyFormatFromJSON, CurrencyFormatToJSON, } from './CurrencyFormat';
|
|
10
10
|
import { DateFormatFromJSON, DateFormatToJSON, } from './DateFormat';
|
|
11
11
|
/**
|
|
12
|
-
* Check if a given object implements the
|
|
12
|
+
* Check if a given object implements the PlanSettings interface.
|
|
13
13
|
*/
|
|
14
|
-
export function
|
|
14
|
+
export function instanceOfPlanSettings(value) {
|
|
15
15
|
if (!('date_format' in value) || value['date_format'] === undefined)
|
|
16
16
|
return false;
|
|
17
17
|
if (!('currency_format' in value) || value['currency_format'] === undefined)
|
|
18
18
|
return false;
|
|
19
19
|
return true;
|
|
20
20
|
}
|
|
21
|
-
export function
|
|
22
|
-
return
|
|
21
|
+
export function PlanSettingsFromJSON(json) {
|
|
22
|
+
return PlanSettingsFromJSONTyped(json, false);
|
|
23
23
|
}
|
|
24
|
-
export function
|
|
24
|
+
export function PlanSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
25
|
if (json == null) {
|
|
26
26
|
return json;
|
|
27
27
|
}
|
|
@@ -30,10 +30,10 @@ export function BudgetSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
'currency_format': CurrencyFormatFromJSON(json['currency_format']),
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
export function
|
|
34
|
-
return
|
|
33
|
+
export function PlanSettingsToJSON(json) {
|
|
34
|
+
return PlanSettingsToJSONTyped(json, false);
|
|
35
35
|
}
|
|
36
|
-
export function
|
|
36
|
+
export function PlanSettingsToJSONTyped(value, ignoreDiscriminator) {
|
|
37
37
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
38
38
|
if (value == null) {
|
|
39
39
|
return value;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { PlanSettingsResponseData } from './PlanSettingsResponseData';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PlanSettingsResponse
|
|
12
|
+
*/
|
|
13
|
+
export interface PlanSettingsResponse {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {PlanSettingsResponseData}
|
|
17
|
+
* @memberof PlanSettingsResponse
|
|
18
|
+
*/
|
|
19
|
+
data: PlanSettingsResponseData;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PlanSettingsResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export declare function instanceOfPlanSettingsResponse(value: object): value is PlanSettingsResponse;
|
|
25
|
+
export declare function PlanSettingsResponseFromJSON(json: any): PlanSettingsResponse;
|
|
26
|
+
export declare function PlanSettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanSettingsResponse;
|
|
27
|
+
export declare function PlanSettingsResponseToJSON(json: any): PlanSettingsResponse;
|
|
28
|
+
export declare function PlanSettingsResponseToJSONTyped(value?: PlanSettingsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -6,35 +6,35 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { PlanSettingsResponseDataFromJSON, PlanSettingsResponseDataToJSON, } from './PlanSettingsResponseData';
|
|
10
10
|
/**
|
|
11
|
-
* Check if a given object implements the
|
|
11
|
+
* Check if a given object implements the PlanSettingsResponse interface.
|
|
12
12
|
*/
|
|
13
|
-
export function
|
|
13
|
+
export function instanceOfPlanSettingsResponse(value) {
|
|
14
14
|
if (!('data' in value) || value['data'] === undefined)
|
|
15
15
|
return false;
|
|
16
16
|
return true;
|
|
17
17
|
}
|
|
18
|
-
export function
|
|
19
|
-
return
|
|
18
|
+
export function PlanSettingsResponseFromJSON(json) {
|
|
19
|
+
return PlanSettingsResponseFromJSONTyped(json, false);
|
|
20
20
|
}
|
|
21
|
-
export function
|
|
21
|
+
export function PlanSettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
22
|
if (json == null) {
|
|
23
23
|
return json;
|
|
24
24
|
}
|
|
25
25
|
return {
|
|
26
|
-
'data':
|
|
26
|
+
'data': PlanSettingsResponseDataFromJSON(json['data']),
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
export function
|
|
30
|
-
return
|
|
29
|
+
export function PlanSettingsResponseToJSON(json) {
|
|
30
|
+
return PlanSettingsResponseToJSONTyped(json, false);
|
|
31
31
|
}
|
|
32
|
-
export function
|
|
32
|
+
export function PlanSettingsResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
33
33
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
34
34
|
if (value == null) {
|
|
35
35
|
return value;
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
|
-
'data':
|
|
38
|
+
'data': PlanSettingsResponseDataToJSON(value['data']),
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { PlanSettings } from './PlanSettings';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PlanSettingsResponseData
|
|
12
|
+
*/
|
|
13
|
+
export interface PlanSettingsResponseData {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {PlanSettings}
|
|
17
|
+
* @memberof PlanSettingsResponseData
|
|
18
|
+
*/
|
|
19
|
+
settings: PlanSettings;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PlanSettingsResponseData interface.
|
|
23
|
+
*/
|
|
24
|
+
export declare function instanceOfPlanSettingsResponseData(value: object): value is PlanSettingsResponseData;
|
|
25
|
+
export declare function PlanSettingsResponseDataFromJSON(json: any): PlanSettingsResponseData;
|
|
26
|
+
export declare function PlanSettingsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanSettingsResponseData;
|
|
27
|
+
export declare function PlanSettingsResponseDataToJSON(json: any): PlanSettingsResponseData;
|
|
28
|
+
export declare function PlanSettingsResponseDataToJSONTyped(value?: PlanSettingsResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* YNAB API Endpoints
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
*/
|
|
9
|
+
import { PlanSettingsFromJSON, PlanSettingsToJSON, } from './PlanSettings';
|
|
10
|
+
/**
|
|
11
|
+
* Check if a given object implements the PlanSettingsResponseData interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfPlanSettingsResponseData(value) {
|
|
14
|
+
if (!('settings' in value) || value['settings'] === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
export function PlanSettingsResponseDataFromJSON(json) {
|
|
19
|
+
return PlanSettingsResponseDataFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
export function PlanSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if (json == null) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'settings': PlanSettingsFromJSON(json['settings']),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export function PlanSettingsResponseDataToJSON(json) {
|
|
30
|
+
return PlanSettingsResponseDataToJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function PlanSettingsResponseDataToJSONTyped(value, ignoreDiscriminator) {
|
|
33
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
34
|
+
if (value == null) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'settings': PlanSettingsToJSON(value['settings']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { Account } from './Account';
|
|
8
|
+
import type { CurrencyFormat } from './CurrencyFormat';
|
|
9
|
+
import type { DateFormat } from './DateFormat';
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @export
|
|
13
|
+
* @interface PlanSummary
|
|
14
|
+
*/
|
|
15
|
+
export interface PlanSummary {
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @type {string}
|
|
19
|
+
* @memberof PlanSummary
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PlanSummary
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* The last time any changes were made to the plan from either a web or mobile client
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PlanSummary
|
|
32
|
+
*/
|
|
33
|
+
last_modified_on?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The earliest plan month
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PlanSummary
|
|
38
|
+
*/
|
|
39
|
+
first_month?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The latest plan month
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PlanSummary
|
|
44
|
+
*/
|
|
45
|
+
last_month?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {DateFormat}
|
|
49
|
+
* @memberof PlanSummary
|
|
50
|
+
*/
|
|
51
|
+
date_format?: DateFormat;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {CurrencyFormat}
|
|
55
|
+
* @memberof PlanSummary
|
|
56
|
+
*/
|
|
57
|
+
currency_format?: CurrencyFormat;
|
|
58
|
+
/**
|
|
59
|
+
* The plan accounts (only included if `include_accounts=true` specified as query parameter)
|
|
60
|
+
* @type {Array<Account>}
|
|
61
|
+
* @memberof PlanSummary
|
|
62
|
+
*/
|
|
63
|
+
accounts?: Array<Account>;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the PlanSummary interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfPlanSummary(value: object): value is PlanSummary;
|
|
69
|
+
export declare function PlanSummaryFromJSON(json: any): PlanSummary;
|
|
70
|
+
export declare function PlanSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanSummary;
|
|
71
|
+
export declare function PlanSummaryToJSON(json: any): PlanSummary;
|
|
72
|
+
export declare function PlanSummaryToJSONTyped(value?: PlanSummary | null, ignoreDiscriminator?: boolean): any;
|