v2.0.0 馃帀
This release introduces the ability to deserialize XML files into object trees. It also adds support for Carbon 3.x and Doctrine Collections 2.x, along with various updates to UBL structures.
Note: This is a major version release containing breaking changes. Please refer to the Upgrading Guide.
New Features & Improvements
- XML Deserialization: Added functionality to deserialize XML into an object tree.
- CreditNote: Added
xmlDeserializesupport for theCreditNoteclass to parse<cac:CreditNoteLine>elements. (Credits: @RoanB) - Invoice References:
- Added
<cac:DespatchDocumentReference>to<Invoice>. (Credits: @fMads) - Added
<cac:ReceiptDocumentReference>to<Invoice>. - Added
<cac:OriginatorDocumentReference>to<Invoice>.
- Added
- Address & Location:
- Standards:
- Added FRCTC Electronic Address (
0225) to EASCode. (Credits: @UbiManu) - Updated
AllowanceCharge::allowanceChargeReasonCodeto acceptint|string|null, allowing string values like "ZZZ". (Credits: @Mikael-Leger)
- Added FRCTC Electronic Address (
Bug Fixes
- Fixed
Attachment::xmlSerialize()to prevent output ofEmbeddedDocumentBinaryObjectwhen onlyexternalReferenceis set. (Credits: @fMads)
Maintenance
- Updated dependency constraints to support Carbon 3.x and Doctrine Collections 2.x. (Credits: @GHuygen)
Breaking Changes
- Class Structure:
Invoice::setAccountingSupplierPartyandgetAccountingSupplierPartynow use anAccountingPartyobject instead ofParty.Invoice::setAccountingCustomerPartyandgetAccountingCustomerPartynow use anAccountingPartyobject instead ofParty.- Removed
Invoice::accountingCustomerPartyContact. UseInvoice::getAccountingCustomerParty()->setAccountingContact()instead. Invoice::setSupplierAssignedAccountID/getmoved toAccountingParty::setSupplierAssignedAccountID/get.
- Renamed Methods:
Attachment:setFileStream/getFileStreamrenamed tosetBase64Content/getBase64Content.setUBLVersionID->setUBLVersionIdsetSupplierAssignedAccountID->setSupplierAssignedAccountIdsetUnitCodeListID->setUnitCodeListIdsetSchemeID->setSchemeIdsetCustomizationID->setCustomizationIdsetProfileID->setProfileId
Upgrading
See the upgrade guide for migration details:
UPGRADING.md