Skip to content

Commit

Permalink
remove delete_account from other branch
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinChanCan committed Mar 7, 2024
1 parent 76ebcde commit 00c6760
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ As of writing this README, the following methods are supported:
- `set_transaction_tags` - sets the tags on a transaction
- `set_budget_amount` - sets a budget's value to the given amount (date allowed, will only apply to month specified by default). A zero amount value will "unset" or "clear" the budget for the given category.
- `create_manual_account` - creates a new manual account
- `delete_account` - deletes an account by the provided account id
- `upload_and_parse_balance_history` - uploads and parses account history csv file for a given account

# Contributing
Expand Down
40 changes: 0 additions & 40 deletions monarchmoney/monarchmoney.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,46 +308,6 @@ async def create_manual_account(
variables=variables,
)

async def delete_account(
self,
account_id: str,
) -> Dict[str, Any]:
"""
Deletes an account
"""
query = gql(
"""
mutation Common_DeleteAccount($id: UUID!) {
deleteAccount(id: $id) {
deleted
errors {
...PayloadErrorFields
__typename
}
__typename
}
}
fragment PayloadErrorFields on PayloadError {
fieldErrors {
field
messages
__typename
}
message
code
__typename
}
"""
)

variables = {"id": account_id}

return await self.gql_call(
operation="Common_DeleteAccount",
graphql_query=query,
variables=variables,
)

async def request_accounts_refresh(self, account_ids: List[str]) -> bool:
"""
Requests Monarch to refresh account balances and transactions with
Expand Down

0 comments on commit 00c6760

Please sign in to comment.