mustangproject icon indicating copy to clipboard operation
mustangproject copied to clipboard

Allow tradeparty electronic address with leitwegid like setEmail

Open razilein opened this issue 11 months ago • 1 comments

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>

razilein avatar Apr 03 '24 08:04 razilein

good idea, I suggest to use a SchemedID instance for that purpose, three possibilities:

  1. I can show you how to implement & push it yourself (possible meetings e.g. https://doodle.com/meeting/participate/id/b6Y3gqLa),
  2. You could wait until someone has time and feels like it
  3. if you want to push it: commercial support support for that is clearly in the three-digit-euro-range

jstaerk avatar Apr 04 '24 13:04 jstaerk