﻿using System;

namespace Zhua.Domain
{
    public class ParcelLine
    {
        public ParcelLine(string name, double quantity)
        {
            Id = Guid.NewGuid();
            CreatedOn = DateTime.Now;

            Name = name;
            Quantity = quantity;
        }

        public ParcelLine(string name, double quantity, Guid id, DateTime createdOn)
        {
            Id = id;
            CreatedOn = createdOn;

            Name = name;
            Quantity = quantity;
        }

        public Guid Id { get; }
        public DateTime CreatedOn { get; }

        public string Name { get; set; }
        public string Description { get; set; }
        public string EnglishName { get; set; }
        public double Quantity { get; set; }
        public decimal ClaimedValue { get; set; }

        public Parcel Parcel { get; set; }
    }
}
