Umgeschrieben auf Sevdesk
This commit is contained in:
67
ConsoleApp3/DataContracts/InvoicePosSave.cs
Normal file
67
ConsoleApp3/DataContracts/InvoicePosSave.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
using Newtonsoft.Json;
|
||||
using OpenQA.Selenium.DevTools.V112.DOM;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ConsoleApp3.DataContracts
|
||||
{
|
||||
[DataContract]
|
||||
internal class InvoicePosSave
|
||||
{
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "id")]
|
||||
public int? Id { get; set; }
|
||||
|
||||
[DataMember(Name = "objectName", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "objectName")]
|
||||
public string ObjectName { get; set; } = "InvoicePos";
|
||||
|
||||
[DataMember(Name = "mapAll", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "mapAll")]
|
||||
public bool MapAll { get; set; } = true;
|
||||
|
||||
[DataMember(Name = "quantity", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "quantity")]
|
||||
public uint Quantity { get; set; }
|
||||
|
||||
[DataMember(Name = "price", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "price")]
|
||||
public decimal Price { get; set; }
|
||||
|
||||
[DataMember(Name = "name", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; } = "";
|
||||
|
||||
[DataMember(Name = "unity", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "unity")]
|
||||
public ModelUnity Unity { get; set; } = new ModelUnity();
|
||||
|
||||
[DataMember(Name = "positionNumber", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "positionNumber")]
|
||||
public uint PositionNumber { get; set; }
|
||||
|
||||
[DataMember(Name = "text", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "text")]
|
||||
public string? Text { get; set; }
|
||||
|
||||
[DataMember(Name = "discount", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "discount")]
|
||||
public int Discount { get; set; } = 0;
|
||||
|
||||
[DataMember(Name = "taxRate", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "taxRate")]
|
||||
public uint TaxRate { get; set; } = 19;
|
||||
|
||||
[DataMember(Name = "priceGross", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "priceGross")]
|
||||
public decimal PriceGross { get; set; }
|
||||
|
||||
[DataMember(Name = "priceTax", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "priceTax")]
|
||||
public int PriceTax { get; set; } = 19;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user