Repository navigation
Release v1.2.4
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\Transactionto usecreditor*field names instead ofdebtor*- 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\Transactiondirectly must be updated to use the newcreditor*method names - Breaking Change: The
generateFromArray()method now acceptsdebtor*field names at the top level of the array (representing the company that pays) andcreditor*field names in transactions (representing who receives payment). The deprecateddebtor*field names in transactions are no longer supported
- Changed field names:
Fixed
- Credit Transfer Generator: Fixed incorrect mapping of creditor/debtor roles in SEPA Credit Transfer generation
- Corrected
PaymentInformationto use debtor data (company that pays) instead of creditor data - Corrected
CustomerCreditTransferInformationto use creditor data (supplier/beneficiary that receives) instead of debtor data - Updated address handling methods (
setDebtorPostalAddressandsetPostalAddress) to correctly map addresses - Updated DOM manipulation methods (
addDebtorAddressToDomandaddCreditorAddressToDom) to correctly add addresses to XML - This fix ensures compliance with SEPA pain.001 standard where one debtor (company) pays multiple creditors (suppliers)
- Corrected