Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delineate All Bank Transaction Codes in Enum #15

Open
svapnil opened this issue Nov 19, 2024 · 0 comments
Open

Delineate All Bank Transaction Codes in Enum #15

svapnil opened this issue Nov 19, 2024 · 0 comments

Comments

@svapnil
Copy link
Owner

svapnil commented Nov 19, 2024

ISO20022 Bank Transaction Codes are currently stored as strings, but it would be great if we could translate this file into a structured enum:

https://www.iso20022.org/sites/default/files/media/file/BTC_Codification_30October2023.xls

Maybe even include a script!

Payments / CashManagement are probably the only domains that are relevant for this package so far. That said, it does include hundreds of subfamilies that we'd have to deal with. In the future I'm imagining something like:

export const DomainFamily = {
    Payments: {
        ...
    },
    CashManagement: {
        AccountBalancing: "ACCB",
        ....
    }
} as const;


export const SubdomainFamily = {
    Payments: {
        ...
    },
    CashManagement: {
        AccountBalancing: {
              CrossBorder: "XBRD",
              Sweeping: "SWEP"
       }
        ....
    }
} as const;

Basically, we'd codify https://www.iso20022.org/catalogue-messages/additional-content-messages/external-code-sets . I'll make this an Issue so it can be perhaps tackles in the future!

Originally posted by @svapnil in #14 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant