This repository has been archived on 2025-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cardmarketbot/ConsoleApp3/DataContracts/Invoice.cs

46 lines
1.9 KiB
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp3.DataContracts
{
internal class Invoice
{
[JsonProperty("id")] public string Id { get; set; }
//[JsonProperty("organizationId")] public string OrganizationId { get; set; }
[JsonProperty("createdDate")] public string CreatedDate { get; set; }
[JsonProperty("updatedDate")] public string UpdatedDate { get; set; }
[JsonProperty("version")] public decimal Version { get; set; }
[JsonProperty("language")] public string Language { get; set; }
[JsonProperty("archived")] public bool Archived { get; set; }
[JsonProperty("voucherStatus")] public string VoucherStatus { get; set; }
[JsonProperty("voucherNumber")] public string VoucherNumber { get; set; }
[JsonProperty("voucherDate")] public string VoucherDate { get; set; }
[JsonProperty("dueDate")] public string DueDate { get; set; }
[JsonProperty("address")] public InvoiceAddress Address { get; set; }
[JsonProperty("lineItems")] public List<InvoiceLineItem> LineItems { get; set; }
[JsonProperty("totalPrice")] public TotalPrice TotalPrice { get; set; }
[JsonProperty("taxConditions")] public TaxConditions TaxConditions { get; set; }
[JsonProperty("shippingConditions")] public ShippingConditions ShippingConditions { get; set; }
}
public class ShippingConditions
{
[JsonProperty("shippingDate")] public string shippingDate { get; set; } = "2023-04-22T00:00:00.000+02:00";
[JsonProperty("shippingType")] public string shippingType { get; set; } = "delivery";
}
public class TaxConditions
{
[JsonProperty("taxType")] public string TaxType { get; set; } = "net";
}
public class TotalPrice
{
[JsonProperty("currency")] public string Currency { get; set; } = "EUR";
}
}