Skip to content

Transaction <> Account #29

@grummbeer

Description

@grummbeer

Transaction should not convert local* and remote* values into an Account entity.

  1. Account is an AqBanking Account, with mandatory BLZ as bankCode, which is needed for requests.
  2. "Account" from Transaction is more like a "BankingContact" without any mandatory "BLZ", eg. bankCode is the BIC an accountNumber the IBAN
  3. The fetched fields depends on download mode. "CAMT" is different from "not CAMT"
  4. 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
  5. 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* and remote* values to an (AqBanking) Account entity.
  • The true local* is provided by the accountInfo node
  • turning value into a Money Object by its getter. getValue() => return Money …

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions