Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,22 @@ internal sealed class CashPointClosingResponse

[JsonPropertyName("error")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public CashPointClosingError Error { get; init; }
}

internal sealed class CashPointClosingError
{
[JsonPropertyName("status_code")]
public int? StatusCode { get; init; }

[JsonPropertyName("error")]
public string Error { get; init; }

[JsonPropertyName("code")]
public string Code { get; init; }

[JsonPropertyName("message")]
public string Message { get; init; }
}

internal enum CashPointClosingState
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public static CashPointClosingResult MapResponse(this CashPointClosingResponseDt
ClientId: response.ClientId,
CashPointClosingExportId: response.CashPointClosingExportId,
State: MapState(response.State),
Error: response.Error
Error: response.Error != null
? string.Join(" ", new[] { response.Error.StatusCode?.ToString(), response.Error.Error, response.Error.Code, response.Error.Message }.Where(s => s != null))
: null
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<RepositoryUrl>https://github.com/MewsSystems/fiscalizations</RepositoryUrl>
<Icon>https://raw.githubusercontent.com/msigut/eet/master/receipt.png</Icon>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>2.5.0</PackageVersion>
<PackageVersion>2.5.1</PackageVersion>
<LangVersion>12</LangVersion>
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>
Expand Down
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 @@ -9,7 +9,7 @@
<RepositoryUrl>https://github.com/MewsSystems/fiscalizations</RepositoryUrl>
<Icon>https://raw.githubusercontent.com/msigut/eet/master/receipt.png</Icon>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>38.1.0</PackageVersion>
<PackageVersion>38.1.1</PackageVersion>
<LangVersion>12</LangVersion>
<ImplicitUsings>true</ImplicitUsings>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
Expand Down
Loading