codereverser/casparser

Make TransactionType a str enum instead of int

kaushiksk opened this issue · 0 comments

Currently, when the detailed summary is exported, the transaction type with key "type" consists of the string version of the TransactionType Enum.

"type": txn_type.name,

While this is the right design, if someone wants to reuse the TransactionType Enum elsewhere (like I am) on the exported data, this becomes a slight nuisance, as Json parsers like pydantic will not automatically parse the string into the Enum (as TransactionType is an Enum of ints).