Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
lino_xl.lib.b2c.camt¶
Class to parse camt files.
Classes
A bank statement groups data about several bank transactions. |
|
|
Single transaction that is part of a bank statement. |
Parser for camt bank statement import files. |
- class lino_xl.lib.b2c.camt.BankTransaction(stmt, seqno)¶
Bases:
object
Single transaction that is part of a bank statement.
- class lino_xl.lib.b2c.camt.BankStatement¶
Bases:
object
A bank statement groups data about several bank transactions.
- create_transaction()¶
Create and append transaction.
- class lino_xl.lib.b2c.camt.CamtParser¶
Bases:
object
Parser for camt bank statement import files.
- parse_date(ns, node)¶
“Parse a <Bal> element for a <Dt>.
- parse_amount(ns, node)¶
Parse element that contains Amount and CreditDebitIndicator.
- add_value_from_node(ns, node, xpath_str, obj, attr_name, join_str=None)¶
Add value to object from first or all nodes found with xpath.
If xpath_str is a list (or iterable), it will be seen as a series of search path’s in order of preference. The first item that results in a found node will be used to set a value.
- parse_transaction_details(ns, node, transaction)¶
Parse transaction details (message, party, account…).
- parse_transaction(ns, node, transaction)¶
Parse transaction (entry) node.
- parse_balance_amounts(statement, ns, node)¶
Return opening and closing balance.
Depending on kind of balance and statement, the balance might be in a different kind of node: OPBD = OpeningBalance PRCD = PreviousClosingBalance ITBD = InterimBalance (first ITBD is start-, second is end-balance) CLBD = ClosingBalance
- parse_statement(ns, node)¶
Parse a single Stmt node.
- check_version(ns, root)¶
Validate validity of camt file.
- parse(data)¶
Parse a camt.052 or camt.053 file.