mustangproject
mustangproject copied to clipboard
Allow tradeparty electronic address with leitwegid like setEmail
I'm using ZUGFeRD2PullProvider with the profile XRechnung.
I want do add the recipient. It's necessary for validation to add an electronic address. I want to use the leitwegId instead of the email-address.
Maybe you can provide a new method setElectronicAddress(String address, String easCode) for this purpose? In Javadoc you can add a hint to use the eas-code from this list: https://www.xrepository.de/details/urn:xoev-de:kosit:codeliste:eas_5#version
<ram:BuyerTradeParty>
<ram:ID>98765</ram:ID>
<ram:Name>Mustermann GmbH</ram:Name>
<ram:PostalTradeAddress>
<ram:PostcodeCode>99999</ram:PostcodeCode>
<ram:LineOne>Teststraße 1</ram:LineOne>
<ram:CityName>Musterhausen</ram:CityName>
<ram:CountryID>DE</ram:CountryID>
</ram:PostalTradeAddress>
<ram:URIUniversalCommunication>
<ram:URIID schemeID="EM">[email protected]</ram:URIID>
</ram:URIUniversalCommunication>
</ram:BuyerTradeParty>
setElectronicAddress("123456789", "0204") should generate:
<ram:BuyerTradeParty>
<ram:ID>98765</ram:ID>
<ram:Name>Mustermann GmbH</ram:Name>
<ram:PostalTradeAddress>
<ram:PostcodeCode>99999</ram:PostcodeCode>
<ram:LineOne>Teststraße 1</ram:LineOne>
<ram:CityName>Musterhausen</ram:CityName>
<ram:CountryID>DE</ram:CountryID>
</ram:PostalTradeAddress>
<ram:URIUniversalCommunication>
<ram:URIID schemeID="0204">123456789</ram:URIID>
</ram:URIUniversalCommunication>
</ram:BuyerTradeParty>
good idea, I suggest to use a SchemedID instance for that purpose, three possibilities:
- I can show you how to implement & push it yourself (possible meetings e.g. https://doodle.com/meeting/participate/id/b6Y3gqLa),
- You could wait until someone has time and feels like it
- if you want to push it: commercial support support for that is clearly in the three-digit-euro-range