From 736ec9ade3201431a9a3e50e87575c0d142ac26c Mon Sep 17 00:00:00 2001
From: Abdallah Altrabeishi <51375082+abdallahbeshi@users.noreply.github.com>
Date: Wed, 3 Jul 2024 14:14:45 +0200
Subject: [PATCH] Relaxed the foreign customer validation - spanish SII (#253)
* Relaxed the foreign customer validation - spanish SII
* updated pkg version
---
src/Mews.Fiscalizations.All/Mews.Fiscalizations.All.csproj | 2 +-
.../Mews.Fiscalizations.Spain/Mews.Fiscalizations.Spain.csproj | 2 +-
.../Mews.Fiscalizations.Spain/Model/Request/ForeignCustomer.cs | 1 -
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/Mews.Fiscalizations.All/Mews.Fiscalizations.All.csproj b/src/Mews.Fiscalizations.All/Mews.Fiscalizations.All.csproj
index 6da81cb2..ce1584ab 100644
--- a/src/Mews.Fiscalizations.All/Mews.Fiscalizations.All.csproj
+++ b/src/Mews.Fiscalizations.All/Mews.Fiscalizations.All.csproj
@@ -10,7 +10,7 @@
https://github.com/MewsSystems/fiscalizations
https://raw.githubusercontent.com/msigut/eet/master/receipt.png
true
- 27.0.1
+ 27.0.2
12
true
$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage
diff --git a/src/Spain/Mews.Fiscalizations.Spain/Mews.Fiscalizations.Spain.csproj b/src/Spain/Mews.Fiscalizations.Spain/Mews.Fiscalizations.Spain.csproj
index 6dc1aed3..489a28ca 100644
--- a/src/Spain/Mews.Fiscalizations.Spain/Mews.Fiscalizations.Spain.csproj
+++ b/src/Spain/Mews.Fiscalizations.Spain/Mews.Fiscalizations.Spain.csproj
@@ -10,7 +10,7 @@
https://github.com/MewsSystems/fiscalizations
https://raw.githubusercontent.com/msigut/eet/master/receipt.png
true
- 12.0.1
+ 12.0.2
12
true
diff --git a/src/Spain/Mews.Fiscalizations.Spain/Model/Request/ForeignCustomer.cs b/src/Spain/Mews.Fiscalizations.Spain/Model/Request/ForeignCustomer.cs
index 55abd245..f728646d 100644
--- a/src/Spain/Mews.Fiscalizations.Spain/Model/Request/ForeignCustomer.cs
+++ b/src/Spain/Mews.Fiscalizations.Spain/Model/Request/ForeignCustomer.cs
@@ -8,7 +8,6 @@ public ForeignCustomer(Name name, ResidenceCountryIdentificatorType identificati
IdentificatorType = Check.IsNotNull(identificatiorType, nameof(identificatiorType));
IdNumber = Check.IsNotNull(idNumber, nameof(idNumber));
Country = Check.IsNotNull(country, nameof(country));
- Check.Condition(!Country.Equals(Countries.Spain), "Foreign customer cannot be Spanish.");
}
public Name Name { get; }