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

@@ -79,7 +79,7 @@ namespace CardmarketBot
ids.Add(datas[i]); ids.Add(datas[i]);
} }
} }
catch(OpenQA.Selenium.NotFoundException ex) catch(OpenQA.Selenium.NotFoundException)
{ {
Console.WriteLine("Keine Verkäufe aktuell"); Console.WriteLine("Keine Verkäufe aktuell");
return kunden; return kunden;

View File

@@ -27,14 +27,14 @@ namespace CardMarketBot
{ {
try try
{ {
SocketShutdown reason = SocketShutdown.Send; //SocketShutdown reason = SocketShutdown.Send;
lock (_lock) lock (_lock)
{ {
BinaryWriter writer = new BinaryWriter(client.GetStream()); BinaryWriter writer = new BinaryWriter(client.GetStream());
writer.Write(str); writer.Write(str);
if (_closed) if (_closed)
{ {
reason = SocketShutdown.Both; //reason = SocketShutdown.Both;
} }
} }
//client.Client.Shutdown(reason); //client.Client.Shutdown(reason);
@@ -99,7 +99,7 @@ namespace CardMarketBot
return result == EResult.OK; return result == EResult.OK;
} }
catch(SocketException e) catch(SocketException)
{ {
throw new SocketException(); throw new SocketException();
} }

View File

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

View File

@@ -6,7 +6,7 @@ namespace ConsoleApp3.DataContracts
{ {
internal class Invoices 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> /// <value></value>
[DataMember(Name = "parent", EmitDefaultValue = false)] [DataMember(Name = "parent", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "parent")] [JsonProperty(PropertyName = "parent")]
public ModelCategory Parent { get; set; } public ModelCategory? Parent { get; set; }
/// <summary> /// <summary>
/// ///
@@ -32,7 +32,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "name", EmitDefaultValue = false)] [DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")] [JsonProperty(PropertyName = "name")]
public string Name { get; set; } public string Name { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -40,7 +40,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "objectType", EmitDefaultValue = false)] [DataMember(Name = "objectType", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "objectType")] [JsonProperty(PropertyName = "objectType")]
public string ObjectType { get; set; } public string ObjectType { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -56,7 +56,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "code", EmitDefaultValue = false)] [DataMember(Name = "code", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "code")] [JsonProperty(PropertyName = "code")]
public string Code { get; set; } public string Code { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -64,7 +64,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "color", EmitDefaultValue = false)] [DataMember(Name = "color", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "color")] [JsonProperty(PropertyName = "color")]
public string Color { get; set; } public string Color { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -72,7 +72,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)] [DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")] [JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; } public Object? SevClient { get; set; }
/// <summary> /// <summary>
/// ///
@@ -80,7 +80,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "postingAccount", EmitDefaultValue = false)] [DataMember(Name = "postingAccount", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "postingAccount")] [JsonProperty(PropertyName = "postingAccount")]
public string PostingAccount { get; set; } public string PostingAccount { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -88,7 +88,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "type", EmitDefaultValue = false)] [DataMember(Name = "type", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "type")] [JsonProperty(PropertyName = "type")]
public string Type { get; set; } public string Type { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -96,7 +96,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "translationCode", EmitDefaultValue = false)] [DataMember(Name = "translationCode", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "translationCode")] [JsonProperty(PropertyName = "translationCode")]
public string TranslationCode { get; set; } public string TranslationCode { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -104,7 +104,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "entryType", EmitDefaultValue = false)] [DataMember(Name = "entryType", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "entryType")] [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> /// <value>the contact address</value>
[DataMember(Name = "address", EmitDefaultValue = false)] [DataMember(Name = "address", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "address")] [JsonProperty(PropertyName = "address")]
public ModelContactAddress Address { get; set; } public ModelContactAddress? Address { get; set; }
/// <summary> /// <summary>
/// the creation date of the contact /// the creation date of the contact
@@ -43,7 +43,7 @@ namespace ConsoleApp3.DataContracts
/// <value>name of the contact</value> /// <value>name of the contact</value>
[DataMember(Name = "name", EmitDefaultValue = false)] [DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")] [JsonProperty(PropertyName = "name")]
public string Name { get; set; } public string Name { get; set; } = "";
/// <summary> /// <summary>
/// status of the contact /// status of the contact
@@ -67,7 +67,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "parent", EmitDefaultValue = false)] [DataMember(Name = "parent", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "parent")] [JsonProperty(PropertyName = "parent")]
public ModelContact Parent { get; set; } public ModelContact? Parent { get; set; }
/// <summary> /// <summary>
/// surname of the contact /// surname of the contact
@@ -75,7 +75,7 @@ namespace ConsoleApp3.DataContracts
/// <value>surname of the contact</value> /// <value>surname of the contact</value>
[DataMember(Name = "surename", EmitDefaultValue = false)] [DataMember(Name = "surename", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "surename")] [JsonProperty(PropertyName = "surename")]
public string Surename { get; set; } public string Surename { get; set; } = "";
/// <summary> /// <summary>
/// family name of the contact /// family name of the contact
@@ -83,7 +83,7 @@ namespace ConsoleApp3.DataContracts
/// <value>family name of the contact</value> /// <value>family name of the contact</value>
[DataMember(Name = "familyname", EmitDefaultValue = false)] [DataMember(Name = "familyname", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "familyname")] [JsonProperty(PropertyName = "familyname")]
public string Familyname { get; set; } public string Familyname { get; set; } = "";
/// <summary> /// <summary>
/// title of the contact /// title of the contact
@@ -91,7 +91,7 @@ namespace ConsoleApp3.DataContracts
/// <value>title of the contact</value> /// <value>title of the contact</value>
[DataMember(Name = "titel", EmitDefaultValue = false)] [DataMember(Name = "titel", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "titel")] [JsonProperty(PropertyName = "titel")]
public string Titel { get; set; } public string Titel { get; set; } = "";
/// <summary> /// <summary>
/// category of the contact /// category of the contact
@@ -99,7 +99,7 @@ namespace ConsoleApp3.DataContracts
/// <value>category of the contact</value> /// <value>category of the contact</value>
[DataMember(Name = "category", EmitDefaultValue = false)] [DataMember(Name = "category", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "category")] [JsonProperty(PropertyName = "category")]
public ModelCategory Category { get; set; } public ModelCategory? Category { get; set; }
/// <summary> /// <summary>
/// description of the contact /// description of the contact
@@ -107,7 +107,7 @@ namespace ConsoleApp3.DataContracts
/// <value>description of the contact</value> /// <value>description of the contact</value>
[DataMember(Name = "description", EmitDefaultValue = false)] [DataMember(Name = "description", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "description")] [JsonProperty(PropertyName = "description")]
public string Description { get; set; } public string Description { get; set; } = "";
/// <summary> /// <summary>
/// any academic title of the contact /// any academic title of the contact
@@ -115,7 +115,7 @@ namespace ConsoleApp3.DataContracts
/// <value>any academic title of the contact</value> /// <value>any academic title of the contact</value>
[DataMember(Name = "academicTitle", EmitDefaultValue = false)] [DataMember(Name = "academicTitle", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "academicTitle")] [JsonProperty(PropertyName = "academicTitle")]
public string AcademicTitle { get; set; } public string AcademicTitle { get; set; } = "";
/// <summary> /// <summary>
/// gender of the contact /// gender of the contact
@@ -123,7 +123,7 @@ namespace ConsoleApp3.DataContracts
/// <value>gender of the contact</value> /// <value>gender of the contact</value>
[DataMember(Name = "gender", EmitDefaultValue = false)] [DataMember(Name = "gender", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "gender")] [JsonProperty(PropertyName = "gender")]
public string Gender { get; set; } public string Gender { get; set; } = "";
/// <summary> /// <summary>
/// sevClient is the unique id every customer has and is used in nearly all operations /// 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> /// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)] [DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")] [JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; } public Object? SevClient { get; set; }
/// <summary> /// <summary>
/// second name of the contact /// second name of the contact
@@ -139,7 +139,7 @@ namespace ConsoleApp3.DataContracts
/// <value>second name of the contact</value> /// <value>second name of the contact</value>
[DataMember(Name = "name2", EmitDefaultValue = false)] [DataMember(Name = "name2", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name2")] [JsonProperty(PropertyName = "name2")]
public string Name2 { get; set; } public string Name2 { get; set; } = "";
/// <summary> /// <summary>
/// birthday of the contact /// birthday of the contact
@@ -155,7 +155,7 @@ namespace ConsoleApp3.DataContracts
/// <value>vat number of the contact</value> /// <value>vat number of the contact</value>
[DataMember(Name = "vatNumber", EmitDefaultValue = false)] [DataMember(Name = "vatNumber", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "vatNumber")] [JsonProperty(PropertyName = "vatNumber")]
public string VatNumber { get; set; } public string VatNumber { get; set; } = "";
/// <summary> /// <summary>
/// bank account of the contact /// bank account of the contact
@@ -163,7 +163,7 @@ namespace ConsoleApp3.DataContracts
/// <value>bank account of the contact</value> /// <value>bank account of the contact</value>
[DataMember(Name = "bankAccount", EmitDefaultValue = false)] [DataMember(Name = "bankAccount", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "bankAccount")] [JsonProperty(PropertyName = "bankAccount")]
public string BankAccount { get; set; } public string BankAccount { get; set; } = "";
/// <summary> /// <summary>
/// bank number of the contact /// bank number of the contact
@@ -171,7 +171,7 @@ namespace ConsoleApp3.DataContracts
/// <value>bank number of the contact</value> /// <value>bank number of the contact</value>
[DataMember(Name = "bankNumber", EmitDefaultValue = false)] [DataMember(Name = "bankNumber", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "bankNumber")] [JsonProperty(PropertyName = "bankNumber")]
public string BankNumber { get; set; } public string BankNumber { get; set; } = "";
/// <summary> /// <summary>
/// desired payment method of the customer /// desired payment method of the customer
@@ -179,7 +179,7 @@ namespace ConsoleApp3.DataContracts
/// <value>desired payment method of the customer</value> /// <value>desired payment method of the customer</value>
[DataMember(Name = "paymentMethod", EmitDefaultValue = false)] [DataMember(Name = "paymentMethod", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "paymentMethod")] [JsonProperty(PropertyName = "paymentMethod")]
public ModelPaymentMethod PaymentMethod { get; set; } public ModelPaymentMethod? PaymentMethod { get; set; }
/// <summary> /// <summary>
/// ///
@@ -187,7 +187,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "entryType", EmitDefaultValue = false)] [DataMember(Name = "entryType", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "entryType")] [JsonProperty(PropertyName = "entryType")]
public ModelEntryType EntryType { get; set; } public ModelEntryType? EntryType { get; set; }
/// <summary> /// <summary>
/// default cashback time of the contact /// default cashback time of the contact
@@ -219,7 +219,7 @@ namespace ConsoleApp3.DataContracts
/// <value>tax number of the contact</value> /// <value>tax number of the contact</value>
[DataMember(Name = "taxNumber", EmitDefaultValue = false)] [DataMember(Name = "taxNumber", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "taxNumber")] [JsonProperty(PropertyName = "taxNumber")]
public string TaxNumber { get; set; } public string TaxNumber { get; set; } = "";
/// <summary> /// <summary>
/// tax office of the contact /// tax office of the contact
@@ -227,6 +227,6 @@ namespace ConsoleApp3.DataContracts
/// <value>tax office of the contact</value> /// <value>tax office of the contact</value>
[DataMember(Name = "taxOffice", EmitDefaultValue = false)] [DataMember(Name = "taxOffice", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "taxOffice")] [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> /// <value>the contact the address belongs to</value>
[DataMember(Name = "contact", EmitDefaultValue = false)] [DataMember(Name = "contact", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "contact")] [JsonProperty(PropertyName = "contact")]
public ModelContact Contact { get; set; } public ModelContact? Contact { get; set; }
/// <summary> /// <summary>
/// ///
@@ -36,7 +36,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "street", EmitDefaultValue = false)] [DataMember(Name = "street", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "street")] [JsonProperty(PropertyName = "street")]
public string Street { get; set; } public string Street { get; set; } = "";
/// <summary> /// <summary>
/// zip of the city/village /// zip of the city/village
@@ -44,7 +44,7 @@ namespace ConsoleApp3.DataContracts
/// <value>zip of the city/village</value> /// <value>zip of the city/village</value>
[DataMember(Name = "zip", EmitDefaultValue = false)] [DataMember(Name = "zip", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "zip")] [JsonProperty(PropertyName = "zip")]
public string Zip { get; set; } public string Zip { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -52,7 +52,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "city", EmitDefaultValue = false)] [DataMember(Name = "city", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "city")] [JsonProperty(PropertyName = "city")]
public string City { get; set; } public string City { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -60,7 +60,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "country", EmitDefaultValue = false)] [DataMember(Name = "country", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "country")] [JsonProperty(PropertyName = "country")]
public ModelStaticCountry Country { get; set; } public ModelStaticCountry? Country { get; set; }
/// <summary> /// <summary>
/// category of the address /// category of the address
@@ -68,7 +68,7 @@ namespace ConsoleApp3.DataContracts
/// <value>category of the address</value> /// <value>category of the address</value>
[DataMember(Name = "category", EmitDefaultValue = false)] [DataMember(Name = "category", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "category")] [JsonProperty(PropertyName = "category")]
public ModelCategory Category { get; set; } public ModelCategory? Category { get; set; }
/// <summary> /// <summary>
/// ///
@@ -76,7 +76,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "name", EmitDefaultValue = false)] [DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")] [JsonProperty(PropertyName = "name")]
public string Name { get; set; } public string Name { get; set; } = "";
/// <summary> /// <summary>
/// sevClient is the unique id every customer has and is used in nearly all operations /// 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> /// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)] [DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")] [JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; } public Object SevClient { get; set; } = new object();
/// <summary> /// <summary>
/// ///
@@ -92,7 +92,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "name2", EmitDefaultValue = false)] [DataMember(Name = "name2", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name2")] [JsonProperty(PropertyName = "name2")]
public string Name2 { get; set; } public string Name2 { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -100,7 +100,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "name3", EmitDefaultValue = false)] [DataMember(Name = "name3", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name3")] [JsonProperty(PropertyName = "name3")]
public string Name3 { get; set; } public string Name3 { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -108,7 +108,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "name4", EmitDefaultValue = false)] [DataMember(Name = "name4", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name4")] [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> /// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)] [DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")] [JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; } public Object? SevClient { get; set; }
/// <summary> /// <summary>
/// ///
@@ -33,7 +33,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "number", EmitDefaultValue = false)] [DataMember(Name = "number", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "number")] [JsonProperty(PropertyName = "number")]
public string Number { get; set; } public string Number { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -41,7 +41,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "name", EmitDefaultValue = false)] [DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")] [JsonProperty(PropertyName = "name")]
public string Name { get; set; } public string Name { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -49,7 +49,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "color", EmitDefaultValue = false)] [DataMember(Name = "color", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "color")] [JsonProperty(PropertyName = "color")]
public string Color { get; set; } public string Color { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -57,6 +57,6 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "postingAccount", EmitDefaultValue = false)] [DataMember(Name = "postingAccount", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "postingAccount")] [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> /// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)] [DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")] [JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; } public Object? SevClient { get; set; }
/// <summary> /// <summary>
/// ///
@@ -32,6 +32,6 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "name", EmitDefaultValue = false)] [DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")] [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> /// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)] [DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")] [JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; } public Object? SevClient { get; set; }
/// <summary> /// <summary>
/// ///
@@ -36,7 +36,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "name", EmitDefaultValue = false)] [DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")] [JsonProperty(PropertyName = "name")]
public string Name { get; set; } public string Name { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -44,7 +44,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "text", EmitDefaultValue = false)] [DataMember(Name = "text", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "text")] [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)] [DataMember(Name = "invoice", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "invoice")] [JsonProperty(PropertyName = "invoice")]
public Invoice Invoice { get; set; } public Invoice? Invoice { get; set; }
[DataMember(Name = "invoicePosSave", EmitDefaultValue = false)] [DataMember(Name = "invoicePosSave", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "invoicePosSave")] [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> /// <value>This information is not visible for you</value>
[DataMember(Name = "hidden", EmitDefaultValue = false)] [DataMember(Name = "hidden", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "hidden")] [JsonProperty(PropertyName = "hidden")]
public string Hidden { get; set; } public string Hidden { get; set; } = "";
} }
} }

View File

@@ -20,7 +20,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "code", EmitDefaultValue = false)] [DataMember(Name = "code", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "code")] [JsonProperty(PropertyName = "code")]
public string Code { get; set; } public string Code { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -28,7 +28,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "name", EmitDefaultValue = false)] [DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")] [JsonProperty(PropertyName = "name")]
public string Name { get; set; } public string Name { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -36,7 +36,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "nameEn", EmitDefaultValue = false)] [DataMember(Name = "nameEn", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "nameEn")] [JsonProperty(PropertyName = "nameEn")]
public string NameEn { get; set; } public string NameEn { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -44,7 +44,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "translationCode", EmitDefaultValue = false)] [DataMember(Name = "translationCode", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "translationCode")] [JsonProperty(PropertyName = "translationCode")]
public string TranslationCode { get; set; } public string TranslationCode { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -52,7 +52,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "locale", EmitDefaultValue = false)] [DataMember(Name = "locale", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "locale")] [JsonProperty(PropertyName = "locale")]
public string Locale { get; set; } public string Locale { get; set; } = "";
/// <summary> /// <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> /// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)] [DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")] [JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; } public Object? SevClient { get; set; }
/// <summary> /// <summary>
/// ///
@@ -37,7 +37,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "text", EmitDefaultValue = false)] [DataMember(Name = "text", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "text")] [JsonProperty(PropertyName = "text")]
public string Text { get; set; } public string Text { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -61,7 +61,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "displayText", EmitDefaultValue = false)] [DataMember(Name = "displayText", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "displayText")] [JsonProperty(PropertyName = "displayText")]
public string DisplayText { get; set; } public string DisplayText { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -69,7 +69,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "vatReportFieldNet", EmitDefaultValue = false)] [DataMember(Name = "vatReportFieldNet", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "vatReportFieldNet")] [JsonProperty(PropertyName = "vatReportFieldNet")]
public string VatReportFieldNet { get; set; } public string VatReportFieldNet { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -77,7 +77,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "vatReportFieldTax", EmitDefaultValue = false)] [DataMember(Name = "vatReportFieldTax", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "vatReportFieldTax")] [JsonProperty(PropertyName = "vatReportFieldTax")]
public string VatReportFieldTax { get; set; } public string VatReportFieldTax { get; set; } = "";
/// <summary> /// <summary>
/// ///
@@ -85,7 +85,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value> /// <value></value>
[DataMember(Name = "accountingExportVatField", EmitDefaultValue = false)] [DataMember(Name = "accountingExportVatField", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "accountingExportVatField")] [JsonProperty(PropertyName = "accountingExportVatField")]
public string AccountingExportVatField { get; set; } public string AccountingExportVatField { get; set; } = "";
/// <summary> /// <summary>
/// ///

View File

@@ -54,6 +54,7 @@ namespace CardmarketBot
// 3 => Österreich // 3 => Österreich
// 6 => Belgien // 6 => Belgien
// 11 => Frankreich // 11 => Frankreich
// 13 => Irland
// 14 => Italien // 14 => Italien
// 17 => Luxemburg // 17 => Luxemburg
@@ -65,6 +66,7 @@ namespace CardmarketBot
{ "Belgien",6 }, { "Belgien",6 },
{ "Dänemark", 8 }, { "Dänemark", 8 },
{ "Frankreich", 11 }, { "Frankreich", 11 },
{ "Irland", 13 },
{ "Italien", 14 }, { "Italien", 14 },
{ "Luxemburg", 17 } { "Luxemburg", 17 }
}; };

View File

@@ -29,6 +29,7 @@ class Kunde
get => overrideVersandskosten; get => overrideVersandskosten;
set set
{ {
if (value == null) return;
string[] parts = value.Split(' '); string[] parts = value.Split(' ');
if(parts.Length < 2) if(parts.Length < 2)
{ {

View File

@@ -38,6 +38,7 @@ namespace CardmarketBot
foreach (ModelRechnung item in rechnungen) foreach (ModelRechnung item in rechnungen)
{ {
if(item.Invoice == null) continue;
var str_header = item.Invoice.Header; var str_header = item.Invoice.Header;
if (str_header != null) if (str_header != null)
{ {

View File

@@ -26,7 +26,7 @@ namespace CardmarketBot
public async void Create(ModelRechnung rechnung) public async void Create(ModelRechnung rechnung)
{ {
if (rechnung.Invoice == null) return;
rechnung.Invoice.InvoiceNumber = string.Format("RE-{0}", await GetNextInvoiceNumber()); rechnung.Invoice.InvoiceNumber = string.Format("RE-{0}", await GetNextInvoiceNumber());
await WriteInv(rechnung); await WriteInv(rechnung);
} }
@@ -60,7 +60,9 @@ namespace CardmarketBot
{ {
MissingMemberHandling = MissingMemberHandling.Ignore MissingMemberHandling = MissingMemberHandling.Ignore
}; };
#pragma warning disable CS8603 // Mögliche Nullverweisrückgabe.
return JsonConvert.DeserializeObject<Invoices>(contents, jsonSerializerSettings); return JsonConvert.DeserializeObject<Invoices>(contents, jsonSerializerSettings);
#pragma warning restore CS8603 // Mögliche Nullverweisrückgabe.
} }
private async Task<string> GetNextInvoiceNumber() private async Task<string> GetNextInvoiceNumber()
@@ -76,6 +78,8 @@ namespace CardmarketBot
}; };
var ob = JsonConvert.DeserializeObject<RNumbers>(contents, jsonSerializerSettings); var ob = JsonConvert.DeserializeObject<RNumbers>(contents, jsonSerializerSettings);
if (ob == null) return "";
if (ob.ConfigRechnungsnummer == null) return "";
return ob.ConfigRechnungsnummer.NextNumber; return ob.ConfigRechnungsnummer.NextNumber;
} }
@@ -84,7 +88,7 @@ namespace CardmarketBot
[DataContract] [DataContract]
class RNumbers class RNumbers
{ {
[JsonProperty("objects")] public ConfigRechnungnummer ConfigRechnungsnummer { get; set; } [JsonProperty("objects")] public ConfigRechnungnummer? ConfigRechnungsnummer { get; set; }
} }
[DataContract] [DataContract]

View File

@@ -0,0 +1,6 @@
NAME;ZUSATZ;STRASSE;NUMMER;PLZ;STADT;LAND;ADRESS_TYP;REFERENZ
W&W TECH UG;Lukas Winkelmann;Schwedenschanze;70;49808;LINGEN;DEU;HOUSE
Pierre KOch;;Zum Kuckeshof;22;47239;Duisburg;DEU;HOUSE;1122664505
Yunus Elitok;;Heckteichstra<72>e;13;40627;D<>sseldorf;DEU;HOUSE;1122677794
Dennis Wolf;;Edelherr-Ludolf-Ring;13;48432;Rheine;DEU;HOUSE;1122347599
Corin Repina;;Richard-Wagner-Str.;47;78224;Singen;DEU;HOUSE;1122723098
1 NAME;ZUSATZ;STRASSE;NUMMER;PLZ;STADT;LAND;ADRESS_TYP;REFERENZ
2 W&W TECH UG;Lukas Winkelmann;Schwedenschanze;70;49808;LINGEN;DEU;HOUSE
3 Pierre KOch;;Zum Kuckeshof;22;47239;Duisburg;DEU;HOUSE;1122664505
4 Yunus Elitok;;Heckteichstraße;13;40627;Düsseldorf;DEU;HOUSE;1122677794
5 Dennis Wolf;;Edelherr-Ludolf-Ring;13;48432;Rheine;DEU;HOUSE;1122347599
6 Corin Repina;;Richard-Wagner-Str.;47;78224;Singen;DEU;HOUSE;1122723098

View File

@@ -0,0 +1,3 @@
NAME;ZUSATZ;STRASSE;NUMMER;PLZ;STADT;LAND;ADRESS_TYP;REFERENZ
W&W TECH UG;Lukas Winkelmann;Schwedenschanze;70;49808;LINGEN;DEU;HOUSE
Bastian Himmel;;Heinrich-Rau-Stra<72>e;17;16816;Neuruppin;DEU;HOUSE;1122659468
1 NAME;ZUSATZ;STRASSE;NUMMER;PLZ;STADT;LAND;ADRESS_TYP;REFERENZ
2 W&W TECH UG;Lukas Winkelmann;Schwedenschanze;70;49808;LINGEN;DEU;HOUSE
3 Bastian Himmel;;Heinrich-Rau-Straße;17;16816;Neuruppin;DEU;HOUSE;1122659468

View File

@@ -0,0 +1,3 @@
NAME;ZUSATZ;STRASSE;NUMMER;PLZ;STADT;LAND;ADRESS_TYP;REFERENZ
W&W TECH UG;Lukas Winkelmann;Schwedenschanze;70;49808;LINGEN;DEU;HOUSE
Alan Hoban;;9 Kings Hall Phibsboro;Road;D07KX07;Dublin,;DEU;HOUSE;1122708517
1 NAME;ZUSATZ;STRASSE;NUMMER;PLZ;STADT;LAND;ADRESS_TYP;REFERENZ
2 W&W TECH UG;Lukas Winkelmann;Schwedenschanze;70;49808;LINGEN;DEU;HOUSE
3 Alan Hoban;;9 Kings Hall Phibsboro;Road;D07KX07;Dublin,;DEU;HOUSE;1122708517

View File

@@ -0,0 +1,3 @@
NAME;ZUSATZ;STRASSE;NUMMER;PLZ;STADT;LAND;ADRESS_TYP;REFERENZ
W&W TECH UG;Lukas Winkelmann;Schwedenschanze;70;49808;LINGEN;DEU;HOUSE
Torben Clewinig;;Goslarer Stra<72>e;79;70499;Stuttgart;DEU;HOUSE;1122380365
1 NAME;ZUSATZ;STRASSE;NUMMER;PLZ;STADT;LAND;ADRESS_TYP;REFERENZ
2 W&W TECH UG;Lukas Winkelmann;Schwedenschanze;70;49808;LINGEN;DEU;HOUSE
3 Torben Clewinig;;Goslarer Straße;79;70499;Stuttgart;DEU;HOUSE;1122380365