forked from janunger/aqbanking-php
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Transaction should not convert local* and remote* values into an Account entity.
- Account is an AqBanking Account, with mandatory BLZ as
bankCode, which is needed for requests. - "Account" from Transaction is more like a "BankingContact" without any mandatory "BLZ", eg. bankCode is the BIC an accountNumber the IBAN
- The fetched fields depends on download mode. "CAMT" is different from "not CAMT"
- What is specified as "localName" in Transaction has nothing to do with the real local "Account" oder "User", it is what the other party (remote) has entered in the "Empfänger" field
- Some fields from a Transaction are omitted by parser, but should not, all fields should be there.
Possible solution:
- construct the Transaction with a array of key,values from transaction xml or direct from xml content.
Transaction::fromXML('xml content')Transaction::fromArray('array<key, value>')new Transaction('array<key, value>')- or similar
- use magic getters
__get('key of transaction data') - Do not convert
local*andremote*values to an (AqBanking) Account entity. - The true
local*is provided by theaccountInfonode - turning value into a Money Object by its getter.
getValue() => return Money …
Metadata
Metadata
Assignees
Labels
No labels