using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
using Sockeye.Biz;

namespace Sockeye.Models
{
    public class VendorNotification : ICoreBizObjectModel
    {
        public long Id { get; set; }
        public uint Concurrency { get; set; }
        [Required]
        public DateTime Created { get; set; } = DateTime.UtcNow;
        [Required]
        public long VendorId { get; set; }
        [NotMapped]
        public string VendorViz { get; set; }
        public string VendorData { get; set; }
        public DateTime? Processed { get; set; } = null;//indicates it was fully processed and need not be processed by purchase generating job (all imported data set to processed)

        public List<string> Tags { get; set; }
        //workaround for notification    
        [NotMapped, JsonIgnore]
        public string Name { get; set; }

        public VendorNotification()
        {
            Tags = new List<string>();
        }

        [NotMapped, JsonIgnore]
        public SockType SType { get => SockType.VendorNotification; }

    }//eoc
}//eons

/*

## How to make test sales and product links in ShareIt

fake sale of v8 to get license emails to update rockfish to auto read in the deets
	FAKE CREDIT CARD
		I have generated a test credit card number for your account. Please use the following as the credit card number making sure to use the word test and the 12 digit number with no spaces. 
    You can use any valid information you would like for the other fields.
		test134661442658
		Expiration Date: any date in the future
		CVS code: 123
	Example typical database ID: 
	    tZy9aSHjacFf9a9v3EtzUqM1amq/eMvJa2nXswLle74=
	Links to purchase 
    $50 customization charge https://order.mycommerce.com/cart/new?vendorid=14466&PRODUCT%5B300525428%5D=1
      Use this for custom report work minimum $50 for small changes
                             
		subscription month to month https://order.mycommerce.com/cart/new?vendorid=14466&PRODUCT%5B301028467%5D=1
		subscription yearly https://order.mycommerce.com/cart/new?vendorid=14466&PRODUCT%5B301028468%5D=1
		Perpetual single license: https://order.mycommerce.com/cart/new?vendorid=14466&PRODUCT%5B301028314%5D=1		
		*** TESTING THIS ONE FIRST  Perpetual single one year maintenance ACTIVE DISCOUNT PRICE: https://order.mycommerce.com/cart/new?vendorid=14466&PRODUCT%5B301028315%5D=1		
		Perpetual single one year maintenance NEW FULL PRICE: https://order.mycommerce.com/cart/new?vendorid=14466&PRODUCT%5B301028317%5D=1		
		v7 single for comparison 300740315 https://order.mycommerce.com/cart/new?vendorid=14466&PRODUCT%5B300740315%5D=1
	Address to use for testing
		05-3610 Christie Parkway Courtenay B.C. Canada V9J 9T6

*/
