Skip to content

Commit 1226d5d

Browse files
Merge pull request #201 from regulaforensics/094726f0
Commit: 094726f0
2 parents 0c43326 + 35ec67b commit 1226d5d

5 files changed

Lines changed: 16 additions & 26 deletions

File tree

src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected EncryptedRCLItem() { }
5656
/// </summary>
5757
/// <value>Base64 encoded data</value>
5858
/*
59-
<example>[B@671e627</example>
59+
<example>[B@71ccb5a9</example>
6060
*/
6161
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
6262
public byte[] EncryptedRCL { get; set; }

src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected EncryptedRCLResult() { }
6262
/// </summary>
6363
/// <value>Base64 encoded data</value>
6464
/*
65-
<example>[B@671e627</example>
65+
<example>[B@71ccb5a9</example>
6666
*/
6767
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
6868
public byte[] EncryptedRCL { get; set; }

src/Regula.DocumentReader.WebClient/Model/FDSIDList.cs

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ protected FDSIDList() { }
5353
/// Initializes a new instance of the <see cref="FDSIDList" /> class.
5454
/// </summary>
5555
/// <param name="iCAOCode">ICAO code of the issuing country (required).</param>
56-
/// <param name="count">Number of elements in the List (required).</param>
57-
/// <param name="list">Document identifiers in &#39;Information Reference Systems&#39; (required).</param>
56+
/// <param name="count">Number of elements in the List.</param>
57+
/// <param name="list">Document identifiers in &#39;Information Reference Systems&#39;.</param>
5858
/// <param name="dType">dType (required).</param>
5959
/// <param name="dFormat">dFormat (required).</param>
6060
/// <param name="dMRZ">Flag indicating the presence of MRZ on the document (required).</param>
6161
/// <param name="dDescription">Document description.</param>
62-
/// <param name="dYear">Year of publication of the document (required).</param>
62+
/// <param name="dYear">Year of publication of the document.</param>
6363
/// <param name="dCountryName">Issuing country name (required).</param>
6464
/// <param name="dStateCode">Issuing state code.</param>
6565
/// <param name="dStateName">Issuing state name.</param>
@@ -72,30 +72,20 @@ protected FDSIDList() { }
7272
throw new ArgumentNullException("iCAOCode is a required property for FDSIDList and cannot be null");
7373
}
7474
this.ICAOCode = iCAOCode;
75-
this.Count = count;
76-
// to ensure "list" is required (not null)
77-
if (list == null)
78-
{
79-
throw new ArgumentNullException("list is a required property for FDSIDList and cannot be null");
80-
}
81-
this.List = list;
8275
this.DType = dType;
8376
this.DFormat = dFormat;
8477
this.DMRZ = dMRZ;
85-
// to ensure "dYear" is required (not null)
86-
if (dYear == null)
87-
{
88-
throw new ArgumentNullException("dYear is a required property for FDSIDList and cannot be null");
89-
}
90-
this.DYear = dYear;
9178
// to ensure "dCountryName" is required (not null)
9279
if (dCountryName == null)
9380
{
9481
throw new ArgumentNullException("dCountryName is a required property for FDSIDList and cannot be null");
9582
}
9683
this.DCountryName = dCountryName;
9784
this.IsDeprecated = isDeprecated;
85+
this.Count = count;
86+
this.List = list;
9887
this.DDescription = dDescription;
88+
this.DYear = dYear;
9989
this.DStateCode = dStateCode;
10090
this.DStateName = dStateName;
10191
}
@@ -111,15 +101,15 @@ protected FDSIDList() { }
111101
/// Number of elements in the List
112102
/// </summary>
113103
/// <value>Number of elements in the List</value>
114-
[DataMember(Name = "Count", IsRequired = true, EmitDefaultValue = true)]
115-
public decimal Count { get; set; }
104+
[DataMember(Name = "Count", EmitDefaultValue = false)]
105+
public decimal? Count { get; set; }
116106

117107
/// <summary>
118108
/// Document identifiers in &#39;Information Reference Systems&#39;
119109
/// </summary>
120110
/// <value>Document identifiers in &#39;Information Reference Systems&#39;</value>
121-
[DataMember(Name = "List", IsRequired = true, EmitDefaultValue = true)]
122-
public List<int> List { get; set; }
111+
[DataMember(Name = "List", EmitDefaultValue = false)]
112+
public List<int>? List { get; set; }
123113

124114
/// <summary>
125115
/// Flag indicating the presence of MRZ on the document
@@ -139,8 +129,8 @@ protected FDSIDList() { }
139129
/// Year of publication of the document
140130
/// </summary>
141131
/// <value>Year of publication of the document</value>
142-
[DataMember(Name = "dYear", IsRequired = true, EmitDefaultValue = true)]
143-
public string DYear { get; set; }
132+
[DataMember(Name = "dYear", EmitDefaultValue = false)]
133+
public string? DYear { get; set; }
144134

145135
/// <summary>
146136
/// Issuing country name

src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected LicenseItem() { }
5656
/// </summary>
5757
/// <value>Base64 encoded data</value>
5858
/*
59-
<example>[B@3768c9b</example>
59+
<example>[B@6511807b</example>
6060
*/
6161
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
6262
public byte[] License { get; set; }

src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected LicenseResult() { }
6262
/// </summary>
6363
/// <value>Base64 encoded data</value>
6464
/*
65-
<example>[B@3768c9b</example>
65+
<example>[B@6511807b</example>
6666
*/
6767
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
6868
public byte[] License { get; set; }

0 commit comments

Comments
 (0)