Skip to content

Commit

Permalink
Process the error code from Fiskaly "E_EXPORT_IN_PROGRESS" . (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
inakiesteve authored Jan 13, 2025
1 parent 388cc7f commit ce259a5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<RepositoryUrl>https://github.com/MewsSystems/fiscalizations</RepositoryUrl>
<Icon>https://raw.githubusercontent.com/msigut/eet/master/receipt.png</Icon>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>10.0.1</PackageVersion>
<PackageVersion>10.0.2</PackageVersion>
<LangVersion>12</LangVersion>
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ private static FiskalyError MapError(Dto.FiskalyErrorResponse error)
"E_TSS_CONFLICT", _ => FiskalyError.TssCreationConflict,
"E_CLIENT_CONFLICT", _ => FiskalyError.ClientCreationConflict,
"E_ACCESS_DENIED", _ => FiskalyError.TssAccessDenied,
"E_EXPORT_IN_PROGRESS", _ => FiskalyError.ExportInProgress,
_ => throw new NotImplementedException($"Unhandled fiskaly error: {ToDebugString(error)}.")
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ public enum FiskalyError
InvalidTransactionOperation,
ServerSide,
InvalidResponse,
TssAccessDenied
TssAccessDenied,
ExportInProgress
}
2 changes: 1 addition & 1 deletion src/Mews.Fiscalizations.All/Mews.Fiscalizations.All.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<RepositoryUrl>https://github.com/MewsSystems/fiscalizations</RepositoryUrl>
<Icon>https://raw.githubusercontent.com/msigut/eet/master/receipt.png</Icon>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>28.0.0</PackageVersion>
<PackageVersion>28.0.1</PackageVersion>
<LangVersion>12</LangVersion>
<ImplicitUsings>true</ImplicitUsings>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
Expand Down

0 comments on commit ce259a5

Please sign in to comment.