This repository contains a full set of Golang parse to the ISO-20022 data catalogs ISO-20022 specifications
See examples/
directory for an example of usage
import (
"encoding/xml"
"github.com/yudaprama/iso20022/pacs"
"io/ioutil"
"log"
"os"
)
func main() {
messages, err := ioutil.ReadFile("./example-message.xml")
if err != nil {
log.Fatalf("Unable to read file: %v", err)
os.Exit(1)
}
var messageParsed pacs.Document00800106
err = xml.Unmarshal(messages, &messageParsed)
if err != nil {
log.Fatalf("Unable to parse file: %v", err)
os.Exit(1)
}
log.Printf("Interbank Settlement Date: %v", messageParsed.Message.GroupHeader.InterbankSettlementDate)
}
Message types covers ISO-20022 messages:
- ACMT - Account Management
- ADMI - Administration
- AUTH - Authorities
- CAAA - Acceptor to Acquirer Card Transactions
- CAAM - ATM Management
- CAIN - Acquirer to Issuer Card Transactions
- CAMT - Cash Management
- CATM - Terminal Management
- CATP - ATM Card Transactions
- COLR - Collateral Management
- FXTR - Foreign Exchange Trade
- HEAD - Business Application Header
- PACS - Payments Clearing and Settlement
- PAIN - Payments Initiation
- REDA - Reference Data
- REMT - Payments Remittance Advice
- SECL - Securities Clearing
- SEEV - Securities Events
- SEMT - Securities Management
- SESE - Securities Settlement
- SETR - Securities Trade
- SUPL - Supplementary Data
- TREA - Treasury
- TSIN - Trade Services Initiation
- TSMT - Trade Services Management
- TSRV - Trade Services