public override int GetHashCode() { int hashCode = -1765897747; if (CatalogObjectIds != null) { hashCode += CatalogObjectIds.GetHashCode(); } if (LocationIds != null) { hashCode += LocationIds.GetHashCode(); } if (UpdatedAfter != null) { hashCode += UpdatedAfter.GetHashCode(); } if (Cursor != null) { hashCode += Cursor.GetHashCode(); } if (States != null) { hashCode += States.GetHashCode(); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is BatchRetrieveInventoryCountsRequest other && ((CatalogObjectIds == null && other.CatalogObjectIds == null) || (CatalogObjectIds?.Equals(other.CatalogObjectIds) == true)) && ((LocationIds == null && other.LocationIds == null) || (LocationIds?.Equals(other.LocationIds) == true)) && ((UpdatedAfter == null && other.UpdatedAfter == null) || (UpdatedAfter?.Equals(other.UpdatedAfter) == true)) && ((Cursor == null && other.Cursor == null) || (Cursor?.Equals(other.Cursor) == true)) && ((States == null && other.States == null) || (States?.Equals(other.States) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is LoyaltyProgramRewardDefinition other && ((Scope == null && other.Scope == null) || (Scope?.Equals(other.Scope) == true)) && ((DiscountType == null && other.DiscountType == null) || (DiscountType?.Equals(other.DiscountType) == true)) && ((PercentageDiscount == null && other.PercentageDiscount == null) || (PercentageDiscount?.Equals(other.PercentageDiscount) == true)) && ((CatalogObjectIds == null && other.CatalogObjectIds == null) || (CatalogObjectIds?.Equals(other.CatalogObjectIds) == true)) && ((FixedDiscountMoney == null && other.FixedDiscountMoney == null) || (FixedDiscountMoney?.Equals(other.FixedDiscountMoney) == true)) && ((MaxDiscountMoney == null && other.MaxDiscountMoney == null) || (MaxDiscountMoney?.Equals(other.MaxDiscountMoney) == true))); }
public override int GetHashCode() { int hashCode = 870378021; if (CatalogObjectIds != null) { hashCode += CatalogObjectIds.GetHashCode(); } if (LocationIds != null) { hashCode += LocationIds.GetHashCode(); } if (Types != null) { hashCode += Types.GetHashCode(); } if (States != null) { hashCode += States.GetHashCode(); } if (UpdatedAfter != null) { hashCode += UpdatedAfter.GetHashCode(); } if (UpdatedBefore != null) { hashCode += UpdatedBefore.GetHashCode(); } if (Cursor != null) { hashCode += Cursor.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hashCode = 1536175793; if (Scope != null) { hashCode += Scope.GetHashCode(); } if (DiscountType != null) { hashCode += DiscountType.GetHashCode(); } if (PercentageDiscount != null) { hashCode += PercentageDiscount.GetHashCode(); } if (CatalogObjectIds != null) { hashCode += CatalogObjectIds.GetHashCode(); } if (FixedDiscountMoney != null) { hashCode += FixedDiscountMoney.GetHashCode(); } if (MaxDiscountMoney != null) { hashCode += MaxDiscountMoney.GetHashCode(); } return(hashCode); }