Comments (4)
Changed in e1b4c1e. I will make a new release tonight.
from python-sepa.
Sorry for the delay, but I just published version 0.5.4 to PyPI. The AddtlTxInf
tag works just fine for me with a sample file:
import json
import re
from sepa import parser
file_path = './camt-053-example.xml'
def strip_namespace(xml):
return re.sub(' xmlns="[^"]+"', '', xml, count=1)
# Read file
with open(file_path, 'r') as f:
input_data = f.read()
# Parse the bank statement XML to JSON
camt53 = parser.parse_string(parser.bank_to_customer_statement, bytes(strip_namespace(input_data), 'utf8'))
# Pretty print JSON information from bank statement
print(json.dumps(camt53, indent=4))
print()
...
<AddtlTxInf>SEC Code: CCD</AddtlTxInf>
...
...
"transaction_details": [
{
"refs": {
"message_id": "GSFCY3XIA1XR",
"account_servicer_reference": "GPB2121501121577",
"payment_information_id": "WB/GS/Msg002/WB01002",
"transaction_id": "GPB2121501121577"
},
"amount_details": {
"instructed_amount": {
"amount": {
"_value": "36.80",
"currency": "USD"
}
},
"transaction_amount": {
"amount": {
"_value": "36.80",
"currency": "USD"
}
}
},
"related_parties": {},
"purpose": {
"proprietary": "HSA-FUND"
},
"additional_information": "SEC Code: CCD"
}
]
...
from python-sepa.
I tried correcting this by hand, it seems to ignore it and still does not output the AddtlTxInf anymore. Before it did, as I remember. Any other ideas where this might come from? Also I saw that my bank now uses version camt.053.001.08, however in the spec it does not mention any changes to AddtlTxInf. https://www.six-group.com/dam/download/banking-services/interbank-clearing/de/standardization/iso/swiss-recommendations/implementation-guidelines-camt-developer_support-2022.pdf
from python-sepa.
I developed a soft based that could generate a xml sepa file sepaxml.com available in multi-linguage
from python-sepa.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-sepa.