Open noone-silent opened 4 hours ago
Thank you for addressing the issue. I'll take a look in the next couple hours and give you feedback.
@noone-silent Could you please explain your use case or provide the UBL document? Are you trying to read / create a EN16931 compliant UBL document?
The official codelist of EN16931 does not state, that the value GLN is supported or to be expected as EAS value. You may take a look at the list here:
(You should download the list, as it is a xlsx and way easier to navigate in excel).
The enums and the basic principle of the library is to be compliant to EN16931 and not to fully support the specification of UBL or CII. Maybe the value GLN was supported in an older version of EN16931. Maybe it is missing from the codelist?
According to the documentation of the UBL Standard, there is a schemeID
GLN
for addresses, parties etc. This is missing in theElectronicAddressScheme.php
class and throws an Exception:UBL documentation sample with GLN scheme: http://www.datypic.com/sc/ubl21/e-cac_AccountingCustomerParty.html