ynab-api-cli 0.1.0__py3-none-any.whl
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.
- ynab_api_cli/__init__.py +3 -0
- ynab_api_cli/__main__.py +266 -0
- ynab_api_cli/cli.py +171 -0
- ynab_api_cli/compat.py +120 -0
- ynab_api_cli/config.py +110 -0
- ynab_api_cli/contract.py +197 -0
- ynab_api_cli/contract_testing.py +141 -0
- ynab_api_cli/development.py +269 -0
- ynab_api_cli/distribution.py +123 -0
- ynab_api_cli/exceptions.py +7 -0
- ynab_api_cli/generated/__init__.py +3 -0
- ynab_api_cli/generated/api/__init__.py +3 -0
- ynab_api_cli/generated/api/accounts/__init__.py +3 -0
- ynab_api_cli/generated/api/accounts/create_account.py +54 -0
- ynab_api_cli/generated/api/accounts/get_account_by_id.py +53 -0
- ynab_api_cli/generated/api/accounts/get_accounts.py +57 -0
- ynab_api_cli/generated/api/categories/__init__.py +3 -0
- ynab_api_cli/generated/api/categories/create_category.py +54 -0
- ynab_api_cli/generated/api/categories/create_category_group.py +58 -0
- ynab_api_cli/generated/api/categories/get_categories.py +57 -0
- ynab_api_cli/generated/api/categories/get_category_by_id.py +52 -0
- ynab_api_cli/generated/api/categories/get_month_category_by_id.py +58 -0
- ynab_api_cli/generated/api/categories/update_category.py +57 -0
- ynab_api_cli/generated/api/categories/update_category_group.py +63 -0
- ynab_api_cli/generated/api/categories/update_month_category.py +65 -0
- ynab_api_cli/generated/api/money_movements/__init__.py +3 -0
- ynab_api_cli/generated/api/money_movements/get_money_movement_groups.py +51 -0
- ynab_api_cli/generated/api/money_movements/get_money_movement_groups_by_month.py +57 -0
- ynab_api_cli/generated/api/money_movements/get_money_movements.py +51 -0
- ynab_api_cli/generated/api/money_movements/get_money_movements_by_month.py +57 -0
- ynab_api_cli/generated/api/months/__init__.py +3 -0
- ynab_api_cli/generated/api/months/get_plan_month.py +55 -0
- ynab_api_cli/generated/api/months/get_plan_months.py +59 -0
- ynab_api_cli/generated/api/payee_locations/__init__.py +3 -0
- ynab_api_cli/generated/api/payee_locations/get_payee_location_by_id.py +54 -0
- ynab_api_cli/generated/api/payee_locations/get_payee_locations.py +51 -0
- ynab_api_cli/generated/api/payee_locations/get_payee_locations_by_payee.py +54 -0
- ynab_api_cli/generated/api/payees/__init__.py +3 -0
- ynab_api_cli/generated/api/payees/create_payee.py +54 -0
- ynab_api_cli/generated/api/payees/get_payee_by_id.py +52 -0
- ynab_api_cli/generated/api/payees/get_payees.py +57 -0
- ynab_api_cli/generated/api/payees/update_payee.py +57 -0
- ynab_api_cli/generated/api/plans/__init__.py +3 -0
- ynab_api_cli/generated/api/plans/get_plan_by_id.py +57 -0
- ynab_api_cli/generated/api/plans/get_plan_settings_by_id.py +49 -0
- ynab_api_cli/generated/api/plans/get_plans.py +51 -0
- ynab_api_cli/generated/api/scheduled_transactions/__init__.py +3 -0
- ynab_api_cli/generated/api/scheduled_transactions/create_scheduled_transaction.py +58 -0
- ynab_api_cli/generated/api/scheduled_transactions/delete_scheduled_transaction.py +56 -0
- ynab_api_cli/generated/api/scheduled_transactions/get_scheduled_transaction_by_id.py +56 -0
- ynab_api_cli/generated/api/scheduled_transactions/get_scheduled_transactions.py +59 -0
- ynab_api_cli/generated/api/scheduled_transactions/update_scheduled_transaction.py +63 -0
- ynab_api_cli/generated/api/transactions/__init__.py +3 -0
- ynab_api_cli/generated/api/transactions/create_transaction.py +58 -0
- ynab_api_cli/generated/api/transactions/delete_transaction.py +54 -0
- ynab_api_cli/generated/api/transactions/get_transaction_by_id.py +54 -0
- ynab_api_cli/generated/api/transactions/get_transactions.py +80 -0
- ynab_api_cli/generated/api/transactions/get_transactions_by_account.py +87 -0
- ynab_api_cli/generated/api/transactions/get_transactions_by_category.py +89 -0
- ynab_api_cli/generated/api/transactions/get_transactions_by_month.py +87 -0
- ynab_api_cli/generated/api/transactions/get_transactions_by_payee.py +89 -0
- ynab_api_cli/generated/api/transactions/import_transactions.py +54 -0
- ynab_api_cli/generated/api/transactions/update_transaction.py +59 -0
- ynab_api_cli/generated/api/transactions/update_transactions.py +58 -0
- ynab_api_cli/generated/api/user/__init__.py +3 -0
- ynab_api_cli/generated/api/user/get_user.py +42 -0
- ynab_api_cli/generated/bindings.py +141 -0
- ynab_api_cli/generated/models/__init__.py +416 -0
- ynab_api_cli/generated/models/account.py +71 -0
- ynab_api_cli/generated/models/account_base.py +57 -0
- ynab_api_cli/generated/models/account_response.py +19 -0
- ynab_api_cli/generated/models/account_response_data.py +19 -0
- ynab_api_cli/generated/models/account_type.py +23 -0
- ynab_api_cli/generated/models/accounts_response.py +21 -0
- ynab_api_cli/generated/models/accounts_response_data.py +20 -0
- ynab_api_cli/generated/models/bulk_response.py +19 -0
- ynab_api_cli/generated/models/bulk_response_data.py +21 -0
- ynab_api_cli/generated/models/bulk_response_data_bulk.py +15 -0
- ynab_api_cli/generated/models/bulk_transactions.py +21 -0
- ynab_api_cli/generated/models/categories_response.py +21 -0
- ynab_api_cli/generated/models/categories_response_data.py +22 -0
- ynab_api_cli/generated/models/category.py +104 -0
- ynab_api_cli/generated/models/category_base.py +74 -0
- ynab_api_cli/generated/models/category_group.py +20 -0
- ynab_api_cli/generated/models/category_group_with_categories.py +25 -0
- ynab_api_cli/generated/models/category_response.py +21 -0
- ynab_api_cli/generated/models/category_response_data.py +19 -0
- ynab_api_cli/generated/models/currency_format_type_0.py +21 -0
- ynab_api_cli/generated/models/date_format_type_0.py +14 -0
- ynab_api_cli/generated/models/debt_1.py +18 -0
- ynab_api_cli/generated/models/debt_2.py +18 -0
- ynab_api_cli/generated/models/debt_3.py +18 -0
- ynab_api_cli/generated/models/error_detail.py +16 -0
- ynab_api_cli/generated/models/error_response.py +19 -0
- ynab_api_cli/generated/models/existing_category.py +34 -0
- ynab_api_cli/generated/models/existing_transaction.py +43 -0
- ynab_api_cli/generated/models/flag_1.py +17 -0
- ynab_api_cli/generated/models/flag_2.py +17 -0
- ynab_api_cli/generated/models/flag_3.py +17 -0
- ynab_api_cli/generated/models/get_transactions_by_account_type.py +12 -0
- ynab_api_cli/generated/models/get_transactions_by_category_type.py +12 -0
- ynab_api_cli/generated/models/get_transactions_by_month_type.py +12 -0
- ynab_api_cli/generated/models/get_transactions_by_payee_type.py +12 -0
- ynab_api_cli/generated/models/get_transactions_type.py +12 -0
- ynab_api_cli/generated/models/goal_1.py +15 -0
- ynab_api_cli/generated/models/goal_2.py +15 -0
- ynab_api_cli/generated/models/goal_3.py +15 -0
- ynab_api_cli/generated/models/hybrid_transaction.py +70 -0
- ynab_api_cli/generated/models/hybrid_transaction_type.py +12 -0
- ynab_api_cli/generated/models/hybrid_transactions_response.py +21 -0
- ynab_api_cli/generated/models/hybrid_transactions_response_data.py +22 -0
- ynab_api_cli/generated/models/loan_account_periodic_value_type_0.py +33 -0
- ynab_api_cli/generated/models/money_movement.py +35 -0
- ynab_api_cli/generated/models/money_movement_base.py +33 -0
- ynab_api_cli/generated/models/money_movement_group.py +25 -0
- ynab_api_cli/generated/models/money_movement_groups_response.py +21 -0
- ynab_api_cli/generated/models/money_movement_groups_response_data.py +22 -0
- ynab_api_cli/generated/models/money_movements_response.py +21 -0
- ynab_api_cli/generated/models/money_movements_response_data.py +20 -0
- ynab_api_cli/generated/models/month_detail.py +42 -0
- ynab_api_cli/generated/models/month_detail_base.py +30 -0
- ynab_api_cli/generated/models/month_detail_response.py +21 -0
- ynab_api_cli/generated/models/month_detail_response_data.py +19 -0
- ynab_api_cli/generated/models/month_summaries_response.py +21 -0
- ynab_api_cli/generated/models/month_summaries_response_data.py +20 -0
- ynab_api_cli/generated/models/month_summary.py +37 -0
- ynab_api_cli/generated/models/month_summary_base.py +25 -0
- ynab_api_cli/generated/models/new_category.py +34 -0
- ynab_api_cli/generated/models/new_transaction.py +44 -0
- ynab_api_cli/generated/models/patch_category_group_wrapper.py +19 -0
- ynab_api_cli/generated/models/patch_category_wrapper.py +19 -0
- ynab_api_cli/generated/models/patch_month_category_wrapper.py +19 -0
- ynab_api_cli/generated/models/patch_payee_wrapper.py +19 -0
- ynab_api_cli/generated/models/patch_transactions_wrapper.py +21 -0
- ynab_api_cli/generated/models/payee.py +23 -0
- ynab_api_cli/generated/models/payee_location.py +20 -0
- ynab_api_cli/generated/models/payee_location_response.py +21 -0
- ynab_api_cli/generated/models/payee_location_response_data.py +19 -0
- ynab_api_cli/generated/models/payee_locations_response.py +21 -0
- ynab_api_cli/generated/models/payee_locations_response_data.py +19 -0
- ynab_api_cli/generated/models/payee_response.py +19 -0
- ynab_api_cli/generated/models/payee_response_data.py +19 -0
- ynab_api_cli/generated/models/payees_response.py +19 -0
- ynab_api_cli/generated/models/payees_response_data.py +20 -0
- ynab_api_cli/generated/models/plan_detail.py +74 -0
- ynab_api_cli/generated/models/plan_detail_response.py +21 -0
- ynab_api_cli/generated/models/plan_detail_response_data.py +20 -0
- ynab_api_cli/generated/models/plan_settings.py +21 -0
- ynab_api_cli/generated/models/plan_settings_response.py +21 -0
- ynab_api_cli/generated/models/plan_settings_response_data.py +19 -0
- ynab_api_cli/generated/models/plan_summary.py +38 -0
- ynab_api_cli/generated/models/plan_summary_response.py +21 -0
- ynab_api_cli/generated/models/plan_summary_response_data.py +24 -0
- ynab_api_cli/generated/models/post_account_wrapper.py +19 -0
- ynab_api_cli/generated/models/post_category_group_wrapper.py +19 -0
- ynab_api_cli/generated/models/post_category_wrapper.py +19 -0
- ynab_api_cli/generated/models/post_payee.py +14 -0
- ynab_api_cli/generated/models/post_payee_wrapper.py +19 -0
- ynab_api_cli/generated/models/post_scheduled_transaction_wrapper.py +23 -0
- ynab_api_cli/generated/models/post_transactions_wrapper.py +24 -0
- ynab_api_cli/generated/models/put_scheduled_transaction_wrapper.py +23 -0
- ynab_api_cli/generated/models/put_transaction_wrapper.py +19 -0
- ynab_api_cli/generated/models/save_account.py +18 -0
- ynab_api_cli/generated/models/save_account_type.py +16 -0
- ynab_api_cli/generated/models/save_category.py +34 -0
- ynab_api_cli/generated/models/save_category_goal_frequency.py +13 -0
- ynab_api_cli/generated/models/save_category_group.py +14 -0
- ynab_api_cli/generated/models/save_category_group_response.py +21 -0
- ynab_api_cli/generated/models/save_category_group_response_data.py +20 -0
- ynab_api_cli/generated/models/save_category_response.py +21 -0
- ynab_api_cli/generated/models/save_category_response_data.py +20 -0
- ynab_api_cli/generated/models/save_month_category.py +14 -0
- ynab_api_cli/generated/models/save_payee.py +16 -0
- ynab_api_cli/generated/models/save_payee_response.py +21 -0
- ynab_api_cli/generated/models/save_payee_response_data.py +20 -0
- ynab_api_cli/generated/models/save_scheduled_transaction.py +37 -0
- ynab_api_cli/generated/models/save_sub_transaction.py +22 -0
- ynab_api_cli/generated/models/save_transaction_with_id_or_import_id.py +45 -0
- ynab_api_cli/generated/models/save_transaction_with_optional_fields.py +43 -0
- ynab_api_cli/generated/models/save_transactions_response.py +21 -0
- ynab_api_cli/generated/models/save_transactions_response_data.py +29 -0
- ynab_api_cli/generated/models/scheduled_sub_transaction.py +31 -0
- ynab_api_cli/generated/models/scheduled_sub_transaction_base.py +29 -0
- ynab_api_cli/generated/models/scheduled_transaction_detail.py +53 -0
- ynab_api_cli/generated/models/scheduled_transaction_frequency.py +23 -0
- ynab_api_cli/generated/models/scheduled_transaction_response.py +21 -0
- ynab_api_cli/generated/models/scheduled_transaction_response_data.py +23 -0
- ynab_api_cli/generated/models/scheduled_transaction_summary.py +43 -0
- ynab_api_cli/generated/models/scheduled_transaction_summary_base.py +41 -0
- ynab_api_cli/generated/models/scheduled_transaction_summary_base_frequency.py +23 -0
- ynab_api_cli/generated/models/scheduled_transactions_response.py +21 -0
- ynab_api_cli/generated/models/scheduled_transactions_response_data.py +24 -0
- ynab_api_cli/generated/models/sub_transaction.py +34 -0
- ynab_api_cli/generated/models/sub_transaction_base.py +32 -0
- ynab_api_cli/generated/models/transaction_cleared_status.py +13 -0
- ynab_api_cli/generated/models/transaction_detail.py +70 -0
- ynab_api_cli/generated/models/transaction_response.py +21 -0
- ynab_api_cli/generated/models/transaction_response_data.py +20 -0
- ynab_api_cli/generated/models/transaction_summary.py +62 -0
- ynab_api_cli/generated/models/transaction_summary_base.py +60 -0
- ynab_api_cli/generated/models/transactions_import_response.py +21 -0
- ynab_api_cli/generated/models/transactions_import_response_data.py +14 -0
- ynab_api_cli/generated/models/transactions_response.py +21 -0
- ynab_api_cli/generated/models/transactions_response_data.py +20 -0
- ynab_api_cli/generated/models/user.py +16 -0
- ynab_api_cli/generated/models/user_response.py +19 -0
- ynab_api_cli/generated/models/user_response_data.py +19 -0
- ynab_api_cli/live.py +449 -0
- ynab_api_cli/py.typed +0 -0
- ynab_api_cli/resources/__init__.py +3 -0
- ynab_api_cli/resources/catalog.json +178 -0
- ynab_api_cli/resources/openapi.yaml +4035 -0
- ynab_api_cli/resources/provenance.json +9 -0
- ynab_api_cli/resources/schema_features.json +913 -0
- ynab_api_cli/resources/skill/SKILL.md +21 -0
- ynab_api_cli/resources/skill/references/operations.md +36 -0
- ynab_api_cli/resources/skill/references/setup.md +32 -0
- ynab_api_cli/security.py +83 -0
- ynab_api_cli/transport.py +133 -0
- ynab_api_cli/types.py +110 -0
- ynab_api_cli/verification.py +167 -0
- ynab_api_cli-0.1.0.dist-info/METADATA +90 -0
- ynab_api_cli-0.1.0.dist-info/RECORD +225 -0
- ynab_api_cli-0.1.0.dist-info/WHEEL +4 -0
- ynab_api_cli-0.1.0.dist-info/entry_points.txt +3 -0
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
"""Generated request and response models."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from ynab_api_cli.generated.models.account import Account
|
|
6
|
+
from ynab_api_cli.generated.models.account_base import AccountBase
|
|
7
|
+
from ynab_api_cli.generated.models.account_response import AccountResponse
|
|
8
|
+
from ynab_api_cli.generated.models.account_response_data import AccountResponseData
|
|
9
|
+
from ynab_api_cli.generated.models.account_type import AccountType
|
|
10
|
+
from ynab_api_cli.generated.models.accounts_response import AccountsResponse
|
|
11
|
+
from ynab_api_cli.generated.models.accounts_response_data import AccountsResponseData
|
|
12
|
+
from ynab_api_cli.generated.models.bulk_response import BulkResponse
|
|
13
|
+
from ynab_api_cli.generated.models.bulk_response_data import BulkResponseData
|
|
14
|
+
from ynab_api_cli.generated.models.bulk_response_data_bulk import BulkResponseDataBulk
|
|
15
|
+
from ynab_api_cli.generated.models.bulk_transactions import BulkTransactions
|
|
16
|
+
from ynab_api_cli.generated.models.categories_response import CategoriesResponse
|
|
17
|
+
from ynab_api_cli.generated.models.categories_response_data import (
|
|
18
|
+
CategoriesResponseData,
|
|
19
|
+
)
|
|
20
|
+
from ynab_api_cli.generated.models.category import Category
|
|
21
|
+
from ynab_api_cli.generated.models.category_base import CategoryBase
|
|
22
|
+
from ynab_api_cli.generated.models.category_group import CategoryGroup
|
|
23
|
+
from ynab_api_cli.generated.models.category_group_with_categories import (
|
|
24
|
+
CategoryGroupWithCategories,
|
|
25
|
+
)
|
|
26
|
+
from ynab_api_cli.generated.models.category_response import CategoryResponse
|
|
27
|
+
from ynab_api_cli.generated.models.category_response_data import CategoryResponseData
|
|
28
|
+
from ynab_api_cli.generated.models.currency_format_type_0 import CurrencyFormatType0
|
|
29
|
+
from ynab_api_cli.generated.models.date_format_type_0 import DateFormatType0
|
|
30
|
+
from ynab_api_cli.generated.models.debt_1 import Debt1
|
|
31
|
+
from ynab_api_cli.generated.models.debt_2 import Debt2
|
|
32
|
+
from ynab_api_cli.generated.models.debt_3 import Debt3
|
|
33
|
+
from ynab_api_cli.generated.models.error_detail import ErrorDetail
|
|
34
|
+
from ynab_api_cli.generated.models.error_response import ErrorResponse
|
|
35
|
+
from ynab_api_cli.generated.models.existing_category import ExistingCategory
|
|
36
|
+
from ynab_api_cli.generated.models.existing_transaction import ExistingTransaction
|
|
37
|
+
from ynab_api_cli.generated.models.flag_1 import Flag1
|
|
38
|
+
from ynab_api_cli.generated.models.flag_2 import Flag2
|
|
39
|
+
from ynab_api_cli.generated.models.flag_3 import Flag3
|
|
40
|
+
from ynab_api_cli.generated.models.get_transactions_by_account_type import (
|
|
41
|
+
GetTransactionsByAccountType,
|
|
42
|
+
)
|
|
43
|
+
from ynab_api_cli.generated.models.get_transactions_by_category_type import (
|
|
44
|
+
GetTransactionsByCategoryType,
|
|
45
|
+
)
|
|
46
|
+
from ynab_api_cli.generated.models.get_transactions_by_month_type import (
|
|
47
|
+
GetTransactionsByMonthType,
|
|
48
|
+
)
|
|
49
|
+
from ynab_api_cli.generated.models.get_transactions_by_payee_type import (
|
|
50
|
+
GetTransactionsByPayeeType,
|
|
51
|
+
)
|
|
52
|
+
from ynab_api_cli.generated.models.get_transactions_type import GetTransactionsType
|
|
53
|
+
from ynab_api_cli.generated.models.goal_1 import Goal1
|
|
54
|
+
from ynab_api_cli.generated.models.goal_2 import Goal2
|
|
55
|
+
from ynab_api_cli.generated.models.goal_3 import Goal3
|
|
56
|
+
from ynab_api_cli.generated.models.hybrid_transaction import HybridTransaction
|
|
57
|
+
from ynab_api_cli.generated.models.hybrid_transaction_type import HybridTransactionType
|
|
58
|
+
from ynab_api_cli.generated.models.hybrid_transactions_response import (
|
|
59
|
+
HybridTransactionsResponse,
|
|
60
|
+
)
|
|
61
|
+
from ynab_api_cli.generated.models.hybrid_transactions_response_data import (
|
|
62
|
+
HybridTransactionsResponseData,
|
|
63
|
+
)
|
|
64
|
+
from ynab_api_cli.generated.models.loan_account_periodic_value_type_0 import (
|
|
65
|
+
LoanAccountPeriodicValueType0,
|
|
66
|
+
)
|
|
67
|
+
from ynab_api_cli.generated.models.money_movement import MoneyMovement
|
|
68
|
+
from ynab_api_cli.generated.models.money_movement_base import MoneyMovementBase
|
|
69
|
+
from ynab_api_cli.generated.models.money_movement_group import MoneyMovementGroup
|
|
70
|
+
from ynab_api_cli.generated.models.money_movement_groups_response import (
|
|
71
|
+
MoneyMovementGroupsResponse,
|
|
72
|
+
)
|
|
73
|
+
from ynab_api_cli.generated.models.money_movement_groups_response_data import (
|
|
74
|
+
MoneyMovementGroupsResponseData,
|
|
75
|
+
)
|
|
76
|
+
from ynab_api_cli.generated.models.money_movements_response import (
|
|
77
|
+
MoneyMovementsResponse,
|
|
78
|
+
)
|
|
79
|
+
from ynab_api_cli.generated.models.money_movements_response_data import (
|
|
80
|
+
MoneyMovementsResponseData,
|
|
81
|
+
)
|
|
82
|
+
from ynab_api_cli.generated.models.month_detail import MonthDetail
|
|
83
|
+
from ynab_api_cli.generated.models.month_detail_base import MonthDetailBase
|
|
84
|
+
from ynab_api_cli.generated.models.month_detail_response import MonthDetailResponse
|
|
85
|
+
from ynab_api_cli.generated.models.month_detail_response_data import (
|
|
86
|
+
MonthDetailResponseData,
|
|
87
|
+
)
|
|
88
|
+
from ynab_api_cli.generated.models.month_summaries_response import (
|
|
89
|
+
MonthSummariesResponse,
|
|
90
|
+
)
|
|
91
|
+
from ynab_api_cli.generated.models.month_summaries_response_data import (
|
|
92
|
+
MonthSummariesResponseData,
|
|
93
|
+
)
|
|
94
|
+
from ynab_api_cli.generated.models.month_summary import MonthSummary
|
|
95
|
+
from ynab_api_cli.generated.models.month_summary_base import MonthSummaryBase
|
|
96
|
+
from ynab_api_cli.generated.models.new_category import NewCategory
|
|
97
|
+
from ynab_api_cli.generated.models.new_transaction import NewTransaction
|
|
98
|
+
from ynab_api_cli.generated.models.patch_category_group_wrapper import (
|
|
99
|
+
PatchCategoryGroupWrapper,
|
|
100
|
+
)
|
|
101
|
+
from ynab_api_cli.generated.models.patch_category_wrapper import PatchCategoryWrapper
|
|
102
|
+
from ynab_api_cli.generated.models.patch_month_category_wrapper import (
|
|
103
|
+
PatchMonthCategoryWrapper,
|
|
104
|
+
)
|
|
105
|
+
from ynab_api_cli.generated.models.patch_payee_wrapper import PatchPayeeWrapper
|
|
106
|
+
from ynab_api_cli.generated.models.patch_transactions_wrapper import (
|
|
107
|
+
PatchTransactionsWrapper,
|
|
108
|
+
)
|
|
109
|
+
from ynab_api_cli.generated.models.payee import Payee
|
|
110
|
+
from ynab_api_cli.generated.models.payee_location import PayeeLocation
|
|
111
|
+
from ynab_api_cli.generated.models.payee_location_response import PayeeLocationResponse
|
|
112
|
+
from ynab_api_cli.generated.models.payee_location_response_data import (
|
|
113
|
+
PayeeLocationResponseData,
|
|
114
|
+
)
|
|
115
|
+
from ynab_api_cli.generated.models.payee_locations_response import (
|
|
116
|
+
PayeeLocationsResponse,
|
|
117
|
+
)
|
|
118
|
+
from ynab_api_cli.generated.models.payee_locations_response_data import (
|
|
119
|
+
PayeeLocationsResponseData,
|
|
120
|
+
)
|
|
121
|
+
from ynab_api_cli.generated.models.payee_response import PayeeResponse
|
|
122
|
+
from ynab_api_cli.generated.models.payee_response_data import PayeeResponseData
|
|
123
|
+
from ynab_api_cli.generated.models.payees_response import PayeesResponse
|
|
124
|
+
from ynab_api_cli.generated.models.payees_response_data import PayeesResponseData
|
|
125
|
+
from ynab_api_cli.generated.models.plan_detail import PlanDetail
|
|
126
|
+
from ynab_api_cli.generated.models.plan_detail_response import PlanDetailResponse
|
|
127
|
+
from ynab_api_cli.generated.models.plan_detail_response_data import (
|
|
128
|
+
PlanDetailResponseData,
|
|
129
|
+
)
|
|
130
|
+
from ynab_api_cli.generated.models.plan_settings import PlanSettings
|
|
131
|
+
from ynab_api_cli.generated.models.plan_settings_response import PlanSettingsResponse
|
|
132
|
+
from ynab_api_cli.generated.models.plan_settings_response_data import (
|
|
133
|
+
PlanSettingsResponseData,
|
|
134
|
+
)
|
|
135
|
+
from ynab_api_cli.generated.models.plan_summary import PlanSummary
|
|
136
|
+
from ynab_api_cli.generated.models.plan_summary_response import PlanSummaryResponse
|
|
137
|
+
from ynab_api_cli.generated.models.plan_summary_response_data import (
|
|
138
|
+
PlanSummaryResponseData,
|
|
139
|
+
)
|
|
140
|
+
from ynab_api_cli.generated.models.post_account_wrapper import PostAccountWrapper
|
|
141
|
+
from ynab_api_cli.generated.models.post_category_group_wrapper import (
|
|
142
|
+
PostCategoryGroupWrapper,
|
|
143
|
+
)
|
|
144
|
+
from ynab_api_cli.generated.models.post_category_wrapper import PostCategoryWrapper
|
|
145
|
+
from ynab_api_cli.generated.models.post_payee import PostPayee
|
|
146
|
+
from ynab_api_cli.generated.models.post_payee_wrapper import PostPayeeWrapper
|
|
147
|
+
from ynab_api_cli.generated.models.post_scheduled_transaction_wrapper import (
|
|
148
|
+
PostScheduledTransactionWrapper,
|
|
149
|
+
)
|
|
150
|
+
from ynab_api_cli.generated.models.post_transactions_wrapper import (
|
|
151
|
+
PostTransactionsWrapper,
|
|
152
|
+
)
|
|
153
|
+
from ynab_api_cli.generated.models.put_scheduled_transaction_wrapper import (
|
|
154
|
+
PutScheduledTransactionWrapper,
|
|
155
|
+
)
|
|
156
|
+
from ynab_api_cli.generated.models.put_transaction_wrapper import PutTransactionWrapper
|
|
157
|
+
from ynab_api_cli.generated.models.save_account import SaveAccount
|
|
158
|
+
from ynab_api_cli.generated.models.save_account_type import SaveAccountType
|
|
159
|
+
from ynab_api_cli.generated.models.save_category import SaveCategory
|
|
160
|
+
from ynab_api_cli.generated.models.save_category_goal_frequency import (
|
|
161
|
+
SaveCategoryGoalFrequency,
|
|
162
|
+
)
|
|
163
|
+
from ynab_api_cli.generated.models.save_category_group import SaveCategoryGroup
|
|
164
|
+
from ynab_api_cli.generated.models.save_category_group_response import (
|
|
165
|
+
SaveCategoryGroupResponse,
|
|
166
|
+
)
|
|
167
|
+
from ynab_api_cli.generated.models.save_category_group_response_data import (
|
|
168
|
+
SaveCategoryGroupResponseData,
|
|
169
|
+
)
|
|
170
|
+
from ynab_api_cli.generated.models.save_category_response import SaveCategoryResponse
|
|
171
|
+
from ynab_api_cli.generated.models.save_category_response_data import (
|
|
172
|
+
SaveCategoryResponseData,
|
|
173
|
+
)
|
|
174
|
+
from ynab_api_cli.generated.models.save_month_category import SaveMonthCategory
|
|
175
|
+
from ynab_api_cli.generated.models.save_payee import SavePayee
|
|
176
|
+
from ynab_api_cli.generated.models.save_payee_response import SavePayeeResponse
|
|
177
|
+
from ynab_api_cli.generated.models.save_payee_response_data import SavePayeeResponseData
|
|
178
|
+
from ynab_api_cli.generated.models.save_scheduled_transaction import (
|
|
179
|
+
SaveScheduledTransaction,
|
|
180
|
+
)
|
|
181
|
+
from ynab_api_cli.generated.models.save_sub_transaction import SaveSubTransaction
|
|
182
|
+
from ynab_api_cli.generated.models.save_transaction_with_id_or_import_id import (
|
|
183
|
+
SaveTransactionWithIdOrImportId,
|
|
184
|
+
)
|
|
185
|
+
from ynab_api_cli.generated.models.save_transaction_with_optional_fields import (
|
|
186
|
+
SaveTransactionWithOptionalFields,
|
|
187
|
+
)
|
|
188
|
+
from ynab_api_cli.generated.models.save_transactions_response import (
|
|
189
|
+
SaveTransactionsResponse,
|
|
190
|
+
)
|
|
191
|
+
from ynab_api_cli.generated.models.save_transactions_response_data import (
|
|
192
|
+
SaveTransactionsResponseData,
|
|
193
|
+
)
|
|
194
|
+
from ynab_api_cli.generated.models.scheduled_sub_transaction import (
|
|
195
|
+
ScheduledSubTransaction,
|
|
196
|
+
)
|
|
197
|
+
from ynab_api_cli.generated.models.scheduled_sub_transaction_base import (
|
|
198
|
+
ScheduledSubTransactionBase,
|
|
199
|
+
)
|
|
200
|
+
from ynab_api_cli.generated.models.scheduled_transaction_detail import (
|
|
201
|
+
ScheduledTransactionDetail,
|
|
202
|
+
)
|
|
203
|
+
from ynab_api_cli.generated.models.scheduled_transaction_frequency import (
|
|
204
|
+
ScheduledTransactionFrequency,
|
|
205
|
+
)
|
|
206
|
+
from ynab_api_cli.generated.models.scheduled_transaction_response import (
|
|
207
|
+
ScheduledTransactionResponse,
|
|
208
|
+
)
|
|
209
|
+
from ynab_api_cli.generated.models.scheduled_transaction_response_data import (
|
|
210
|
+
ScheduledTransactionResponseData,
|
|
211
|
+
)
|
|
212
|
+
from ynab_api_cli.generated.models.scheduled_transaction_summary import (
|
|
213
|
+
ScheduledTransactionSummary,
|
|
214
|
+
)
|
|
215
|
+
from ynab_api_cli.generated.models.scheduled_transaction_summary_base import (
|
|
216
|
+
ScheduledTransactionSummaryBase,
|
|
217
|
+
)
|
|
218
|
+
from ynab_api_cli.generated.models.scheduled_transaction_summary_base_frequency import (
|
|
219
|
+
ScheduledTransactionSummaryBaseFrequency,
|
|
220
|
+
)
|
|
221
|
+
from ynab_api_cli.generated.models.scheduled_transactions_response import (
|
|
222
|
+
ScheduledTransactionsResponse,
|
|
223
|
+
)
|
|
224
|
+
from ynab_api_cli.generated.models.scheduled_transactions_response_data import (
|
|
225
|
+
ScheduledTransactionsResponseData,
|
|
226
|
+
)
|
|
227
|
+
from ynab_api_cli.generated.models.sub_transaction import SubTransaction
|
|
228
|
+
from ynab_api_cli.generated.models.sub_transaction_base import SubTransactionBase
|
|
229
|
+
from ynab_api_cli.generated.models.transaction_cleared_status import (
|
|
230
|
+
TransactionClearedStatus,
|
|
231
|
+
)
|
|
232
|
+
from ynab_api_cli.generated.models.transaction_detail import TransactionDetail
|
|
233
|
+
from ynab_api_cli.generated.models.transaction_response import TransactionResponse
|
|
234
|
+
from ynab_api_cli.generated.models.transaction_response_data import (
|
|
235
|
+
TransactionResponseData,
|
|
236
|
+
)
|
|
237
|
+
from ynab_api_cli.generated.models.transaction_summary import TransactionSummary
|
|
238
|
+
from ynab_api_cli.generated.models.transaction_summary_base import (
|
|
239
|
+
TransactionSummaryBase,
|
|
240
|
+
)
|
|
241
|
+
from ynab_api_cli.generated.models.transactions_import_response import (
|
|
242
|
+
TransactionsImportResponse,
|
|
243
|
+
)
|
|
244
|
+
from ynab_api_cli.generated.models.transactions_import_response_data import (
|
|
245
|
+
TransactionsImportResponseData,
|
|
246
|
+
)
|
|
247
|
+
from ynab_api_cli.generated.models.transactions_response import TransactionsResponse
|
|
248
|
+
from ynab_api_cli.generated.models.transactions_response_data import (
|
|
249
|
+
TransactionsResponseData,
|
|
250
|
+
)
|
|
251
|
+
from ynab_api_cli.generated.models.user import User
|
|
252
|
+
from ynab_api_cli.generated.models.user_response import UserResponse
|
|
253
|
+
from ynab_api_cli.generated.models.user_response_data import UserResponseData
|
|
254
|
+
|
|
255
|
+
__all__ = (
|
|
256
|
+
"Account",
|
|
257
|
+
"AccountBase",
|
|
258
|
+
"AccountResponse",
|
|
259
|
+
"AccountResponseData",
|
|
260
|
+
"AccountType",
|
|
261
|
+
"AccountsResponse",
|
|
262
|
+
"AccountsResponseData",
|
|
263
|
+
"BulkResponse",
|
|
264
|
+
"BulkResponseData",
|
|
265
|
+
"BulkResponseDataBulk",
|
|
266
|
+
"BulkTransactions",
|
|
267
|
+
"CategoriesResponse",
|
|
268
|
+
"CategoriesResponseData",
|
|
269
|
+
"Category",
|
|
270
|
+
"CategoryBase",
|
|
271
|
+
"CategoryGroup",
|
|
272
|
+
"CategoryGroupWithCategories",
|
|
273
|
+
"CategoryResponse",
|
|
274
|
+
"CategoryResponseData",
|
|
275
|
+
"CurrencyFormatType0",
|
|
276
|
+
"DateFormatType0",
|
|
277
|
+
"Debt1",
|
|
278
|
+
"Debt2",
|
|
279
|
+
"Debt3",
|
|
280
|
+
"ErrorDetail",
|
|
281
|
+
"ErrorResponse",
|
|
282
|
+
"ExistingCategory",
|
|
283
|
+
"ExistingTransaction",
|
|
284
|
+
"Flag1",
|
|
285
|
+
"Flag2",
|
|
286
|
+
"Flag3",
|
|
287
|
+
"GetTransactionsByAccountType",
|
|
288
|
+
"GetTransactionsByCategoryType",
|
|
289
|
+
"GetTransactionsByMonthType",
|
|
290
|
+
"GetTransactionsByPayeeType",
|
|
291
|
+
"GetTransactionsType",
|
|
292
|
+
"Goal1",
|
|
293
|
+
"Goal2",
|
|
294
|
+
"Goal3",
|
|
295
|
+
"HybridTransaction",
|
|
296
|
+
"HybridTransactionType",
|
|
297
|
+
"HybridTransactionsResponse",
|
|
298
|
+
"HybridTransactionsResponseData",
|
|
299
|
+
"LoanAccountPeriodicValueType0",
|
|
300
|
+
"MoneyMovement",
|
|
301
|
+
"MoneyMovementBase",
|
|
302
|
+
"MoneyMovementGroup",
|
|
303
|
+
"MoneyMovementGroupsResponse",
|
|
304
|
+
"MoneyMovementGroupsResponseData",
|
|
305
|
+
"MoneyMovementsResponse",
|
|
306
|
+
"MoneyMovementsResponseData",
|
|
307
|
+
"MonthDetail",
|
|
308
|
+
"MonthDetailBase",
|
|
309
|
+
"MonthDetailResponse",
|
|
310
|
+
"MonthDetailResponseData",
|
|
311
|
+
"MonthSummariesResponse",
|
|
312
|
+
"MonthSummariesResponseData",
|
|
313
|
+
"MonthSummary",
|
|
314
|
+
"MonthSummaryBase",
|
|
315
|
+
"NewCategory",
|
|
316
|
+
"NewTransaction",
|
|
317
|
+
"PatchCategoryGroupWrapper",
|
|
318
|
+
"PatchCategoryWrapper",
|
|
319
|
+
"PatchMonthCategoryWrapper",
|
|
320
|
+
"PatchPayeeWrapper",
|
|
321
|
+
"PatchTransactionsWrapper",
|
|
322
|
+
"Payee",
|
|
323
|
+
"PayeeLocation",
|
|
324
|
+
"PayeeLocationResponse",
|
|
325
|
+
"PayeeLocationResponseData",
|
|
326
|
+
"PayeeLocationsResponse",
|
|
327
|
+
"PayeeLocationsResponseData",
|
|
328
|
+
"PayeeResponse",
|
|
329
|
+
"PayeeResponseData",
|
|
330
|
+
"PayeesResponse",
|
|
331
|
+
"PayeesResponseData",
|
|
332
|
+
"PlanDetail",
|
|
333
|
+
"PlanDetailResponse",
|
|
334
|
+
"PlanDetailResponseData",
|
|
335
|
+
"PlanSettings",
|
|
336
|
+
"PlanSettingsResponse",
|
|
337
|
+
"PlanSettingsResponseData",
|
|
338
|
+
"PlanSummary",
|
|
339
|
+
"PlanSummaryResponse",
|
|
340
|
+
"PlanSummaryResponseData",
|
|
341
|
+
"PostAccountWrapper",
|
|
342
|
+
"PostCategoryGroupWrapper",
|
|
343
|
+
"PostCategoryWrapper",
|
|
344
|
+
"PostPayee",
|
|
345
|
+
"PostPayeeWrapper",
|
|
346
|
+
"PostScheduledTransactionWrapper",
|
|
347
|
+
"PostTransactionsWrapper",
|
|
348
|
+
"PutScheduledTransactionWrapper",
|
|
349
|
+
"PutTransactionWrapper",
|
|
350
|
+
"SaveAccount",
|
|
351
|
+
"SaveAccountType",
|
|
352
|
+
"SaveCategory",
|
|
353
|
+
"SaveCategoryGoalFrequency",
|
|
354
|
+
"SaveCategoryGroup",
|
|
355
|
+
"SaveCategoryGroupResponse",
|
|
356
|
+
"SaveCategoryGroupResponseData",
|
|
357
|
+
"SaveCategoryResponse",
|
|
358
|
+
"SaveCategoryResponseData",
|
|
359
|
+
"SaveMonthCategory",
|
|
360
|
+
"SavePayee",
|
|
361
|
+
"SavePayeeResponse",
|
|
362
|
+
"SavePayeeResponseData",
|
|
363
|
+
"SaveScheduledTransaction",
|
|
364
|
+
"SaveSubTransaction",
|
|
365
|
+
"SaveTransactionWithIdOrImportId",
|
|
366
|
+
"SaveTransactionWithOptionalFields",
|
|
367
|
+
"SaveTransactionsResponse",
|
|
368
|
+
"SaveTransactionsResponseData",
|
|
369
|
+
"ScheduledSubTransaction",
|
|
370
|
+
"ScheduledSubTransactionBase",
|
|
371
|
+
"ScheduledTransactionDetail",
|
|
372
|
+
"ScheduledTransactionFrequency",
|
|
373
|
+
"ScheduledTransactionResponse",
|
|
374
|
+
"ScheduledTransactionResponseData",
|
|
375
|
+
"ScheduledTransactionSummary",
|
|
376
|
+
"ScheduledTransactionSummaryBase",
|
|
377
|
+
"ScheduledTransactionSummaryBaseFrequency",
|
|
378
|
+
"ScheduledTransactionsResponse",
|
|
379
|
+
"ScheduledTransactionsResponseData",
|
|
380
|
+
"SubTransaction",
|
|
381
|
+
"SubTransactionBase",
|
|
382
|
+
"TransactionClearedStatus",
|
|
383
|
+
"TransactionDetail",
|
|
384
|
+
"TransactionResponse",
|
|
385
|
+
"TransactionResponseData",
|
|
386
|
+
"TransactionSummary",
|
|
387
|
+
"TransactionSummaryBase",
|
|
388
|
+
"TransactionsImportResponse",
|
|
389
|
+
"TransactionsImportResponseData",
|
|
390
|
+
"TransactionsResponse",
|
|
391
|
+
"TransactionsResponseData",
|
|
392
|
+
"User",
|
|
393
|
+
"UserResponse",
|
|
394
|
+
"UserResponseData",
|
|
395
|
+
)
|
|
396
|
+
|
|
397
|
+
from pydantic import BaseModel
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
class ModelRegistry:
|
|
401
|
+
"""Resolve forward references after all models have loaded."""
|
|
402
|
+
|
|
403
|
+
@classmethod
|
|
404
|
+
def rebuild(cls) -> None:
|
|
405
|
+
"""Resolve generated models against the complete namespace."""
|
|
406
|
+
namespace = globals()
|
|
407
|
+
for value in tuple(namespace.values()):
|
|
408
|
+
if (
|
|
409
|
+
isinstance(value, type)
|
|
410
|
+
and value is not BaseModel
|
|
411
|
+
and issubclass(value, BaseModel)
|
|
412
|
+
):
|
|
413
|
+
value.model_rebuild(_types_namespace=namespace)
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
ModelRegistry.rebuild()
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"""Generated contract model; regenerate rather than editing."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import datetime
|
|
6
|
+
from typing import TYPE_CHECKING
|
|
7
|
+
from uuid import UUID
|
|
8
|
+
|
|
9
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
10
|
+
|
|
11
|
+
from ynab_api_cli.generated.models.account_type import AccountType
|
|
12
|
+
from ynab_api_cli.types import UNSET, Unset
|
|
13
|
+
|
|
14
|
+
if TYPE_CHECKING:
|
|
15
|
+
from ynab_api_cli.generated.models.loan_account_periodic_value_type_0 import (
|
|
16
|
+
LoanAccountPeriodicValueType0,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class Account(BaseModel):
|
|
21
|
+
"""Typed Account contract representation."""
|
|
22
|
+
|
|
23
|
+
model_config = ConfigDict(
|
|
24
|
+
extra="allow", arbitrary_types_allowed=True, populate_by_name=True
|
|
25
|
+
)
|
|
26
|
+
id: UUID = Field(alias="id")
|
|
27
|
+
name: str = Field(alias="name")
|
|
28
|
+
type_: AccountType = Field(alias="type")
|
|
29
|
+
on_budget: bool = Field(alias="on_budget")
|
|
30
|
+
closed: bool = Field(alias="closed")
|
|
31
|
+
balance: int = Field(alias="balance")
|
|
32
|
+
cleared_balance: int = Field(alias="cleared_balance")
|
|
33
|
+
uncleared_balance: int = Field(alias="uncleared_balance")
|
|
34
|
+
transfer_payee_id: UUID | None = Field(alias="transfer_payee_id")
|
|
35
|
+
deleted: bool = Field(alias="deleted")
|
|
36
|
+
note: str | Unset | None = Field(alias="note", default=UNSET)
|
|
37
|
+
direct_import_linked: bool | Unset = Field(
|
|
38
|
+
alias="direct_import_linked", default=UNSET
|
|
39
|
+
)
|
|
40
|
+
direct_import_in_error: bool | Unset = Field(
|
|
41
|
+
alias="direct_import_in_error", default=UNSET
|
|
42
|
+
)
|
|
43
|
+
last_reconciled_at: datetime.datetime | Unset | None = Field(
|
|
44
|
+
alias="last_reconciled_at", default=UNSET
|
|
45
|
+
)
|
|
46
|
+
debt_original_balance: int | Unset | None = Field(
|
|
47
|
+
alias="debt_original_balance", default=UNSET
|
|
48
|
+
)
|
|
49
|
+
debt_interest_rates: LoanAccountPeriodicValueType0 | Unset | None = Field(
|
|
50
|
+
alias="debt_interest_rates", default=UNSET
|
|
51
|
+
)
|
|
52
|
+
debt_minimum_payments: LoanAccountPeriodicValueType0 | Unset | None = Field(
|
|
53
|
+
alias="debt_minimum_payments", default=UNSET
|
|
54
|
+
)
|
|
55
|
+
debt_escrow_amounts: LoanAccountPeriodicValueType0 | Unset | None = Field(
|
|
56
|
+
alias="debt_escrow_amounts", default=UNSET
|
|
57
|
+
)
|
|
58
|
+
balance_formatted: str | Unset = Field(alias="balance_formatted", default=UNSET)
|
|
59
|
+
balance_currency: float | Unset = Field(alias="balance_currency", default=UNSET)
|
|
60
|
+
cleared_balance_formatted: str | Unset = Field(
|
|
61
|
+
alias="cleared_balance_formatted", default=UNSET
|
|
62
|
+
)
|
|
63
|
+
cleared_balance_currency: float | Unset = Field(
|
|
64
|
+
alias="cleared_balance_currency", default=UNSET
|
|
65
|
+
)
|
|
66
|
+
uncleared_balance_formatted: str | Unset = Field(
|
|
67
|
+
alias="uncleared_balance_formatted", default=UNSET
|
|
68
|
+
)
|
|
69
|
+
uncleared_balance_currency: float | Unset = Field(
|
|
70
|
+
alias="uncleared_balance_currency", default=UNSET
|
|
71
|
+
)
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"""Generated contract model; regenerate rather than editing."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import datetime
|
|
6
|
+
from typing import TYPE_CHECKING
|
|
7
|
+
from uuid import UUID
|
|
8
|
+
|
|
9
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
10
|
+
|
|
11
|
+
from ynab_api_cli.generated.models.account_type import AccountType
|
|
12
|
+
from ynab_api_cli.types import UNSET, Unset
|
|
13
|
+
|
|
14
|
+
if TYPE_CHECKING:
|
|
15
|
+
from ynab_api_cli.generated.models.loan_account_periodic_value_type_0 import (
|
|
16
|
+
LoanAccountPeriodicValueType0,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class AccountBase(BaseModel):
|
|
21
|
+
"""Typed AccountBase contract representation."""
|
|
22
|
+
|
|
23
|
+
model_config = ConfigDict(
|
|
24
|
+
extra="allow", arbitrary_types_allowed=True, populate_by_name=True
|
|
25
|
+
)
|
|
26
|
+
id: UUID = Field(alias="id")
|
|
27
|
+
name: str = Field(alias="name")
|
|
28
|
+
type_: AccountType = Field(alias="type")
|
|
29
|
+
on_budget: bool = Field(alias="on_budget")
|
|
30
|
+
closed: bool = Field(alias="closed")
|
|
31
|
+
balance: int = Field(alias="balance")
|
|
32
|
+
cleared_balance: int = Field(alias="cleared_balance")
|
|
33
|
+
uncleared_balance: int = Field(alias="uncleared_balance")
|
|
34
|
+
transfer_payee_id: UUID | None = Field(alias="transfer_payee_id")
|
|
35
|
+
deleted: bool = Field(alias="deleted")
|
|
36
|
+
note: str | Unset | None = Field(alias="note", default=UNSET)
|
|
37
|
+
direct_import_linked: bool | Unset = Field(
|
|
38
|
+
alias="direct_import_linked", default=UNSET
|
|
39
|
+
)
|
|
40
|
+
direct_import_in_error: bool | Unset = Field(
|
|
41
|
+
alias="direct_import_in_error", default=UNSET
|
|
42
|
+
)
|
|
43
|
+
last_reconciled_at: datetime.datetime | Unset | None = Field(
|
|
44
|
+
alias="last_reconciled_at", default=UNSET
|
|
45
|
+
)
|
|
46
|
+
debt_original_balance: int | Unset | None = Field(
|
|
47
|
+
alias="debt_original_balance", default=UNSET
|
|
48
|
+
)
|
|
49
|
+
debt_interest_rates: LoanAccountPeriodicValueType0 | Unset | None = Field(
|
|
50
|
+
alias="debt_interest_rates", default=UNSET
|
|
51
|
+
)
|
|
52
|
+
debt_minimum_payments: LoanAccountPeriodicValueType0 | Unset | None = Field(
|
|
53
|
+
alias="debt_minimum_payments", default=UNSET
|
|
54
|
+
)
|
|
55
|
+
debt_escrow_amounts: LoanAccountPeriodicValueType0 | Unset | None = Field(
|
|
56
|
+
alias="debt_escrow_amounts", default=UNSET
|
|
57
|
+
)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Generated contract model; regenerate rather than editing."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import TYPE_CHECKING
|
|
6
|
+
|
|
7
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ynab_api_cli.generated.models.account_response_data import AccountResponseData
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AccountResponse(BaseModel):
|
|
14
|
+
"""Typed AccountResponse contract representation."""
|
|
15
|
+
|
|
16
|
+
model_config = ConfigDict(
|
|
17
|
+
extra="allow", arbitrary_types_allowed=True, populate_by_name=True
|
|
18
|
+
)
|
|
19
|
+
data: AccountResponseData = Field(alias="data")
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Generated contract model; regenerate rather than editing."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import TYPE_CHECKING
|
|
6
|
+
|
|
7
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ynab_api_cli.generated.models.account import Account
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AccountResponseData(BaseModel):
|
|
14
|
+
"""Typed AccountResponseData contract representation."""
|
|
15
|
+
|
|
16
|
+
model_config = ConfigDict(
|
|
17
|
+
extra="allow", arbitrary_types_allowed=True, populate_by_name=True
|
|
18
|
+
)
|
|
19
|
+
account: Account = Field(alias="account")
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""Generated declarations; regenerate rather than editing."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from enum import StrEnum
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AccountType(StrEnum):
|
|
9
|
+
"""Generated contract enumeration."""
|
|
10
|
+
|
|
11
|
+
AUTOLOAN = "autoLoan"
|
|
12
|
+
CASH = "cash"
|
|
13
|
+
CHECKING = "checking"
|
|
14
|
+
CREDITCARD = "creditCard"
|
|
15
|
+
LINEOFCREDIT = "lineOfCredit"
|
|
16
|
+
MEDICALDEBT = "medicalDebt"
|
|
17
|
+
MORTGAGE = "mortgage"
|
|
18
|
+
OTHERASSET = "otherAsset"
|
|
19
|
+
OTHERDEBT = "otherDebt"
|
|
20
|
+
OTHERLIABILITY = "otherLiability"
|
|
21
|
+
PERSONALLOAN = "personalLoan"
|
|
22
|
+
SAVINGS = "savings"
|
|
23
|
+
STUDENTLOAN = "studentLoan"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""Generated contract model; regenerate rather than editing."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import TYPE_CHECKING
|
|
6
|
+
|
|
7
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ynab_api_cli.generated.models.accounts_response_data import (
|
|
11
|
+
AccountsResponseData,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class AccountsResponse(BaseModel):
|
|
16
|
+
"""Typed AccountsResponse contract representation."""
|
|
17
|
+
|
|
18
|
+
model_config = ConfigDict(
|
|
19
|
+
extra="allow", arbitrary_types_allowed=True, populate_by_name=True
|
|
20
|
+
)
|
|
21
|
+
data: AccountsResponseData = Field(alias="data")
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Generated contract model; regenerate rather than editing."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import TYPE_CHECKING
|
|
6
|
+
|
|
7
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ynab_api_cli.generated.models.account import Account
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AccountsResponseData(BaseModel):
|
|
14
|
+
"""Typed AccountsResponseData contract representation."""
|
|
15
|
+
|
|
16
|
+
model_config = ConfigDict(
|
|
17
|
+
extra="allow", arbitrary_types_allowed=True, populate_by_name=True
|
|
18
|
+
)
|
|
19
|
+
accounts: list[Account] = Field(alias="accounts")
|
|
20
|
+
server_knowledge: int = Field(alias="server_knowledge")
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Generated contract model; regenerate rather than editing."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import TYPE_CHECKING
|
|
6
|
+
|
|
7
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ynab_api_cli.generated.models.bulk_response_data import BulkResponseData
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class BulkResponse(BaseModel):
|
|
14
|
+
"""Typed BulkResponse contract representation."""
|
|
15
|
+
|
|
16
|
+
model_config = ConfigDict(
|
|
17
|
+
extra="allow", arbitrary_types_allowed=True, populate_by_name=True
|
|
18
|
+
)
|
|
19
|
+
data: BulkResponseData = Field(alias="data")
|