namespace ApiTerceiroSimulador.Models.OpenDelivery
{
    public class Discount
    {
        /// <summary>
        /// Amount value of the discount.
        /// </summary>
        public required PriceCurrency Amount { get; set; }

        public required string Target { get; set; } //= DiscountTargets.Cart; //  "CART",

        /// <summary>
        /// Only mandatory for target = ITEM.
        /// </summary>
        public string? TargetId { get; set; }

        /// <summary>
        /// Values sponsored by either party. The sum of the amounts listed in this atribute must match the value informed in the amount atribute above.
        /// </summary>
        public required List<SponsorshipValue> SponsorshipValues { get; set; }
    }
}
