Skip to content

Commit

Permalink
Merge pull request #51 from CalvinChanCan/feat
Browse files Browse the repository at this point in the history
  • Loading branch information
hammem authored Nov 29, 2023
2 parents 412a66e + 2368388 commit cc2f6c7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions monarchmoney/monarchmoney.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,11 @@ async def get_transactions(
needsReview
attachments {
id
extension
filename
originalAssetUrl
publicId
sizeBytes
__typename
}
isSplitTransaction
Expand Down Expand Up @@ -640,6 +645,8 @@ async def get_transaction_categories(self) -> Dict[str, Any]:
systemCategory
isSystemCategory
isDisabled
updatedAt
createdAt
group {
id
name
Expand All @@ -652,6 +659,29 @@ async def get_transaction_categories(self) -> Dict[str, Any]:
)
return await self.gql_call(operation="GetCategories", graphql_query=query)

async def get_transaction_category_groups(self) -> Dict[str, Any]:
"""
Gets all the category groups configured in the account.
"""
query = gql(
"""
query ManageGetCategoryGroups {
categoryGroups {
id
name
order
type
updatedAt
createdAt
__typename
}
}
"""
)
return await self.gql_call(
operation="ManageGetCategoryGroups", graphql_query=query
)

async def get_transaction_tags(self) -> Dict[str, Any]:
"""
Gets all the tags configured in the account.
Expand Down

0 comments on commit cc2f6c7

Please sign in to comment.