genkgo / camt

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

[FEATURE] Camt 053.001.* Ntry.CdtDbtInd not available in object structure #146

Closed sbuerk closed 1 year ago

sbuerk commented 1 year ago

The camt.053.001.* format provides an CdtDbtInd value for Ntry. This value is used internal during decoding phase to represent values in specific ways, e.g. for amounts representation. That value is not provided directly in the build object structure, but consumer are most likely could need or rely on this information, which is not restructable from other values.

<Ntry>
  <CdtDbtInd>CRDT</CdtDbtInd>
</Ntry>

This information should be made available. The Entry class does not contain any of the the direct Ntry information and build instead a EntryTransactionDetail object.

Generally it would be more obvious to have it on the Entry object, but following the current way the CreditDebitIdentifier should be added at least in the EntryTransactionDetail.