namespace ApiTerceiroSimulador.Models.OpenDelivery
{
    public class OrderTotal
    {
        /// <summary>
        /// Sum of the total price of the items listed in the items attribute.
        /// </summary>
        public required PriceCurrency ItemsPrice { get; set; }

        /// <summary>
        /// Sum of the total value of other fees listed in the otherFees attribute.If there isn't one, use 0.
        /// </summary>
        public required PriceCurrency OtherFees { get; set; }

        /// <summary>
        /// Sum of any discounts that may be listed in the discounts attribute. If there isn't one, use 0.
        /// </summary>
        public required PriceCurrency Discount { get; set; }

        /// <summary>
        /// The final value of the order (itemsPrice + otherFees - discounts).
        /// </summary>
        public required PriceCurrency OrderAmount { get; set; }
    }
}
