Skip to content

Relaxed the foreign customer validation - spanish SII (#253) #360

Relaxed the foreign customer validation - spanish SII (#253)

Relaxed the foreign customer validation - spanish SII (#253) #360

GitHub Actions / Mews.Fiscalizations.All-Windows Tests succeeded Jul 3, 2024 in 1s

145 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
src/Austria/Mews.Fiscalizations.Austria.Tests/TestResults/test-results-Windows.trx 3✅ 4s
src/Basque/Mews.Fiscalizations.Basque.Tests/TestResults/test-results-Windows.trx 41✅ 40s
src/Core/Mews.Fiscalizations.Core.Tests/TestResults/test-results-Windows.trx 70✅ 968ms
src/Germany/Mews.Fiscalizations.Germany.Tests/TestResults/test-results-Windows.trx 11✅ 20s
src/Hungary/Mews.Fiscalizations.Hungary.Tests/TestResults/test-results-Windows.trx 15✅ 51s
src/Italy/Mews.Fiscalizations.Italy.Tests/TestResults/test-results-Windows.trx 3✅ 4s
src/Spain/Mews.Fiscalizations.Spain.Tests/TestResults/test-results-Windows.trx 2✅ 7s

✅ src/Austria/Mews.Fiscalizations.Austria.Tests/TestResults/test-results-Windows.trx

3 tests were completed in 4s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Mews.Fiscalizations.Austria.Tests.ATrustSignerTests 2✅ 1s
Mews.Fiscalizations.Austria.Tests.OfflineTests 1✅ 42ms

✅ Mews.Fiscalizations.Austria.Tests.ATrustSignerTests

✅ ATrustSignerWorks
✅ GetCertificateInfoWorks

✅ Mews.Fiscalizations.Austria.Tests.OfflineTests

✅ OfflineSignatureWorks

✅ src/Basque/Mews.Fiscalizations.Basque.Tests/TestResults/test-results-Windows.trx

41 tests were completed in 40s with 41 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Mews.Fiscalizations.Basque.Tests.Bizkaia.BizkaiaDataValidationTests 2✅ 55ms
Mews.Fiscalizations.Basque.Tests.Bizkaia.DtoToModelConverterTests 2✅ 115ms
Mews.Fiscalizations.Basque.Tests.Bizkaia.LROERequestDtoValidationTests 2✅ 444ms
Mews.Fiscalizations.Basque.Tests.Bizkaia.LROEResponseDeserializationTests 4✅ 48ms
Mews.Fiscalizations.Basque.Tests.SendInvoiceTests 24✅ 38s
Mews.Fiscalizations.Basque.Tests.ValidationTests 7✅ 4ms

✅ Mews.Fiscalizations.Basque.Tests.Bizkaia.BizkaiaDataValidationTests

✅ Create_BizkaiaData_Json_Serialization_Deserialization_Succeeds
✅ Create_BizkaiaData_JsonSerialization_Succeeds

✅ Mews.Fiscalizations.Basque.Tests.Bizkaia.DtoToModelConverterTests

✅ CorrectResponse_Generates_CorrectResult
✅ IncorrectResponse_Generates_IncorrectResponse

✅ Mews.Fiscalizations.Basque.Tests.Bizkaia.LROERequestDtoValidationTests

✅ CreateBatuzInvoiceDto_XmlSerialization_Succeeds
✅ CreateTicketBaiInvoice_XsdValidation_Succeeds

✅ Mews.Fiscalizations.Basque.Tests.Bizkaia.LROEResponseDeserializationTests

✅ CorrectResponse_Deserialization_Succeeds
✅ IncorrectResponse_Deserialization_Succeeds
✅ PartiallyCorrectResponse_Deserialization_Succeeds
✅ WrongFileFormat_Deserialization_Fails

✅ Mews.Fiscalizations.Basque.Tests.SendInvoiceTests

✅ Araba - Complete Invoice chaining
✅ Araba - Send complete invoice with foreign receiver
✅ Araba - Send complete invoice with local receiver
✅ Araba - Send negative complete invoice with foreign receiver
✅ Araba - Send negative complete invoice with local receiver
✅ Araba - Send simplified invoice
✅ Araba - Send simplified negative invoice
✅ Araba - Simplified Invoice chaining
✅ Bizkaia - Complete Invoice chaining
✅ Bizkaia - Send complete invoice with foreign receiver
✅ Bizkaia - Send complete invoice with local receiver
✅ Bizkaia - Send complete negative invoice with foreign receiver
✅ Bizkaia - Send complete negative invoice with local receiver
✅ Bizkaia - Send simplified invoice
✅ Bizkaia - Send simplified negative invoice
✅ Bizkaia - Simplified Invoice chaining
✅ Gipuzkoa - Complete Invoice chaining
✅ Gipuzkoa - Send complete invoice with foreign receiver
✅ Gipuzkoa - Send complete invoice with local receiver
✅ Gipuzkoa - Send complete negative invoice with foreign receiver
✅ Gipuzkoa - Send complete negative invoice with local receiver
✅ Gipuzkoa - Send simplified invoice
✅ Gipuzkoa - Send simplified negative invoice
✅ Gipuzkoa - Simplified Invoice chaining

✅ Mews.Fiscalizations.Basque.Tests.ValidationTests

✅ PostalCodeTests(" ",False)
✅ PostalCodeTests("",False)
✅ PostalCodeTests("12345",True)
✅ PostalCodeTests("12345@",False)
✅ PostalCodeTests("123456789123456789102",False)
✅ PostalCodeTests("ABCDEF123456",True)
✅ PostalCodeTests("ABCDEFG",True)

✅ src/Core/Mews.Fiscalizations.Core.Tests/TestResults/test-results-Windows.trx

70 tests were completed in 968ms with 70 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Mews.Fiscalizations.Core.Tests.Compression.GzipCompressionTests 1✅ 14ms
Mews.Fiscalizations.Core.Tests.Model.BasicLatinStringTests 7✅ 13ms
Mews.Fiscalizations.Core.Tests.Model.CountryTests 11✅ 16ms
Mews.Fiscalizations.Core.Tests.Model.String1To50Tests 5✅ 23ms
Mews.Fiscalizations.Core.Tests.Model.TaxpayerIdentificationNumberTests 46✅ 5ms

✅ Mews.Fiscalizations.Core.Tests.Compression.GzipCompressionTests

✅ GzipCompress_Decompress_Returns_Original_String

✅ Mews.Fiscalizations.Core.Tests.Model.BasicLatinStringTests

✅ ToBasicLatinStringSucceeds("   ","   ")
✅ ToBasicLatinStringSucceeds("!@#$%^&**()_-","!@#$%^&**()_-")
✅ ToBasicLatinStringSucceeds("","")
✅ ToBasicLatinStringSucceeds("€€€","")
✅ ToBasicLatinStringSucceeds("abcdefghijklmnopqrstuvwxyz0123456789","abcdefghijklmnopqrstuvwxyz0123456789")
✅ ToBasicLatinStringSucceeds("Euro € sign","Euro  sign")
✅ ToBasicLatinStringSucceeds(null,null)

✅ Mews.Fiscalizations.Core.Tests.Model.CountryTests

✅ CountryWithInvalidCountryCodeNotFound("")
✅ CountryWithInvalidCountryCodeNotFound("invalid")
✅ CountryWithInvalidCountryCodeNotFound(null)
✅ CountryWithValidCountryCodeFound("AU")
✅ CountryWithValidCountryCodeFound("US")
✅ EuropeanCountryWithInvalidCountryCodeNotFound("")
✅ EuropeanCountryWithInvalidCountryCodeNotFound("invalid")
✅ EuropeanCountryWithInvalidCountryCodeNotFound("US")
✅ EuropeanCountryWithInvalidCountryCodeNotFound(null)
✅ EuropeanCountryWithValidCountryCodeFound("CZ")
✅ EuropeanCountryWithValidCountryCodeFound("PL")

✅ Mews.Fiscalizations.Core.Tests.Model.String1To50Tests

✅ String1To50ValidatesCorrectly("   ",True)
✅ String1To50ValidatesCorrectly("",False)
✅ String1To50ValidatesCorrectly("12345678901234567890123456789012345678901234567890",True)
✅ String1To50ValidatesCorrectly("123456789012345678901234567890123456789012345678901",False)
✅ String1To50ValidatesCorrectly(null,False)

✅ Mews.Fiscalizations.Core.Tests.Model.TaxpayerIdentificationNumberTests

✅ CreatingInvalidEuropeanTaxpayerNumberFails("CZ","")
✅ CreatingInvalidEuropeanTaxpayerNumberFails("CZ","ABC1234567")
✅ CreatingInvalidEuropeanTaxpayerNumberFails("CZ",null)
✅ CreatingInvalidEuropeanTaxpayerNumberFails(null,"ABCD12344")
✅ CreatingInvalidEuropeanTaxpayerNumberFails(null,null)
✅ CreatingInvalidSpanishTaxpayerNumberFails("123456789")
✅ CreatingInvalidSpanishTaxpayerNumberFails("A0123456789")
✅ CreatingInvalidSpanishTaxpayerNumberFails("A1234")
✅ CreatingInvalidSpanishTaxpayerNumberFails("AAAAAAAAA")
✅ CreatingInvalidTaxpayerNumberFails("US","")
✅ CreatingInvalidTaxpayerNumberFails("US",null)
✅ CreatingInvalidTaxpayerNumberFails(null,"ABCD12345")
✅ CreatingInvalidTaxpayerNumberFails(null,null)
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("AT","U99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("BE","0999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("BG","999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("CY","99999999L")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("CZ","99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("DE","999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("DK","99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("EE","999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("ES","X9999999X")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("FI","99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("FR","XX999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("GB","999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("GR","999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("HU","99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("IE","9S99999L")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("IE","IE1111111L")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("IT","99999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("LT","999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("LU","99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("LV","99999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("MT","99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("NL","999999999B99")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("PL","9999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("PT","999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("RO","99")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("SE","999999999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("SI","99999999")
✅ CreatingValidEuropeanTaxpayerNumberSucceeds("SK","9999999999")
✅ CreatingValidNonEuropeanTaxpayerNumberSucceeds("AU","ABCD12345111")
✅ CreatingValidNonEuropeanTaxpayerNumberSucceeds("US","123456789")
✅ CreatingValidSpanishTaxpayerNumberSucceeds("A12345678")
✅ CreatingValidSpanishTaxpayerNumberSucceeds("A1234567A")
✅ CreatingValidSpanishTaxpayerNumberSucceeds("ESA1234567A")

✅ src/Germany/Mews.Fiscalizations.Germany.Tests/TestResults/test-results-Windows.trx

11 tests were completed in 20s with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Mews.Fiscalizations.Germany.Tests.V2.AccessTokenTests 1✅ 97ms
Mews.Fiscalizations.Germany.Tests.V2.ClientTests 3✅ 2s
Mews.Fiscalizations.Germany.Tests.V2.TransactionTests 4✅ 2s
Mews.Fiscalizations.Germany.Tests.V2.TssTests 3✅ 10s

✅ Mews.Fiscalizations.Germany.Tests.V2.AccessTokenTests

✅ GetAccessTokenSucceeds

✅ Mews.Fiscalizations.Germany.Tests.V2.ClientTests

✅ CreateClientSucceeds
✅ GetAllTssClientsSucceeds
✅ GetClientSucceeds

✅ Mews.Fiscalizations.Germany.Tests.V2.TransactionTests

✅ GetTransactionSucceeds
✅ StartAndFinishTransactionSucceeds
✅ StartTransactionSucceeds
✅ StatusCheckSucceeds

✅ Mews.Fiscalizations.Germany.Tests.V2.TssTests

✅ CreateTssSucceeds
✅ GetAllTSSsSucceeds
✅ GetTssSucceeds

✅ src/Hungary/Mews.Fiscalizations.Hungary.Tests/TestResults/test-results-Windows.trx

15 tests were completed in 51s with 15 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Mews.Fiscalizations.Hungary.Tests.InvoiceTests 12✅ 49s
Mews.Fiscalizations.Hungary.Tests.StatusTests 3✅ 793ms

✅ Mews.Fiscalizations.Hungary.Tests.InvoiceTests

✅ SendCorrectionCustomerInvoiceSucceeds
✅ SendCorrectionForeignCompanyInvoiceSucceeds("CZ","CZ12345678")
✅ SendCorrectionForeignCompanyInvoiceSucceeds("CZ",null)
✅ SendCorrectionForeignCompanyInvoiceSucceeds("US","UsTaxId")
✅ SendCorrectionForeignCompanyInvoiceSucceeds("US",null)
✅ SendCorrectionLocalCompanyInvoiceSucceeds
✅ SendCustomerInvoiceSucceeds
✅ SendForeignCompanyInvoiceSucceeds("CZ","CZ12345678")
✅ SendForeignCompanyInvoiceSucceeds("CZ",null)
✅ SendForeignCompanyInvoiceSucceeds("US","UsTaxId")
✅ SendForeignCompanyInvoiceSucceeds("US",null)
✅ SendLocalCompanyInvoiceSucceeds

✅ Mews.Fiscalizations.Hungary.Tests.StatusTests

✅ GetExchangeTokenSucceeds
✅ GetTaxerpayerDataSucceeds
✅ GetTransactionStatusSucceeds

✅ src/Italy/Mews.Fiscalizations.Italy.Tests/TestResults/test-results-Windows.trx

3 tests were completed in 4s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Mews.Fiscalizations.Italy.Tests.UniwixClientTests 3✅ 3s

✅ Mews.Fiscalizations.Italy.Tests.UniwixClientTests

✅ GetInvoiceStateWithInvalidFileIdReturnsCorrectErrorType
✅ SendInvoiceSucceeds
✅ VerifyCredentialsSucceeds

✅ src/Spain/Mews.Fiscalizations.Spain.Tests/TestResults/test-results-Windows.trx

2 tests were completed in 7s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Mews.Fiscalizations.Spain.Tests.IssuedInvoices.Basics 2✅ 5s

✅ Mews.Fiscalizations.Spain.Tests.IssuedInvoices.Basics

✅ CheckNif
✅ PostInvoice