Axis
pipelines.extraction.email.banks.axis
Summary
Axis bank-specific port implementations (email message path).
Faithful port of domain/extraction/banks/axis/email.py
(AxisTransactionParserAdaptor.parse): INR amount, debited/credited
direction, DD-MM-YYYY timestamped date, and a description sliced between
Axis Bank Credit Card Transaction: and the trailing spam markers.
Classes
AxisEmailExtractionPipeline
Bases: ImplEmailExtractionPipeline
Axis email graph root — pins the Axis message parser.
Attributes:
| Name | Type | Description |
|---|---|---|
message_parser |
AxisMessageParserPort
|
Axis message parser. |
Functions
run
Run the email extraction chain end-to-end.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source |
Raw extraction source. |
required |
Returns:
| Type | Description |
|---|---|
|
List of raw expense records. |
AxisMessageParserPort
Bases: ImplMessageParserPort
Axis email parser — INR amount, debited/credited, timestamped date.
Attributes:
| Name | Type | Description |
|---|---|---|
description_starts |
List[str]
|
Axis description start markers. |
description_ends |
List[str]
|
Axis description end markers. |
Functions
parse
Parse an Axis message into one txn dict.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message |
str
|
Flattened message text. |
required |
Returns:
| Type | Description |
|---|---|
|
Txn dict with txn_date, particulars, amount, balance, direction. |
Raises:
| Type | Description |
|---|---|
ValueError
|
When the amount or transaction date is not found. |