ISO20022

The ISO20022 class is a core message creator for generating ISO20022 compliant messages. It requires an ISO20022Config object during instantiation, which includes the initiatingParty of type Party.

Constructor

export interface ISO20022Config {
    initiatingParty: Party;
}

// Example Usage
const iso20022 = new ISO20022({
    initiatingParty: {
        name: 'Acme Corporation',
        id: 'ACMECORP',
        account: {
            accountNumber: '123456789012',
        },
        agent: {
            bic: 'CHASUS33',
            bankAddress: {
                country: 'US',
            }
        }
    }
});

Initializes a new ISO20022 instance with the provided configuration.

In this case, ACMECORP is a unique ID given by the bank to identify the initiating party, given to by the bank.