Skip to content

Commit

Permalink
DEV-49397: Adding formatPackage to FromPruefidentifikator (#155)
Browse files Browse the repository at this point in the history
Adding formatPackage to FromPruefidentifikator
  • Loading branch information
hamidhajiparvaneh authored Mar 15, 2024
1 parent bd7f33d commit 5334d5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EDILibrary/EdiJsonMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public async Task<string> CreateFromJson(string jsonInput, string pid, string fo
}
public string CreateFromJsonWithTemplates(string jsonInput, string pid, EdifactFormatVersion formatPackage, string ediJsonTemplate, string createTemplate, TimeZoneInfo localTime, MAUS.Anwendungshandbuch? ahb, bool convertFromUTC = false)

Check warning on line 132 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / unittest (6.0.201)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 132 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / unittest (8.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 132 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / unittest (7.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 132 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / unittest (7.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 132 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / unittest (6.0.201)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 132 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / unittest (8.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 132 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / coverage

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 132 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / coverage

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 132 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 132 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
var format = EdifactFormatHelper.FromPruefidentifikator(pid, false);
var format = EdifactFormatHelper.FromPruefidentifikator(pid, false, formatPackage);

var mappingsBody = ediJsonTemplate;

Expand All @@ -150,7 +150,7 @@ public string CreateFromJsonWithTemplates(string jsonInput, string pid, EdifactF
}
public async Task<string> CreateFromJson(string jsonInput, string pid, EdifactFormatVersion formatPackage, TimeZoneInfo localTime, MAUS.Anwendungshandbuch? ahb, bool convertFromUTC = false)

Check warning on line 151 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / unittest (6.0.201)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 151 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / unittest (8.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 151 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / unittest (7.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 151 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / unittest (7.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 151 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / unittest (6.0.201)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 151 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / unittest (8.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 151 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / coverage

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 151 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / coverage

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 151 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 151 in EDILibrary/EdiJsonMapper.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
var format = EdifactFormatHelper.FromPruefidentifikator(pid, false);
var format = EdifactFormatHelper.FromPruefidentifikator(pid, false, formatPackage);
string jsonBody = null;
try
{
Expand Down Expand Up @@ -214,7 +214,7 @@ public async Task<string> CreateFromJson(string jsonInput, string pid, EdifactFo
}
public async Task<string> CreateFromEdiJson(string jsonInput, string pid, EdifactFormatVersion formatPackage, TimeZoneInfo localTime, bool convertFromUTC = false)
{
var format = EdifactFormatHelper.FromPruefidentifikator(pid, false);
var format = EdifactFormatHelper.FromPruefidentifikator(pid, false, formatPackage);

var mappingsBody = await _loader.LoadJSONTemplate(format, formatPackage.ToLegacyVersionString(), format + ".json");

Expand Down

0 comments on commit 5334d5e

Please sign in to comment.