Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow tradeparty electronic address with leitwegid like setEmail #366

Open
razilein opened this issue Apr 3, 2024 · 1 comment
Open

Comments

@razilein
Copy link

razilein commented Apr 3, 2024

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">mustermann@example.com</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>
@jstaerk
Copy link
Collaborator

jstaerk commented Apr 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants