perrich / sepawriter

Manage SEPA (Single Euro Payments Area) Credit and Debit Transfer for SEPA or international order.
Apache License 2.0
68 stars 48 forks source link

Wrong xmlns for pain.008.001.02 #26

Closed AndreK5 closed 2 years ago

AndreK5 commented 2 years ago

Hi.

Our financial department told me that the tag

is wrong and after a little google research it seems that they are right and it has to be They told me that our (german) bank will not accept it that way. Best regards André
AndreK5 commented 2 years ago

uh - something got lost - here with the missing tags:

Our financial department told me that the tag Document xmlns="urn:iso:std:iso:20022:tech:xsd:scthr:pain.008.001.02" should be Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02"

perrich commented 2 years ago

Hi,

Please explain how to produce something with the wrong data ?

Unit test checks that without issue and the code does not contains something like this.

AndreK5 commented 2 years ago

Hi. for a quick test:

string FILENAME = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "/sepa_debit_test_result.xml";

        SepaIbanData creditor = new SepaIbanData
        {
            Bic = "NOTPROVIDED",
            Iban = "FR7030002005500000157845Z02",
            Name = "DRK Irgendwo"
        };

        SepaDebitTransfer transfert = new SepaDebitTransfer
        {
            CreationDate = DateTime.Today,
            RequestedExecutionDate = DateTime.Today,
            MessageIdentification = "transferID",           //eindeutige ID der Dateierstellung
            PaymentInfoId = "paymentInfo",                  //Referenz zur eindeutigen Identifizierung eines Sammlers im Kontoauszug
            InitiatingPartyName = creditor.Name,
            Creditor = creditor,
            InitiatingPartyId = "ID vom DRK Irgendwo"       //Gläubiger-Identifikations-Nr.?
        };

        SepaDebitTransferTransaction debTransaction;

        debTransaction = new SepaDebitTransferTransaction
        {
            Id = "1",                
            Debtor = new SepaIbanData
            {
                Bic = "NOTPROVIDED",                        //IBAN only-Verfahren
                Iban = "DE89370400440532013000",
                Name = "Theo Tischgast"
            },
            MandateIdentification = "1111",                 //SEPA-Mandatsreferenz
            DateOfSignature = new DateTime(2012, 12, 7),
            Amount = 12,
            RemittanceInformation = "Rechnungsnr. 111",
            EndToEndId = "1"
        };
        transfert.AddDebitTransfer(debTransaction);

        debTransaction = new SepaDebitTransferTransaction
        {
            Id = "2",                
            Debtor = new SepaIbanData
            {
                Bic = "NOTPROVIDED",                        //IBAN only-Verfahren
                Iban = "FR1420041010050500013M02606",
                Name = "Maria Tischgast"
            },
            MandateIdentification = "2222",                 //SEPA-Mandatsreferenz
            DateOfSignature = new DateTime(2018, 12, 7),
            Amount = 22,
            RemittanceInformation = "Rechnungsnr. 112",
            EndToEndId = "2"
        };
        transfert.AddDebitTransfer(debTransaction);

        string result = transfert.AsXmlString();
        transfert.Save(FILENAME);

This creates this XML (with the additional "scthr": image

perrich commented 2 years ago

Thanks, but your code does not produce the issue. The library with current code version does not create the provided XML. Please debug your code but it is not related with the library.

image

AndreK5 commented 2 years ago

Thanks for your reply.

My result looks totally different ("xsi=..." is missing; additional scthr):

image

Where does the document definition come from?

AndreK5 commented 2 years ago

Hi.

FYI: if I use a local generated Perrich.SepaWriter.dll then the result is ok. If I use the NUGet-Package I get this additional "scthr".

perrich commented 2 years ago

Hi,

Thanks, I will update the Nuget Package (maybe an issue in a previous release).

AndreK5 commented 2 years ago

Hi.

Do you know when you will be able to update the package?

AndreK5 commented 2 years ago

Hi,

Thanks, I will update the Nuget Package (maybe an issue in a previous release).

Hi,

it would be great to get an updated package...