Umgeschrieben auf Sevdesk
This commit is contained in:
@@ -4,6 +4,7 @@ class Kunde
|
||||
{
|
||||
string bestellungID = "";
|
||||
Helper.Porto versandskosten;
|
||||
string? overrideVersandskosten;
|
||||
string name;
|
||||
string strasse;
|
||||
string hausnummer;
|
||||
@@ -11,7 +12,7 @@ class Kunde
|
||||
string ort;
|
||||
string land;
|
||||
List<Artikel> artikels = new List<Artikel>();
|
||||
public string Bezahldatum { get; set; } = "";
|
||||
public DateTime Bezahldatum { get; set; }
|
||||
|
||||
public string Name { get => name; set => name = value; }
|
||||
public string Strasse { get => strasse; set => strasse = value; }
|
||||
@@ -20,8 +21,24 @@ class Kunde
|
||||
public string Land { get => land; set => land = value; }
|
||||
public string BestellungID { get => bestellungID; set => bestellungID = value; }
|
||||
public Helper.Porto Versandskosten { get => versandskosten; set => versandskosten = value; }
|
||||
|
||||
public string Hausnummer { get => hausnummer; set => hausnummer = value; }
|
||||
internal List<Artikel> Artikels { get => artikels; set => artikels = value; }
|
||||
public string? OverrideVersandskosten {
|
||||
get => overrideVersandskosten;
|
||||
set
|
||||
{
|
||||
string[] parts = value.Split(' ');
|
||||
if(parts.Length < 2)
|
||||
{
|
||||
overrideVersandskosten = value;
|
||||
}
|
||||
else
|
||||
{
|
||||
overrideVersandskosten = parts[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Kunde(string Name, string Strasse, string Hausnummer, string PLZ, string Ort, string Land)
|
||||
{
|
||||
@@ -32,26 +49,4 @@ class Kunde
|
||||
ort = Ort;
|
||||
land = Land;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
HttpWebRequest hwr = (HttpWebRequest)HttpWebRequest.Create(@"https://www.cardmarket.com/de/OnePiece/Orders/Sales/Paid");
|
||||
hwr.CookieContainer = cookieContainer;
|
||||
hwr.Method = "GET";
|
||||
hwr.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36";
|
||||
WebResponse wr = hwr.GetResponse();
|
||||
string s = new StreamReader(wr.GetResponseStream()).ReadToEnd();
|
||||
Console.WriteLine(s);
|
||||
|
||||
string GetHashKey(string line)
|
||||
{
|
||||
var x = line.IndexOf("__cmtkn");
|
||||
var d = line.Substring(x + 16);
|
||||
var m = d.IndexOf("\"");
|
||||
var a = d.Substring(0, m);
|
||||
return a;
|
||||
}
|
||||
|
||||
*/
|
||||
}
|
||||
Reference in New Issue
Block a user