Skip to content

Release v1.2.4

Choose a tag to compare

@github-actions github-actions released this 12 Jan 08:55
· 225 commits to main since this release

Release 1.2.4

Refactored CreditTransfer\Transaction to use creditor* field names for better code clarity.

Breaking changes:

  • CreditTransfer\Transaction now uses creditor* methods instead of debtor*
  • generateFromArray() only accepts creditor* field names in arrays

Bug fixes:

  • Fixed incorrect mapping of creditor/debtor roles in SEPA Credit Transfer generation

Changelog

Changed

  • Credit Transfer Transaction Model: Refactored CreditTransfer\Transaction to use creditor* field names instead of debtor*
    • Changed field names: debtorIban → creditorIban, debtorName → creditorName, debtorBic → creditorBic, debtorAddress → creditorAddress
    • Updated all methods: getDebtorIban() → getCreditorIban(), setDebtorBic() → setCreditorBic(), etc.
    • This change makes the code self-documenting: Transaction fields now correctly reflect that they represent creditors (suppliers/beneficiaries that receive money)
    • Breaking Change: Code using CreditTransfer\Transaction directly must be updated to use the new creditor* method names
    • Breaking Change: The generateFromArray() method now accepts debtor* field names at the top level of the array (representing the company that pays) and creditor* field names in transactions (representing who receives payment). The deprecated debtor* field names in transactions are no longer supported

Fixed

  • Credit Transfer Generator: Fixed incorrect mapping of creditor/debtor roles in SEPA Credit Transfer generation
    • Corrected PaymentInformation to use debtor data (company that pays) instead of creditor data
    • Corrected CustomerCreditTransferInformation to use creditor data (supplier/beneficiary that receives) instead of debtor data
    • Updated address handling methods (setDebtorPostalAddress and setPostalAddress) to correctly map addresses
    • Updated DOM manipulation methods (addDebtorAddressToDom and addCreditorAddressToDom) to correctly add addresses to XML
    • This fix ensures compliance with SEPA pain.001 standard where one debtor (company) pays multiple creditors (suppliers)