public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is LoyaltyEvent other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((Type == null && other.Type == null) || (Type?.Equals(other.Type) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((AccumulatePoints == null && other.AccumulatePoints == null) || (AccumulatePoints?.Equals(other.AccumulatePoints) == true)) &&
                   ((CreateReward == null && other.CreateReward == null) || (CreateReward?.Equals(other.CreateReward) == true)) &&
                   ((RedeemReward == null && other.RedeemReward == null) || (RedeemReward?.Equals(other.RedeemReward) == true)) &&
                   ((DeleteReward == null && other.DeleteReward == null) || (DeleteReward?.Equals(other.DeleteReward) == true)) &&
                   ((AdjustPoints == null && other.AdjustPoints == null) || (AdjustPoints?.Equals(other.AdjustPoints) == true)) &&
                   ((LoyaltyAccountId == null && other.LoyaltyAccountId == null) || (LoyaltyAccountId?.Equals(other.LoyaltyAccountId) == true)) &&
                   ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) &&
                   ((Source == null && other.Source == null) || (Source?.Equals(other.Source) == true)) &&
                   ((ExpirePoints == null && other.ExpirePoints == null) || (ExpirePoints?.Equals(other.ExpirePoints) == true)) &&
                   ((OtherEvent == null && other.OtherEvent == null) || (OtherEvent?.Equals(other.OtherEvent) == true)));
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hashCode = -1604808841;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            if (LoyaltyAccountId != null)
            {
                hashCode += LoyaltyAccountId.GetHashCode();
            }

            if (RewardTierId != null)
            {
                hashCode += RewardTierId.GetHashCode();
            }

            if (Points != null)
            {
                hashCode += Points.GetHashCode();
            }

            if (OrderId != null)
            {
                hashCode += OrderId.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (UpdatedAt != null)
            {
                hashCode += UpdatedAt.GetHashCode();
            }

            if (RedeemedAt != null)
            {
                hashCode += RedeemedAt.GetHashCode();
            }

            return(hashCode);
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            int hashCode = -265874214;

            if (LoyaltyAccountId != null)
            {
                hashCode += LoyaltyAccountId.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            return(hashCode);
        }
Beispiel #4
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is SearchLoyaltyRewardsRequestLoyaltyRewardQuery other &&
                   ((LoyaltyAccountId == null && other.LoyaltyAccountId == null) || (LoyaltyAccountId?.Equals(other.LoyaltyAccountId) == true)) &&
                   ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)));
        }
Beispiel #5
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is LoyaltyReward other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) &&
                   ((LoyaltyAccountId == null && other.LoyaltyAccountId == null) || (LoyaltyAccountId?.Equals(other.LoyaltyAccountId) == true)) &&
                   ((RewardTierId == null && other.RewardTierId == null) || (RewardTierId?.Equals(other.RewardTierId) == true)) &&
                   ((Points == null && other.Points == null) || (Points?.Equals(other.Points) == true)) &&
                   ((OrderId == null && other.OrderId == null) || (OrderId?.Equals(other.OrderId) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) &&
                   ((RedeemedAt == null && other.RedeemedAt == null) || (RedeemedAt?.Equals(other.RedeemedAt) == true)));
        }
        public override int GetHashCode()
        {
            int hashCode = 1490090338;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (Type != null)
            {
                hashCode += Type.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (AccumulatePoints != null)
            {
                hashCode += AccumulatePoints.GetHashCode();
            }

            if (CreateReward != null)
            {
                hashCode += CreateReward.GetHashCode();
            }

            if (RedeemReward != null)
            {
                hashCode += RedeemReward.GetHashCode();
            }

            if (DeleteReward != null)
            {
                hashCode += DeleteReward.GetHashCode();
            }

            if (AdjustPoints != null)
            {
                hashCode += AdjustPoints.GetHashCode();
            }

            if (LoyaltyAccountId != null)
            {
                hashCode += LoyaltyAccountId.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (Source != null)
            {
                hashCode += Source.GetHashCode();
            }

            if (ExpirePoints != null)
            {
                hashCode += ExpirePoints.GetHashCode();
            }

            if (OtherEvent != null)
            {
                hashCode += OtherEvent.GetHashCode();
            }

            return(hashCode);
        }