Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.gitignore
docs/Account.md
docs/AccountBase.md
docs/AccountResponse.md
docs/AccountResponseData.md
docs/AccountType.md
Expand All @@ -14,6 +15,7 @@ docs/CategoriesApi.md
docs/CategoriesResponse.md
docs/CategoriesResponseData.md
docs/Category.md
docs/CategoryBase.md
docs/CategoryGroup.md
docs/CategoryGroupWithCategories.md
docs/CategoryResponse.md
Expand All @@ -28,18 +30,21 @@ docs/HybridTransaction.md
docs/HybridTransactionsResponse.md
docs/HybridTransactionsResponseData.md
docs/MoneyMovement.md
docs/MoneyMovementBase.md
docs/MoneyMovementGroup.md
docs/MoneyMovementGroupsResponse.md
docs/MoneyMovementGroupsResponseData.md
docs/MoneyMovementsApi.md
docs/MoneyMovementsResponse.md
docs/MoneyMovementsResponseData.md
docs/MonthDetail.md
docs/MonthDetailBase.md
docs/MonthDetailResponse.md
docs/MonthDetailResponseData.md
docs/MonthSummariesResponse.md
docs/MonthSummariesResponseData.md
docs/MonthSummary.md
docs/MonthSummaryBase.md
docs/MonthsApi.md
docs/NewCategory.md
docs/NewTransaction.md
Expand Down Expand Up @@ -73,11 +78,14 @@ docs/PlansApi.md
docs/PostAccountWrapper.md
docs/PostCategoryGroupWrapper.md
docs/PostCategoryWrapper.md
docs/PostPayee.md
docs/PostPayeeWrapper.md
docs/PostScheduledTransactionWrapper.md
docs/PostTransactionsWrapper.md
docs/PutScheduledTransactionWrapper.md
docs/PutTransactionWrapper.md
docs/SaveAccount.md
docs/SaveAccountType.md
docs/SaveCategory.md
docs/SaveCategoryGroup.md
docs/SaveCategoryGroupResponse.md
Expand All @@ -95,21 +103,25 @@ docs/SaveTransactionWithOptionalFields.md
docs/SaveTransactionsResponse.md
docs/SaveTransactionsResponseData.md
docs/ScheduledSubTransaction.md
docs/ScheduledSubTransactionBase.md
docs/ScheduledTransactionDetail.md
docs/ScheduledTransactionFrequency.md
docs/ScheduledTransactionResponse.md
docs/ScheduledTransactionResponseData.md
docs/ScheduledTransactionSummary.md
docs/ScheduledTransactionSummaryBase.md
docs/ScheduledTransactionsApi.md
docs/ScheduledTransactionsResponse.md
docs/ScheduledTransactionsResponseData.md
docs/SubTransaction.md
docs/SubTransactionBase.md
docs/TransactionClearedStatus.md
docs/TransactionDetail.md
docs/TransactionFlagColor.md
docs/TransactionResponse.md
docs/TransactionResponseData.md
docs/TransactionSummary.md
docs/TransactionSummaryBase.md
docs/TransactionsApi.md
docs/TransactionsImportResponse.md
docs/TransactionsImportResponseData.md
Expand All @@ -123,6 +135,18 @@ pyproject.toml
requirements.txt
test-requirements.txt
test/__init__.py
test/test_account_base.py
test/test_category_base.py
test/test_money_movement_base.py
test/test_month_detail_base.py
test/test_month_summary_base.py
test/test_post_payee.py
test/test_post_payee_wrapper.py
test/test_save_account_type.py
test/test_scheduled_sub_transaction_base.py
test/test_scheduled_transaction_summary_base.py
test/test_sub_transaction_base.py
test/test_transaction_summary_base.py
tox.ini
ynab/__init__.py
ynab/api/__init__.py
Expand All @@ -142,6 +166,7 @@ ynab/configuration.py
ynab/exceptions.py
ynab/models/__init__.py
ynab/models/account.py
ynab/models/account_base.py
ynab/models/account_response.py
ynab/models/account_response_data.py
ynab/models/account_type.py
Expand All @@ -154,6 +179,7 @@ ynab/models/bulk_transactions.py
ynab/models/categories_response.py
ynab/models/categories_response_data.py
ynab/models/category.py
ynab/models/category_base.py
ynab/models/category_group.py
ynab/models/category_group_with_categories.py
ynab/models/category_response.py
Expand All @@ -168,17 +194,20 @@ ynab/models/hybrid_transaction.py
ynab/models/hybrid_transactions_response.py
ynab/models/hybrid_transactions_response_data.py
ynab/models/money_movement.py
ynab/models/money_movement_base.py
ynab/models/money_movement_group.py
ynab/models/money_movement_groups_response.py
ynab/models/money_movement_groups_response_data.py
ynab/models/money_movements_response.py
ynab/models/money_movements_response_data.py
ynab/models/month_detail.py
ynab/models/month_detail_base.py
ynab/models/month_detail_response.py
ynab/models/month_detail_response_data.py
ynab/models/month_summaries_response.py
ynab/models/month_summaries_response_data.py
ynab/models/month_summary.py
ynab/models/month_summary_base.py
ynab/models/new_category.py
ynab/models/new_transaction.py
ynab/models/patch_category_group_wrapper.py
Expand Down Expand Up @@ -208,11 +237,14 @@ ynab/models/plan_summary_response_data.py
ynab/models/post_account_wrapper.py
ynab/models/post_category_group_wrapper.py
ynab/models/post_category_wrapper.py
ynab/models/post_payee.py
ynab/models/post_payee_wrapper.py
ynab/models/post_scheduled_transaction_wrapper.py
ynab/models/post_transactions_wrapper.py
ynab/models/put_scheduled_transaction_wrapper.py
ynab/models/put_transaction_wrapper.py
ynab/models/save_account.py
ynab/models/save_account_type.py
ynab/models/save_category.py
ynab/models/save_category_group.py
ynab/models/save_category_group_response.py
Expand All @@ -230,20 +262,24 @@ ynab/models/save_transaction_with_optional_fields.py
ynab/models/save_transactions_response.py
ynab/models/save_transactions_response_data.py
ynab/models/scheduled_sub_transaction.py
ynab/models/scheduled_sub_transaction_base.py
ynab/models/scheduled_transaction_detail.py
ynab/models/scheduled_transaction_frequency.py
ynab/models/scheduled_transaction_response.py
ynab/models/scheduled_transaction_response_data.py
ynab/models/scheduled_transaction_summary.py
ynab/models/scheduled_transaction_summary_base.py
ynab/models/scheduled_transactions_response.py
ynab/models/scheduled_transactions_response_data.py
ynab/models/sub_transaction.py
ynab/models/sub_transaction_base.py
ynab/models/transaction_cleared_status.py
ynab/models/transaction_detail.py
ynab/models/transaction_flag_color.py
ynab/models/transaction_response.py
ynab/models/transaction_response_data.py
ynab/models/transaction_summary.py
ynab/models/transaction_summary_base.py
ynab/models/transactions_import_response.py
ynab/models/transactions_import_response_data.py
ynab/models/transactions_response.py
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.20.0
7.21.0
6 changes: 6 additions & 0 deletions docs/Account.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ Name | Type | Description | Notes
**debt_minimum_payments** | **Dict[str, int]** | | [optional]
**debt_escrow_amounts** | **Dict[str, int]** | | [optional]
**deleted** | **bool** | Whether or not the account has been deleted. Deleted accounts will only be included in delta requests. |
**balance_formatted** | **str** | The current available balance of the account formatted in the plan's currency format | [optional]
**balance_currency** | **float** | The current available balance of the account as a decimal currency amount | [optional]
**cleared_balance_formatted** | **str** | The current cleared balance of the account formatted in the plan's currency format | [optional]
**cleared_balance_currency** | **float** | The current cleared balance of the account as a decimal currency amount | [optional]
**uncleared_balance_formatted** | **str** | The current uncleared balance of the account formatted in the plan's currency format | [optional]
**uncleared_balance_currency** | **float** | The current uncleared balance of the account as a decimal currency amount | [optional]

## Example

Expand Down
46 changes: 46 additions & 0 deletions docs/AccountBase.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# AccountBase


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **UUID** | |
**name** | **str** | |
**type** | [**AccountType**](AccountType.md) | |
**on_budget** | **bool** | Whether this account is \"on budget\" or not |
**closed** | **bool** | Whether this account is closed or not |
**note** | **str** | | [optional]
**balance** | **int** | The current available balance of the account in milliunits format |
**cleared_balance** | **int** | The current cleared balance of the account in milliunits format |
**uncleared_balance** | **int** | The current uncleared balance of the account in milliunits format |
**transfer_payee_id** | **UUID** | The payee id which should be used when transferring to this account |
**direct_import_linked** | **bool** | Whether or not the account is linked to a financial institution for automatic transaction import. | [optional]
**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]
**last_reconciled_at** | **datetime** | A date/time specifying when the account was last reconciled. | [optional]
**debt_original_balance** | **int** | This field is deprecated and will always be null. | [optional]
**debt_interest_rates** | **Dict[str, int]** | | [optional]
**debt_minimum_payments** | **Dict[str, int]** | | [optional]
**debt_escrow_amounts** | **Dict[str, int]** | | [optional]
**deleted** | **bool** | Whether or not the account has been deleted. Deleted accounts will only be included in delta requests. |

## Example

```python
from ynab.models.account_base import AccountBase

# TODO update the JSON string below
json = "{}"
# create an instance of AccountBase from a JSON string
account_base_instance = AccountBase.from_json(json)
# print the JSON string representation of the object
print(AccountBase.to_json())

# convert the object into a dict
account_base_dict = account_base_instance.to_dict()
# create an instance of AccountBase from a dict
account_base_from_dict = AccountBase.from_dict(account_base_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


14 changes: 14 additions & 0 deletions docs/Category.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ Name | Type | Description | Notes
**goal_overall_left** | **int** | The amount of funding still needed to complete the goal within the current goal period. | [optional]
**goal_snoozed_at** | **datetime** | The date/time the goal was snoozed. If the goal is not snoozed, this will be null. | [optional]
**deleted** | **bool** | Whether or not the category has been deleted. Deleted categories will only be included in delta requests. |
**balance_formatted** | **str** | Available balance of the category formatted in the plan's currency format | [optional]
**balance_currency** | **float** | Available balance of the category as a decimal currency amount | [optional]
**activity_formatted** | **str** | Activity of the category formatted in the plan's currency format | [optional]
**activity_currency** | **float** | Activity of the category as a decimal currency amount | [optional]
**budgeted_formatted** | **str** | Assigned (budgeted) amount of the category formatted in the plan's currency format | [optional]
**budgeted_currency** | **float** | Assigned (budgeted) amount of the category as a decimal currency amount | [optional]
**goal_target_formatted** | **str** | The goal target amount formatted in the plan's currency format | [optional]
**goal_target_currency** | **float** | The goal target amount as a decimal currency amount | [optional]
**goal_under_funded_formatted** | **str** | The goal underfunded amount formatted in the plan's currency format | [optional]
**goal_under_funded_currency** | **float** | The goal underfunded amount as a decimal currency amount | [optional]
**goal_overall_funded_formatted** | **str** | The total amount funded towards the goal formatted in the plan's currency format | [optional]
**goal_overall_funded_currency** | **float** | The total amount funded towards the goal as a decimal currency amount | [optional]
**goal_overall_left_formatted** | **str** | The amount of funding still needed to complete the goal formatted in the plan's currency format | [optional]
**goal_overall_left_currency** | **float** | The amount of funding still needed to complete the goal as a decimal currency amount | [optional]

## Example

Expand Down
54 changes: 54 additions & 0 deletions docs/CategoryBase.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# CategoryBase


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **UUID** | |
**category_group_id** | **UUID** | |
**category_group_name** | **str** | | [optional]
**name** | **str** | |
**hidden** | **bool** | Whether or not the category is hidden |
**original_category_group_id** | **UUID** | DEPRECATED: No longer used. Value will always be null. | [optional]
**note** | **str** | | [optional]
**budgeted** | **int** | Assigned (budgeted) amount in milliunits format |
**activity** | **int** | Activity amount in milliunits format |
**balance** | **int** | Available balance in milliunits format |
**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]
**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]
**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]
**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]
**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]
**goal_creation_month** | **date** | The month a goal was created | [optional]
**goal_target** | **int** | The goal target amount in milliunits | [optional]
**goal_target_month** | **date** | DEPRECATED: No longer used. Use `goal_target_date` instead. | [optional]
**goal_target_date** | **date** | The target date for the goal to be completed. Only some goal types specify this date. | [optional]
**goal_percentage_complete** | **int** | The percentage completion of the goal | [optional]
**goal_months_to_budget** | **int** | The number of months, including the current month, left in the current goal period. | [optional]
**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]
**goal_overall_funded** | **int** | The total amount funded towards the goal within the current goal period. | [optional]
**goal_overall_left** | **int** | The amount of funding still needed to complete the goal within the current goal period. | [optional]
**goal_snoozed_at** | **datetime** | The date/time the goal was snoozed. If the goal is not snoozed, this will be null. | [optional]
**deleted** | **bool** | Whether or not the category has been deleted. Deleted categories will only be included in delta requests. |

## Example

```python
from ynab.models.category_base import CategoryBase

# TODO update the JSON string below
json = "{}"
# create an instance of CategoryBase from a JSON string
category_base_instance = CategoryBase.from_json(json)
# print the JSON string representation of the object
print(CategoryBase.to_json())

# convert the object into a dict
category_base_dict = category_base_instance.to_dict()
# create an instance of CategoryBase from a dict
category_base_from_dict = CategoryBase.from_dict(category_base_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


3 changes: 2 additions & 1 deletion docs/ExistingCategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ Name | Type | Description | Notes
**name** | **str** | | [optional]
**note** | **str** | | [optional]
**category_group_id** | **UUID** | | [optional]
**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]
**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]
**goal_target_date** | **date** | The goal target date in ISO format (e.g. 2016-12-01). | [optional]
**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]

## Example

Expand Down
2 changes: 2 additions & 0 deletions docs/HybridTransaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Name | Type | Description | Notes
**import_payee_name_original** | **str** | If the transaction was imported, the original payee name as it appeared on the statement | [optional]
**debt_transaction_type** | **str** | If the transaction is a debt/loan account transaction, the type of transaction | [optional]
**deleted** | **bool** | Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests. |
**amount_formatted** | **str** | The transaction amount formatted in the plan's currency format | [optional]
**amount_currency** | **float** | The transaction amount as a decimal currency amount | [optional]
**type** | **str** | Whether the hybrid transaction represents a regular transaction or a subtransaction |
**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]
**account_name** | **str** | |
Expand Down
2 changes: 2 additions & 0 deletions docs/MoneyMovement.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Name | Type | Description | Notes
**from_category_id** | **UUID** | The id of the category the money was moved from | [optional]
**to_category_id** | **UUID** | The id of the category the money was moved to | [optional]
**amount** | **int** | The amount of the money movement in milliunits format |
**amount_formatted** | **str** | The money movement amount formatted in the plan's currency format | [optional]
**amount_currency** | **float** | The money movement amount as a decimal currency amount | [optional]

## Example

Expand Down
Loading