Nullverweise warnings bereinigt

This commit is contained in:
2023-08-08 11:58:09 +02:00
parent 4af2bae8cd
commit ee6eb210b7
22 changed files with 125 additions and 102 deletions

View File

@@ -15,14 +15,14 @@ namespace ConsoleApp3.DataContracts
public int? Id { get; set; }
[JsonProperty(PropertyName = "objectName")]
public string ObjectName { get; set; }
public string ObjectName { get; set; } = "";
/// <summary>
///
/// </summary>
/// <value></value>
[DataMember(Name = "invoiceNumber", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "invoiceNumber")]
public string InvoiceNumber { get; set; }
public string InvoiceNumber { get; set; } = "";
/// <summary>
/// the contact the invoice belongs to
@@ -30,7 +30,7 @@ namespace ConsoleApp3.DataContracts
/// <value>the contact the invoice belongs to</value>
[DataMember(Name = "contact", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "contact")]
public ModelContact Contact { get; set; }
public ModelContact? Contact { get; set; }
/// <summary>
/// the date the invoice was created
@@ -62,7 +62,7 @@ namespace ConsoleApp3.DataContracts
/// <value>header/subject of the invoice</value>
[DataMember(Name = "header", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "header")]
public string Header { get; set; }
public string Header { get; set; } = "";
/// <summary>
/// head text of the invoice
@@ -70,7 +70,7 @@ namespace ConsoleApp3.DataContracts
/// <value>head text of the invoice</value>
[DataMember(Name = "headText", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "headText")]
public string HeadText { get; set; }
public string HeadText { get; set; } = "";
/// <summary>
/// foot text of the invoice
@@ -78,7 +78,7 @@ namespace ConsoleApp3.DataContracts
/// <value>foot text of the invoice</value>
[DataMember(Name = "footText", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "footText")]
public string FootText { get; set; }
public string FootText { get; set; } = "";
/// <summary>
/// time left for paying the invoice, use format dd.MM.yyyy or number for number of days left
@@ -110,7 +110,7 @@ namespace ConsoleApp3.DataContracts
/// <value>the name in the address, equals the contacts name</value>
[DataMember(Name = "addressName", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "addressName")]
public string AddressName { get; set; }
public string AddressName { get; set; } = "";
/// <summary>
/// the street in the address, equals the contacts street
@@ -118,7 +118,7 @@ namespace ConsoleApp3.DataContracts
/// <value>the street in the address, equals the contacts street</value>
[DataMember(Name = "addressStreet", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "addressStreet")]
public string AddressStreet { get; set; }
public string AddressStreet { get; set; } = "";
/// <summary>
/// the zip-code in the address, equals the contacts zip
@@ -126,7 +126,7 @@ namespace ConsoleApp3.DataContracts
/// <value>the zip-code in the address, equals the contacts zip</value>
[DataMember(Name = "addressZip", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "addressZip")]
public string AddressZip { get; set; }
public string AddressZip { get; set; } = "";
/// <summary>
/// the city in the address, equals the contacts city
@@ -134,7 +134,7 @@ namespace ConsoleApp3.DataContracts
/// <value>the city in the address, equals the contacts city</value>
[DataMember(Name = "addressCity", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "addressCity")]
public string AddressCity { get; set; }
public string AddressCity { get; set; } = "";
/// <summary>
/// the country in the address, equals the contacts country
@@ -142,7 +142,7 @@ namespace ConsoleApp3.DataContracts
/// <value>the country in the address, equals the contacts country</value>
[DataMember(Name = "addressCountry", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "addressCountry")]
public ModelStaticCountry AddressCountry { get; set; }
public ModelStaticCountry? AddressCountry { get; set; }
/// <summary>
/// time left for paying the invoice, use format DD.MM.YYYY or number for number of days left
@@ -158,7 +158,7 @@ namespace ConsoleApp3.DataContracts
/// <value>SevUser who created the invoice</value>
[DataMember(Name = "createUser", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "createUser")]
public ModelSevUser CreateUser { get; set; }
public ModelSevUser? CreateUser { get; set; }
/// <summary>
/// sevClient is the unique id every customer has and is used in nearly all operations
@@ -166,7 +166,7 @@ namespace ConsoleApp3.DataContracts
/// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; }
public Object? SevClient { get; set; }
/// <summary>
/// delivery date of the goods from the invoice, please use dd.MM.yyyy
@@ -182,7 +182,7 @@ namespace ConsoleApp3.DataContracts
/// <value>status of the invoice</value>
[DataMember(Name = "status", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "status")]
public EInvoiceStatus Status { get; set; }
public EInvoiceStatus? Status { get; set; }
/// <summary>
///
@@ -198,7 +198,7 @@ namespace ConsoleApp3.DataContracts
/// <value>SevUser who created the invoice and therefore is the contact person</value>
[DataMember(Name = "contactPerson", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "contactPerson")]
public ModelSevUser ContactPerson { get; set; } = new ModelSevUser()
public ModelSevUser? ContactPerson { get; set; } = new ModelSevUser()
{
};
@@ -217,7 +217,7 @@ namespace ConsoleApp3.DataContracts
/// <value>additional text when adding a value added tax regulation</value>
[DataMember(Name = "taxText", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "taxText")]
public string TaxText { get; set; }
public string TaxText { get; set; } = "";
/// <summary>
/// dunning level of the invoice
@@ -233,7 +233,7 @@ namespace ConsoleApp3.DataContracts
/// <value>name of the contacts address</value>
[DataMember(Name = "addressParentName", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "addressParentName")]
public string AddressParentName { get; set; }
public string AddressParentName { get; set; } = "";
/// <summary>
/// a reference to the contacts address
@@ -241,7 +241,7 @@ namespace ConsoleApp3.DataContracts
/// <value>a reference to the contacts address</value>
[DataMember(Name = "addressContactRef", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "addressContactRef")]
public ModelContactAddress AddressContactRef { get; set; }
public ModelContactAddress? AddressContactRef { get; set; }
/// <summary>
///
@@ -249,7 +249,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "taxType", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "taxType")]
public string TaxType { get; set; }
public string TaxType { get; set; } = "";
/// <summary>
///
@@ -257,7 +257,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "paymentMethod", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "paymentMethod")]
public ModelPaymentMethod PaymentMethod { get; set; }
public ModelPaymentMethod? PaymentMethod { get; set; }
/// <summary>
///
@@ -265,7 +265,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "costCentre", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "costCentre")]
public ModelCostCentre CostCentre { get; set; }
public ModelCostCentre? CostCentre { get; set; }
/// <summary>
///
@@ -281,7 +281,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "origin", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "origin")]
public Object Origin { get; set; }
public Object? Origin { get; set; }
/// <summary>
/// type of the invoice
@@ -289,7 +289,7 @@ namespace ConsoleApp3.DataContracts
/// <value>type of the invoice</value>
[DataMember(Name = "invoiceType", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "invoiceType")]
public string InvoiceType { get; set; }
public string InvoiceType { get; set; } = "";
/// <summary>
///
@@ -353,7 +353,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "addressParentName2", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "addressParentName2")]
public string AddressParentName2 { get; set; }
public string AddressParentName2 { get; set; } = "";
/// <summary>
///
@@ -361,7 +361,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "addressName2", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "addressName2")]
public string AddressName2 { get; set; }
public string AddressName2 { get; set; } = "";
/// <summary>
///
@@ -369,7 +369,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "taxSet", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "taxSet")]
public ModelTaxSet TaxSet { get; set; }
public ModelTaxSet? TaxSet { get; set; }
/// <summary>
///
@@ -377,7 +377,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "addressGender", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "addressGender")]
public string AddressGender { get; set; }
public string AddressGender { get; set; } = "";
/// <summary>
///
@@ -393,7 +393,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "address", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "address")]
public string Address { get; set; }
public string Address { get; set; } = "";
/// <summary>
///
@@ -497,7 +497,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "entryType", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "entryType")]
public ModelEntryType EntryType { get; set; }
public ModelEntryType? EntryType { get; set; }
/// <summary>
///
@@ -505,7 +505,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "costumerInternalNote", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "costumerInternalNote")]
public string CostumerInternalNote { get; set; }
public string CostumerInternalNote { get; set; } = "";
/// <summary>
///
@@ -530,7 +530,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "sendType", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sendType")]
public string SendType { get; set; }
public string SendType { get; set; } = "";
/// <summary>
///

View File

@@ -6,7 +6,7 @@ namespace ConsoleApp3.DataContracts
{
internal class Invoices
{
[JsonProperty("objects")] public Invoice[] Invoice { get; set; }
[JsonProperty("objects")] public Invoice[]? Invoice { get; set; }
}
}

View File

@@ -24,7 +24,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "parent", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "parent")]
public ModelCategory Parent { get; set; }
public ModelCategory? Parent { get; set; }
/// <summary>
///
@@ -32,7 +32,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
public string Name { get; set; } = "";
/// <summary>
///
@@ -40,7 +40,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "objectType", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "objectType")]
public string ObjectType { get; set; }
public string ObjectType { get; set; } = "";
/// <summary>
///
@@ -56,7 +56,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "code", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "code")]
public string Code { get; set; }
public string Code { get; set; } = "";
/// <summary>
///
@@ -64,7 +64,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "color", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "color")]
public string Color { get; set; }
public string Color { get; set; } = "";
/// <summary>
///
@@ -72,7 +72,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; }
public Object? SevClient { get; set; }
/// <summary>
///
@@ -80,7 +80,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "postingAccount", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "postingAccount")]
public string PostingAccount { get; set; }
public string PostingAccount { get; set; } = "";
/// <summary>
///
@@ -88,7 +88,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "type", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
public string Type { get; set; } = "";
/// <summary>
///
@@ -96,7 +96,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "translationCode", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "translationCode")]
public string TranslationCode { get; set; }
public string TranslationCode { get; set; } = "";
/// <summary>
///
@@ -104,7 +104,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "entryType", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "entryType")]
public ModelEntryType EntryType { get; set; }
public ModelEntryType? EntryType { get; set; }
}
}

View File

@@ -19,7 +19,7 @@ namespace ConsoleApp3.DataContracts
/// <value>the contact address</value>
[DataMember(Name = "address", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "address")]
public ModelContactAddress Address { get; set; }
public ModelContactAddress? Address { get; set; }
/// <summary>
/// the creation date of the contact
@@ -43,7 +43,7 @@ namespace ConsoleApp3.DataContracts
/// <value>name of the contact</value>
[DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
public string Name { get; set; } = "";
/// <summary>
/// status of the contact
@@ -67,7 +67,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "parent", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "parent")]
public ModelContact Parent { get; set; }
public ModelContact? Parent { get; set; }
/// <summary>
/// surname of the contact
@@ -75,7 +75,7 @@ namespace ConsoleApp3.DataContracts
/// <value>surname of the contact</value>
[DataMember(Name = "surename", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "surename")]
public string Surename { get; set; }
public string Surename { get; set; } = "";
/// <summary>
/// family name of the contact
@@ -83,7 +83,7 @@ namespace ConsoleApp3.DataContracts
/// <value>family name of the contact</value>
[DataMember(Name = "familyname", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "familyname")]
public string Familyname { get; set; }
public string Familyname { get; set; } = "";
/// <summary>
/// title of the contact
@@ -91,7 +91,7 @@ namespace ConsoleApp3.DataContracts
/// <value>title of the contact</value>
[DataMember(Name = "titel", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "titel")]
public string Titel { get; set; }
public string Titel { get; set; } = "";
/// <summary>
/// category of the contact
@@ -99,7 +99,7 @@ namespace ConsoleApp3.DataContracts
/// <value>category of the contact</value>
[DataMember(Name = "category", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "category")]
public ModelCategory Category { get; set; }
public ModelCategory? Category { get; set; }
/// <summary>
/// description of the contact
@@ -107,7 +107,7 @@ namespace ConsoleApp3.DataContracts
/// <value>description of the contact</value>
[DataMember(Name = "description", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
public string Description { get; set; } = "";
/// <summary>
/// any academic title of the contact
@@ -115,7 +115,7 @@ namespace ConsoleApp3.DataContracts
/// <value>any academic title of the contact</value>
[DataMember(Name = "academicTitle", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "academicTitle")]
public string AcademicTitle { get; set; }
public string AcademicTitle { get; set; } = "";
/// <summary>
/// gender of the contact
@@ -123,7 +123,7 @@ namespace ConsoleApp3.DataContracts
/// <value>gender of the contact</value>
[DataMember(Name = "gender", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "gender")]
public string Gender { get; set; }
public string Gender { get; set; } = "";
/// <summary>
/// sevClient is the unique id every customer has and is used in nearly all operations
@@ -131,7 +131,7 @@ namespace ConsoleApp3.DataContracts
/// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; }
public Object? SevClient { get; set; }
/// <summary>
/// second name of the contact
@@ -139,7 +139,7 @@ namespace ConsoleApp3.DataContracts
/// <value>second name of the contact</value>
[DataMember(Name = "name2", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name2")]
public string Name2 { get; set; }
public string Name2 { get; set; } = "";
/// <summary>
/// birthday of the contact
@@ -155,7 +155,7 @@ namespace ConsoleApp3.DataContracts
/// <value>vat number of the contact</value>
[DataMember(Name = "vatNumber", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "vatNumber")]
public string VatNumber { get; set; }
public string VatNumber { get; set; } = "";
/// <summary>
/// bank account of the contact
@@ -163,7 +163,7 @@ namespace ConsoleApp3.DataContracts
/// <value>bank account of the contact</value>
[DataMember(Name = "bankAccount", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "bankAccount")]
public string BankAccount { get; set; }
public string BankAccount { get; set; } = "";
/// <summary>
/// bank number of the contact
@@ -171,7 +171,7 @@ namespace ConsoleApp3.DataContracts
/// <value>bank number of the contact</value>
[DataMember(Name = "bankNumber", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "bankNumber")]
public string BankNumber { get; set; }
public string BankNumber { get; set; } = "";
/// <summary>
/// desired payment method of the customer
@@ -179,7 +179,7 @@ namespace ConsoleApp3.DataContracts
/// <value>desired payment method of the customer</value>
[DataMember(Name = "paymentMethod", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "paymentMethod")]
public ModelPaymentMethod PaymentMethod { get; set; }
public ModelPaymentMethod? PaymentMethod { get; set; }
/// <summary>
///
@@ -187,7 +187,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "entryType", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "entryType")]
public ModelEntryType EntryType { get; set; }
public ModelEntryType? EntryType { get; set; }
/// <summary>
/// default cashback time of the contact
@@ -219,7 +219,7 @@ namespace ConsoleApp3.DataContracts
/// <value>tax number of the contact</value>
[DataMember(Name = "taxNumber", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "taxNumber")]
public string TaxNumber { get; set; }
public string TaxNumber { get; set; } = "";
/// <summary>
/// tax office of the contact
@@ -227,6 +227,6 @@ namespace ConsoleApp3.DataContracts
/// <value>tax office of the contact</value>
[DataMember(Name = "taxOffice", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "taxOffice")]
public string TaxOffice { get; set; }
public string TaxOffice { get; set; } = "";
}
}

View File

@@ -28,7 +28,7 @@ namespace ConsoleApp3.DataContracts
/// <value>the contact the address belongs to</value>
[DataMember(Name = "contact", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "contact")]
public ModelContact Contact { get; set; }
public ModelContact? Contact { get; set; }
/// <summary>
///
@@ -36,7 +36,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "street", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "street")]
public string Street { get; set; }
public string Street { get; set; } = "";
/// <summary>
/// zip of the city/village
@@ -44,7 +44,7 @@ namespace ConsoleApp3.DataContracts
/// <value>zip of the city/village</value>
[DataMember(Name = "zip", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "zip")]
public string Zip { get; set; }
public string Zip { get; set; } = "";
/// <summary>
///
@@ -52,7 +52,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "city", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "city")]
public string City { get; set; }
public string City { get; set; } = "";
/// <summary>
///
@@ -60,7 +60,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "country", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "country")]
public ModelStaticCountry Country { get; set; }
public ModelStaticCountry? Country { get; set; }
/// <summary>
/// category of the address
@@ -68,7 +68,7 @@ namespace ConsoleApp3.DataContracts
/// <value>category of the address</value>
[DataMember(Name = "category", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "category")]
public ModelCategory Category { get; set; }
public ModelCategory? Category { get; set; }
/// <summary>
///
@@ -76,7 +76,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
public string Name { get; set; } = "";
/// <summary>
/// sevClient is the unique id every customer has and is used in nearly all operations
@@ -84,7 +84,7 @@ namespace ConsoleApp3.DataContracts
/// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; }
public Object SevClient { get; set; } = new object();
/// <summary>
///
@@ -92,7 +92,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "name2", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name2")]
public string Name2 { get; set; }
public string Name2 { get; set; } = "";
/// <summary>
///
@@ -100,7 +100,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "name3", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name3")]
public string Name3 { get; set; }
public string Name3 { get; set; } = "";
/// <summary>
///
@@ -108,7 +108,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "name4", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name4")]
public string Name4 { get; set; }
public string Name4 { get; set; } = "";
}
}

View File

@@ -25,7 +25,7 @@ namespace ConsoleApp3.DataContracts
/// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; }
public Object? SevClient { get; set; }
/// <summary>
///
@@ -33,7 +33,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "number", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "number")]
public string Number { get; set; }
public string Number { get; set; } = "";
/// <summary>
///
@@ -41,7 +41,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
public string Name { get; set; } = "";
/// <summary>
///
@@ -49,7 +49,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "color", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "color")]
public string Color { get; set; }
public string Color { get; set; } = "";
/// <summary>
///
@@ -57,6 +57,6 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "postingAccount", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "postingAccount")]
public string PostingAccount { get; set; }
public string PostingAccount { get; set; } = "";
}
}

View File

@@ -24,7 +24,7 @@ namespace ConsoleApp3.DataContracts
/// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; }
public Object? SevClient { get; set; }
/// <summary>
///
@@ -32,6 +32,6 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
public string Name { get; set; } = "";
}
}

View File

@@ -28,7 +28,7 @@ namespace ConsoleApp3.DataContracts
/// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; }
public Object? SevClient { get; set; }
/// <summary>
///
@@ -36,7 +36,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
public string Name { get; set; } = "";
/// <summary>
///
@@ -44,7 +44,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "text", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "text")]
public string Text { get; set; }
public string Text { get; set; } = "";
}
}

View File

@@ -13,10 +13,10 @@ namespace ConsoleApp3.DataContracts
{
[DataMember(Name = "invoice", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "invoice")]
public Invoice Invoice { get; set; }
public Invoice? Invoice { get; set; }
[DataMember(Name = "invoicePosSave", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "invoicePosSave")]
public InvoicePosSave[] InvoicePosSaves { get; set; }
public InvoicePosSave[]? InvoicePosSaves { get; set; }
}
}

View File

@@ -21,6 +21,6 @@ namespace ConsoleApp3.DataContracts
/// <value>This information is not visible for you</value>
[DataMember(Name = "hidden", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "hidden")]
public string Hidden { get; set; }
public string Hidden { get; set; } = "";
}
}

View File

@@ -20,7 +20,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "code", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "code")]
public string Code { get; set; }
public string Code { get; set; } = "";
/// <summary>
///
@@ -28,7 +28,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
public string Name { get; set; } = "";
/// <summary>
///
@@ -36,7 +36,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "nameEn", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "nameEn")]
public string NameEn { get; set; }
public string NameEn { get; set; } = "";
/// <summary>
///
@@ -44,7 +44,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "translationCode", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "translationCode")]
public string TranslationCode { get; set; }
public string TranslationCode { get; set; } = "";
/// <summary>
///
@@ -52,7 +52,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "locale", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "locale")]
public string Locale { get; set; }
public string Locale { get; set; } = "";
/// <summary>
///

View File

@@ -29,7 +29,7 @@ namespace ConsoleApp3.DataContracts
/// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; }
public Object? SevClient { get; set; }
/// <summary>
///
@@ -37,7 +37,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "text", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "text")]
public string Text { get; set; }
public string Text { get; set; } = "";
/// <summary>
///
@@ -61,7 +61,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "displayText", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "displayText")]
public string DisplayText { get; set; }
public string DisplayText { get; set; } = "";
/// <summary>
///
@@ -69,7 +69,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "vatReportFieldNet", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "vatReportFieldNet")]
public string VatReportFieldNet { get; set; }
public string VatReportFieldNet { get; set; } = "";
/// <summary>
///
@@ -77,7 +77,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "vatReportFieldTax", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "vatReportFieldTax")]
public string VatReportFieldTax { get; set; }
public string VatReportFieldTax { get; set; } = "";
/// <summary>
///
@@ -85,7 +85,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "accountingExportVatField", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "accountingExportVatField")]
public string AccountingExportVatField { get; set; }
public string AccountingExportVatField { get; set; } = "";
/// <summary>
///