Преобразование OFX файлов запросов и ответов в Python API
Contents
[
Hide
]
Aspose.Finance для Python через .NET поддерживает преобразование файлов запросов и ответов OFX между форматами 1.03 и 2.2. В следующих примерах C# показано преобразование файлов запросов и ответов OFX из формата 1.03 в формат 2.2 с использованием файла API.
Преобразование файла запроса OFX из формата 1.03 в формат 2.2 в формате .NET
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert OFX Request File from 1.03 to 2.2 format | |
document = OfxRequestDocument(os.path.join(sourceDir, "bankTransactionReq.sgml")) | |
document.save(os.path.join(outputDir, "bankTransactionReq.xml"), OfxVersionEnum.V2x) |
Преобразование файла ответов OFX из формата 1.03 в формат 2.2 в формате .NET
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert OFX Response File from 1.03 to 2.2 format | |
document = OfxResponseDocument(srcePath + "bankTransactionRes.sgml") | |
document.save(outputPath + "bankTransactionRes.xml", OfxVersionEnum.V2x) |