GaDotNet.Common.Data.GoogleTransaction.Validate C# (CSharp) Method

Validate() public method

Validates this instance.
public Validate ( ) : void
return void
        public void Validate()
        {
            if (String.IsNullOrEmpty(ProductName))
            {
                throw new ArgumentException("'ProductName' is a required field", "ProductName");
            }
            if (String.IsNullOrEmpty(ProductSku))
            {
                throw new ArgumentException("'ProductSku' is a required field", "ProductSku");
            }
            if (String.IsNullOrEmpty(ProductVariant))
            {
                throw new ArgumentException("'ProductVariant' is a required field", "ProductVariant");
            }
            if (String.IsNullOrEmpty(OrderId))
            {
                throw new ArgumentException("'OrderID' is a required field","OrderID");
            }
            if (String.IsNullOrEmpty(Affiliation))
            {
                throw new ArgumentException("'Affiliation' is a required field","Affiliation");
            }
            if (String.IsNullOrEmpty(City))
            {
                throw new ArgumentException("'City' is a required field","City");
            }
            if (String.IsNullOrEmpty(State))
            {
                throw new ArgumentException("'State' is a required field","State");
            }
            if (String.IsNullOrEmpty(Country))
            {
                throw new ArgumentException("'Country' is a required field","Country");
            }
        }
GoogleTransaction