Skip to content

Commit 5dac5a2

Browse files
committed
Generate against server v1.83.0
1 parent e6d1fe1 commit 5dac5a2

186 files changed

Lines changed: 4474 additions & 835 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openapi-generator/FILES

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.gitignore
22
docs/Account.md
3+
docs/AccountBase.md
34
docs/AccountResponse.md
45
docs/AccountResponseData.md
56
docs/AccountType.md
@@ -14,6 +15,7 @@ docs/CategoriesApi.md
1415
docs/CategoriesResponse.md
1516
docs/CategoriesResponseData.md
1617
docs/Category.md
18+
docs/CategoryBase.md
1719
docs/CategoryGroup.md
1820
docs/CategoryGroupWithCategories.md
1921
docs/CategoryResponse.md
@@ -28,18 +30,21 @@ docs/HybridTransaction.md
2830
docs/HybridTransactionsResponse.md
2931
docs/HybridTransactionsResponseData.md
3032
docs/MoneyMovement.md
33+
docs/MoneyMovementBase.md
3134
docs/MoneyMovementGroup.md
3235
docs/MoneyMovementGroupsResponse.md
3336
docs/MoneyMovementGroupsResponseData.md
3437
docs/MoneyMovementsApi.md
3538
docs/MoneyMovementsResponse.md
3639
docs/MoneyMovementsResponseData.md
3740
docs/MonthDetail.md
41+
docs/MonthDetailBase.md
3842
docs/MonthDetailResponse.md
3943
docs/MonthDetailResponseData.md
4044
docs/MonthSummariesResponse.md
4145
docs/MonthSummariesResponseData.md
4246
docs/MonthSummary.md
47+
docs/MonthSummaryBase.md
4348
docs/MonthsApi.md
4449
docs/NewCategory.md
4550
docs/NewTransaction.md
@@ -73,11 +78,14 @@ docs/PlansApi.md
7378
docs/PostAccountWrapper.md
7479
docs/PostCategoryGroupWrapper.md
7580
docs/PostCategoryWrapper.md
81+
docs/PostPayee.md
82+
docs/PostPayeeWrapper.md
7683
docs/PostScheduledTransactionWrapper.md
7784
docs/PostTransactionsWrapper.md
7885
docs/PutScheduledTransactionWrapper.md
7986
docs/PutTransactionWrapper.md
8087
docs/SaveAccount.md
88+
docs/SaveAccountType.md
8189
docs/SaveCategory.md
8290
docs/SaveCategoryGroup.md
8391
docs/SaveCategoryGroupResponse.md
@@ -95,21 +103,25 @@ docs/SaveTransactionWithOptionalFields.md
95103
docs/SaveTransactionsResponse.md
96104
docs/SaveTransactionsResponseData.md
97105
docs/ScheduledSubTransaction.md
106+
docs/ScheduledSubTransactionBase.md
98107
docs/ScheduledTransactionDetail.md
99108
docs/ScheduledTransactionFrequency.md
100109
docs/ScheduledTransactionResponse.md
101110
docs/ScheduledTransactionResponseData.md
102111
docs/ScheduledTransactionSummary.md
112+
docs/ScheduledTransactionSummaryBase.md
103113
docs/ScheduledTransactionsApi.md
104114
docs/ScheduledTransactionsResponse.md
105115
docs/ScheduledTransactionsResponseData.md
106116
docs/SubTransaction.md
117+
docs/SubTransactionBase.md
107118
docs/TransactionClearedStatus.md
108119
docs/TransactionDetail.md
109120
docs/TransactionFlagColor.md
110121
docs/TransactionResponse.md
111122
docs/TransactionResponseData.md
112123
docs/TransactionSummary.md
124+
docs/TransactionSummaryBase.md
113125
docs/TransactionsApi.md
114126
docs/TransactionsImportResponse.md
115127
docs/TransactionsImportResponseData.md
@@ -123,6 +135,18 @@ pyproject.toml
123135
requirements.txt
124136
test-requirements.txt
125137
test/__init__.py
138+
test/test_account_base.py
139+
test/test_category_base.py
140+
test/test_money_movement_base.py
141+
test/test_month_detail_base.py
142+
test/test_month_summary_base.py
143+
test/test_post_payee.py
144+
test/test_post_payee_wrapper.py
145+
test/test_save_account_type.py
146+
test/test_scheduled_sub_transaction_base.py
147+
test/test_scheduled_transaction_summary_base.py
148+
test/test_sub_transaction_base.py
149+
test/test_transaction_summary_base.py
126150
tox.ini
127151
ynab/__init__.py
128152
ynab/api/__init__.py
@@ -142,6 +166,7 @@ ynab/configuration.py
142166
ynab/exceptions.py
143167
ynab/models/__init__.py
144168
ynab/models/account.py
169+
ynab/models/account_base.py
145170
ynab/models/account_response.py
146171
ynab/models/account_response_data.py
147172
ynab/models/account_type.py
@@ -154,6 +179,7 @@ ynab/models/bulk_transactions.py
154179
ynab/models/categories_response.py
155180
ynab/models/categories_response_data.py
156181
ynab/models/category.py
182+
ynab/models/category_base.py
157183
ynab/models/category_group.py
158184
ynab/models/category_group_with_categories.py
159185
ynab/models/category_response.py
@@ -168,17 +194,20 @@ ynab/models/hybrid_transaction.py
168194
ynab/models/hybrid_transactions_response.py
169195
ynab/models/hybrid_transactions_response_data.py
170196
ynab/models/money_movement.py
197+
ynab/models/money_movement_base.py
171198
ynab/models/money_movement_group.py
172199
ynab/models/money_movement_groups_response.py
173200
ynab/models/money_movement_groups_response_data.py
174201
ynab/models/money_movements_response.py
175202
ynab/models/money_movements_response_data.py
176203
ynab/models/month_detail.py
204+
ynab/models/month_detail_base.py
177205
ynab/models/month_detail_response.py
178206
ynab/models/month_detail_response_data.py
179207
ynab/models/month_summaries_response.py
180208
ynab/models/month_summaries_response_data.py
181209
ynab/models/month_summary.py
210+
ynab/models/month_summary_base.py
182211
ynab/models/new_category.py
183212
ynab/models/new_transaction.py
184213
ynab/models/patch_category_group_wrapper.py
@@ -208,11 +237,14 @@ ynab/models/plan_summary_response_data.py
208237
ynab/models/post_account_wrapper.py
209238
ynab/models/post_category_group_wrapper.py
210239
ynab/models/post_category_wrapper.py
240+
ynab/models/post_payee.py
241+
ynab/models/post_payee_wrapper.py
211242
ynab/models/post_scheduled_transaction_wrapper.py
212243
ynab/models/post_transactions_wrapper.py
213244
ynab/models/put_scheduled_transaction_wrapper.py
214245
ynab/models/put_transaction_wrapper.py
215246
ynab/models/save_account.py
247+
ynab/models/save_account_type.py
216248
ynab/models/save_category.py
217249
ynab/models/save_category_group.py
218250
ynab/models/save_category_group_response.py
@@ -230,20 +262,24 @@ ynab/models/save_transaction_with_optional_fields.py
230262
ynab/models/save_transactions_response.py
231263
ynab/models/save_transactions_response_data.py
232264
ynab/models/scheduled_sub_transaction.py
265+
ynab/models/scheduled_sub_transaction_base.py
233266
ynab/models/scheduled_transaction_detail.py
234267
ynab/models/scheduled_transaction_frequency.py
235268
ynab/models/scheduled_transaction_response.py
236269
ynab/models/scheduled_transaction_response_data.py
237270
ynab/models/scheduled_transaction_summary.py
271+
ynab/models/scheduled_transaction_summary_base.py
238272
ynab/models/scheduled_transactions_response.py
239273
ynab/models/scheduled_transactions_response_data.py
240274
ynab/models/sub_transaction.py
275+
ynab/models/sub_transaction_base.py
241276
ynab/models/transaction_cleared_status.py
242277
ynab/models/transaction_detail.py
243278
ynab/models/transaction_flag_color.py
244279
ynab/models/transaction_response.py
245280
ynab/models/transaction_response_data.py
246281
ynab/models/transaction_summary.py
282+
ynab/models/transaction_summary_base.py
247283
ynab/models/transactions_import_response.py
248284
ynab/models/transactions_import_response_data.py
249285
ynab/models/transactions_response.py

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.20.0
1+
7.21.0

docs/Account.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ Name | Type | Description | Notes
2323
**debt_minimum_payments** | **Dict[str, int]** | | [optional]
2424
**debt_escrow_amounts** | **Dict[str, int]** | | [optional]
2525
**deleted** | **bool** | Whether or not the account has been deleted. Deleted accounts will only be included in delta requests. |
26+
**balance_formatted** | **str** | The current available balance of the account formatted in the plan's currency format | [optional]
27+
**balance_currency** | **float** | The current available balance of the account as a decimal currency amount | [optional]
28+
**cleared_balance_formatted** | **str** | The current cleared balance of the account formatted in the plan's currency format | [optional]
29+
**cleared_balance_currency** | **float** | The current cleared balance of the account as a decimal currency amount | [optional]
30+
**uncleared_balance_formatted** | **str** | The current uncleared balance of the account formatted in the plan's currency format | [optional]
31+
**uncleared_balance_currency** | **float** | The current uncleared balance of the account as a decimal currency amount | [optional]
2632

2733
## Example
2834

docs/AccountBase.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# AccountBase
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **UUID** | |
9+
**name** | **str** | |
10+
**type** | [**AccountType**](AccountType.md) | |
11+
**on_budget** | **bool** | Whether this account is \"on budget\" or not |
12+
**closed** | **bool** | Whether this account is closed or not |
13+
**note** | **str** | | [optional]
14+
**balance** | **int** | The current available balance of the account in milliunits format |
15+
**cleared_balance** | **int** | The current cleared balance of the account in milliunits format |
16+
**uncleared_balance** | **int** | The current uncleared balance of the account in milliunits format |
17+
**transfer_payee_id** | **UUID** | The payee id which should be used when transferring to this account |
18+
**direct_import_linked** | **bool** | Whether or not the account is linked to a financial institution for automatic transaction import. | [optional]
19+
**direct_import_in_error** | **bool** | If an account linked to a financial institution (direct_import_linked=true) and the linked connection is not in a healthy state, this will be true. | [optional]
20+
**last_reconciled_at** | **datetime** | A date/time specifying when the account was last reconciled. | [optional]
21+
**debt_original_balance** | **int** | This field is deprecated and will always be null. | [optional]
22+
**debt_interest_rates** | **Dict[str, int]** | | [optional]
23+
**debt_minimum_payments** | **Dict[str, int]** | | [optional]
24+
**debt_escrow_amounts** | **Dict[str, int]** | | [optional]
25+
**deleted** | **bool** | Whether or not the account has been deleted. Deleted accounts will only be included in delta requests. |
26+
27+
## Example
28+
29+
```python
30+
from ynab.models.account_base import AccountBase
31+
32+
# TODO update the JSON string below
33+
json = "{}"
34+
# create an instance of AccountBase from a JSON string
35+
account_base_instance = AccountBase.from_json(json)
36+
# print the JSON string representation of the object
37+
print(AccountBase.to_json())
38+
39+
# convert the object into a dict
40+
account_base_dict = account_base_instance.to_dict()
41+
# create an instance of AccountBase from a dict
42+
account_base_from_dict = AccountBase.from_dict(account_base_dict)
43+
```
44+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
45+
46+

docs/Category.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@ Name | Type | Description | Notes
3131
**goal_overall_left** | **int** | The amount of funding still needed to complete the goal within the current goal period. | [optional]
3232
**goal_snoozed_at** | **datetime** | The date/time the goal was snoozed. If the goal is not snoozed, this will be null. | [optional]
3333
**deleted** | **bool** | Whether or not the category has been deleted. Deleted categories will only be included in delta requests. |
34+
**balance_formatted** | **str** | Available balance of the category formatted in the plan's currency format | [optional]
35+
**balance_currency** | **float** | Available balance of the category as a decimal currency amount | [optional]
36+
**activity_formatted** | **str** | Activity of the category formatted in the plan's currency format | [optional]
37+
**activity_currency** | **float** | Activity of the category as a decimal currency amount | [optional]
38+
**budgeted_formatted** | **str** | Assigned (budgeted) amount of the category formatted in the plan's currency format | [optional]
39+
**budgeted_currency** | **float** | Assigned (budgeted) amount of the category as a decimal currency amount | [optional]
40+
**goal_target_formatted** | **str** | The goal target amount formatted in the plan's currency format | [optional]
41+
**goal_target_currency** | **float** | The goal target amount as a decimal currency amount | [optional]
42+
**goal_under_funded_formatted** | **str** | The goal underfunded amount formatted in the plan's currency format | [optional]
43+
**goal_under_funded_currency** | **float** | The goal underfunded amount as a decimal currency amount | [optional]
44+
**goal_overall_funded_formatted** | **str** | The total amount funded towards the goal formatted in the plan's currency format | [optional]
45+
**goal_overall_funded_currency** | **float** | The total amount funded towards the goal as a decimal currency amount | [optional]
46+
**goal_overall_left_formatted** | **str** | The amount of funding still needed to complete the goal formatted in the plan's currency format | [optional]
47+
**goal_overall_left_currency** | **float** | The amount of funding still needed to complete the goal as a decimal currency amount | [optional]
3448

3549
## Example
3650

docs/CategoryBase.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# CategoryBase
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **UUID** | |
9+
**category_group_id** | **UUID** | |
10+
**category_group_name** | **str** | | [optional]
11+
**name** | **str** | |
12+
**hidden** | **bool** | Whether or not the category is hidden |
13+
**original_category_group_id** | **UUID** | DEPRECATED: No longer used. Value will always be null. | [optional]
14+
**note** | **str** | | [optional]
15+
**budgeted** | **int** | Assigned (budgeted) amount in milliunits format |
16+
**activity** | **int** | Activity amount in milliunits format |
17+
**balance** | **int** | Available balance in milliunits format |
18+
**goal_type** | **str** | The type of goal, if the category has a goal (TB='Target Category Balance', TBD='Target Category Balance by Date', MF='Monthly Funding', NEED='Plan Your Spending') | [optional]
19+
**goal_needs_whole_amount** | **bool** | Indicates the monthly rollover behavior for \"NEED\"-type goals. When \"true\", the goal will always ask for the target amount in the new month (\"Set Aside\"). When \"false\", previous month category funding is used (\"Refill\"). For other goal types, this field will be null. | [optional]
20+
**goal_day** | **int** | A day offset modifier for the goal's due date. When goal_cadence is 2 (Weekly), this value specifies which day of the week the goal is due (0 = Sunday, 6 = Saturday). Otherwise, this value specifies which day of the month the goal is due (1 = 1st, 31 = 31st, null = Last day of Month). | [optional]
21+
**goal_cadence** | **int** | The goal cadence. Value in range 0-14. There are two subsets of these values which behave differently. For values 0, 1, 2, and 13, the goal's due date repeats every goal_cadence * goal_cadence_frequency, where 0 = None, 1 = Monthly, 2 = Weekly, and 13 = Yearly. For example, goal_cadence 1 with goal_cadence_frequency 2 means the goal is due every other month. For values 3-12 and 14, goal_cadence_frequency is ignored and the goal's due date repeats every goal_cadence, where 3 = Every 2 Months, 4 = Every 3 Months, ..., 12 = Every 11 Months, and 14 = Every 2 Years. | [optional]
22+
**goal_cadence_frequency** | **int** | The goal cadence frequency. When goal_cadence is 0, 1, 2, or 13, a goal's due date repeats every goal_cadence * goal_cadence_frequency. For example, goal_cadence 1 with goal_cadence_frequency 2 means the goal is due every other month. When goal_cadence is 3-12 or 14, goal_cadence_frequency is ignored. | [optional]
23+
**goal_creation_month** | **date** | The month a goal was created | [optional]
24+
**goal_target** | **int** | The goal target amount in milliunits | [optional]
25+
**goal_target_month** | **date** | DEPRECATED: No longer used. Use `goal_target_date` instead. | [optional]
26+
**goal_target_date** | **date** | The target date for the goal to be completed. Only some goal types specify this date. | [optional]
27+
**goal_percentage_complete** | **int** | The percentage completion of the goal | [optional]
28+
**goal_months_to_budget** | **int** | The number of months, including the current month, left in the current goal period. | [optional]
29+
**goal_under_funded** | **int** | The amount of funding still needed in the current month to stay on track towards completing the goal within the current goal period. This amount will generally correspond to the 'Underfunded' amount in the web and mobile clients except when viewing a category with a Needed for Spending Goal in a future month. The web and mobile clients will ignore any funding from a prior goal period when viewing category with a Needed for Spending Goal in a future month. | [optional]
30+
**goal_overall_funded** | **int** | The total amount funded towards the goal within the current goal period. | [optional]
31+
**goal_overall_left** | **int** | The amount of funding still needed to complete the goal within the current goal period. | [optional]
32+
**goal_snoozed_at** | **datetime** | The date/time the goal was snoozed. If the goal is not snoozed, this will be null. | [optional]
33+
**deleted** | **bool** | Whether or not the category has been deleted. Deleted categories will only be included in delta requests. |
34+
35+
## Example
36+
37+
```python
38+
from ynab.models.category_base import CategoryBase
39+
40+
# TODO update the JSON string below
41+
json = "{}"
42+
# create an instance of CategoryBase from a JSON string
43+
category_base_instance = CategoryBase.from_json(json)
44+
# print the JSON string representation of the object
45+
print(CategoryBase.to_json())
46+
47+
# convert the object into a dict
48+
category_base_dict = category_base_instance.to_dict()
49+
# create an instance of CategoryBase from a dict
50+
category_base_from_dict = CategoryBase.from_dict(category_base_dict)
51+
```
52+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
53+
54+

docs/ExistingCategory.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ Name | Type | Description | Notes
88
**name** | **str** | | [optional]
99
**note** | **str** | | [optional]
1010
**category_group_id** | **UUID** | | [optional]
11-
**goal_target** | **int** | 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. | [optional]
11+
**goal_target** | **int** | The goal target amount in milliunits format. If value is specified and goal has not already been configured for category, a monthly goal will be created for the category with this target amount. If goal_type is not specified, it will default to 'NEED' or 'MF' for Credit Card Payment categories. | [optional]
1212
**goal_target_date** | **date** | The goal target date in ISO format (e.g. 2016-12-01). | [optional]
13+
**goal_needs_whole_amount** | **bool** | Whether the goal requires the full target amount each period. Only supported for 'NEED' goals. When true, the goal is configured as 'Set aside another...'. When false, the goal is configured as 'Refill up to...'. | [optional]
1314

1415
## Example
1516

docs/HybridTransaction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Name | Type | Description | Notes
2424
**import_payee_name_original** | **str** | If the transaction was imported, the original payee name as it appeared on the statement | [optional]
2525
**debt_transaction_type** | **str** | If the transaction is a debt/loan account transaction, the type of transaction | [optional]
2626
**deleted** | **bool** | Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests. |
27+
**amount_formatted** | **str** | The transaction amount formatted in the plan's currency format | [optional]
28+
**amount_currency** | **float** | The transaction amount as a decimal currency amount | [optional]
2729
**type** | **str** | Whether the hybrid transaction represents a regular transaction or a subtransaction |
2830
**parent_transaction_id** | **str** | For subtransaction types, this is the id of the parent transaction. For transaction types, this id will be always be null. | [optional]
2931
**account_name** | **str** | |

docs/MoneyMovement.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Name | Type | Description | Notes
1414
**from_category_id** | **UUID** | The id of the category the money was moved from | [optional]
1515
**to_category_id** | **UUID** | The id of the category the money was moved to | [optional]
1616
**amount** | **int** | The amount of the money movement in milliunits format |
17+
**amount_formatted** | **str** | The money movement amount formatted in the plan's currency format | [optional]
18+
**amount_currency** | **float** | The money movement amount as a decimal currency amount | [optional]
1719

1820
## Example
1921

0 commit comments

Comments
 (0)