Make TransactionType a str enum instead of int
kaushiksk opened this issue · 0 comments
kaushiksk commented
Currently, when the detailed summary is exported, the transaction type with key "type" consists of the string version of the TransactionType Enum.
casparser/casparser/process/cas_detailed.py
Line 200 in e2f14a0
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).