Skip to content

ballerina-platform/module-ballerinax-financial.swiftmt-to-iso20022

Repository files navigation

Ballerina SWIFT MT to ISO 20022 Data Mapper Library

Overview

The DataMapper Library is a comprehensive toolkit designed to convert SWIFT MT FIN messages into ISO 20022 XML within Ballerina applications. It simplifies the process of mapping SWIFT MT fields to their corresponding ISO 20022 elements, leveraging predefined records and parsers from the SWIFT MT and ISO 20022 libraries. This enables developers to seamlessly convert financial messages from the flat, text-based SWIFT format into the structured ISO 20022 XML standard, ensuring accurate and efficient data conversion.

Supported Conversions

  • SWIFT MT 1XX Category to ISO 20022
  • SWIFT MT 2XX Category to ISO 20022
  • SWIFT MT 9XX Category to ISO 20022

Usage

Conversion of SWIFT fin message to ISO 20022 Xml Standard

import ballerina/io;
import ballerinax/financial.swiftmtToIso20022 as mtToMx;

public function main() returns error? {
    string finMessage = string `{1:F01CHASUS33AXXX0000000000}
{2:I900CRESCHZZXXXXN}
{4:
:20:C11126A1378
:21:5482ABC
:25:9-9876543
:32A:090123USD233530,
-}`;
    io:println(mtToMx:toIso20022Xml(finMessage));
}

Report issues

To report bugs, request new features, start new discussions, view project boards, etc., go to the Ballerina library parent repository.

Useful Links

About

Swift MT to ISO 20022 Data Mapping Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •