From 00c6760244cffda66f4c813487511443c497d392 Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Thu, 7 Mar 2024 11:35:01 -0500 Subject: [PATCH] remove delete_account from other branch --- README.md | 1 - monarchmoney/monarchmoney.py | 40 ------------------------------------ 2 files changed, 41 deletions(-) diff --git a/README.md b/README.md index 2b06d96..e1790ef 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/monarchmoney/monarchmoney.py b/monarchmoney/monarchmoney.py index a259a87..45ea7dc 100644 --- a/monarchmoney/monarchmoney.py +++ b/monarchmoney/monarchmoney.py @@ -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