genkgo / camt

PHP Parser for CAMT messages
MIT License
81 stars 67 forks source link

Missing account information #160

Open juliangums opened 1 week ago

juliangums commented 1 week ago

My CAMT53 has some more info on the account. Especially the name attribute is very important for me. The doesn't seem to be an easy way to get it, or am I missing something? I can submit a PR where I create another account class for this and change the logic in this method https://github.com/genkgo/camt/blob/master/src/Camt053/Decoder/Message.php#L56 but we could also just add a method to return the xml of an account?

            <Acct>
                <Id>
                    <IBAN>...</IBAN>
                </Id>
                <Ccy>...</Ccy>
                <Nm>...</Nm>
                <Svcr>
                    <FinInstnId>
                        <BIC>...</BIC>
                        <ClrSysMmbId>
                            <ClrSysId>
                                <Cd>...</Cd>
                            </ClrSysId>
                            <MmbId>...</MmbId>
                        </ClrSysMmbId>
                        <Nm>...</Nm>
                    </FinInstnId>
                </Svcr>
            </Acct>
juliangums commented 1 week ago

created a PR to read Nm https://github.com/genkgo/camt/pull/161