示例#1
0
 public bool Equals(Subscription other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(RechargeProductId == other.RechargeProductId && SkuOverride == other.SkuOverride && Id == other.Id &&
            AddressId == other.AddressId && CustomerId == other.CustomerId &&
            CreatedAt.Equals(other.CreatedAt) && UpdatedAt.Equals(other.UpdatedAt) &&
            Nullable.Equals(NextChargeScheduledAt, other.NextChargeScheduledAt) &&
            Nullable.Equals(CancelledAt, other.CancelledAt) && ProductTitle == other.ProductTitle &&
            VariantTitle == other.VariantTitle && Price == other.Price && Quantity == other.Quantity &&
            Status == other.Status && ShopifyProductId == other.ShopifyProductId &&
            ShopifyVariantId == other.ShopifyVariantId && Sku == other.Sku &&
            OrderIntervalUnit == other.OrderIntervalUnit &&
            OrderIntervalFrequency == other.OrderIntervalFrequency &&
            ChargeIntervalFrequency == other.ChargeIntervalFrequency &&
            CancellationReason == other.CancellationReason &&
            CancellationReasonComments == other.CancellationReasonComments &&
            OrderDayOfWeek == other.OrderDayOfWeek && OrderDayOfMonth == other.OrderDayOfMonth &&
            ExpireAfterSpecificNumberOfCharges == other.ExpireAfterSpecificNumberOfCharges &&
            MaxRetriesReached == other.MaxRetriesReached && HasQueuedCharges == other.HasQueuedCharges &&
            CommitUpdate == other.CommitUpdate);
 }
示例#2
0
        /// <summary>
        /// Returns true if StoreDeactivation instances are equal
        /// </summary>
        /// <param name="input">Instance of StoreDeactivation to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(StoreDeactivation input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Reason == input.Reason ||
                     Reason != null &&
                     Reason.Equals(input.Reason)
                     ) &&
                 (
                     Notes == input.Notes ||
                     Notes != null &&
                     Notes.Equals(input.Notes)
                 ) &&
                 (
                     CreatedAt == input.CreatedAt ||
                     CreatedAt != null &&
                     CreatedAt.Equals(input.CreatedAt)
                 ) &&
                 (
                     EndTime == input.EndTime ||
                     EndTime != null &&
                     EndTime.Equals(input.EndTime)
                 ));
        }
示例#3
0
 protected bool Equals(User other)
 {
     return(string.Equals(Login, other.Login) &&
            Id == other.Id &&
            string.Equals(NodeId, other.NodeId) &&
            Equals(AvatarUrl, other.AvatarUrl) &&
            string.Equals(GravatarId, other.GravatarId) &&
            Equals(Url, other.Url) &&
            Equals(HtmlUrl, other.HtmlUrl) &&
            Equals(FollowersUrl, other.FollowersUrl) &&
            string.Equals(FollowingUrl, other.FollowingUrl) &&
            string.Equals(GistsUrl, other.GistsUrl) &&
            string.Equals(StarredUrl, other.StarredUrl) &&
            Equals(SubscriptionsUrl, other.SubscriptionsUrl) &&
            Equals(OrganizationsUrl, other.OrganizationsUrl) &&
            Equals(ReposUrl, other.ReposUrl) &&
            string.Equals(EventsUrl, other.EventsUrl) &&
            Equals(ReceivedEventsUrl, other.ReceivedEventsUrl) &&
            string.Equals(Type, other.Type) &&
            SiteAdmin == other.SiteAdmin &&
            string.Equals(Name, other.Name) &&
            string.Equals(Company, other.Company) &&
            string.Equals(Blog, other.Blog) &&
            string.Equals(Location, other.Location) &&
            string.Equals(Email, other.Email) &&
            string.Equals(Hireable, other.Hireable) &&
            string.Equals(Bio, other.Bio) &&
            PublicRepos == other.PublicRepos &&
            PublicGists == other.PublicGists &&
            Followers == other.Followers &&
            Following == other.Following &&
            CreatedAt.Equals(other.CreatedAt) &&
            UpdatedAt.Equals(other.UpdatedAt));
 }
示例#4
0
 protected override bool EqualsCore(ProductModel other)
 {
     return(Color.Equals(other.Color) &&
            Type.Equals(other.Type) &&
            CreatedAt.Equals(other.CreatedAt) &&
            UpdatedAt.Equals(other.UpdatedAt));
 }
示例#5
0
 /// <summary>
 /// Returns a value indicating whether this instance is equal to the specified <see cref="NntpGroupOrigin"/> value.
 /// </summary>
 /// <param name="other">A <see cref="NntpGroupOrigin"/> object to compare to this instance.</param>
 /// <returns>true if <paramref name="other" /> has the same value as this instance; otherwise, false.</returns>
 public bool Equals(NntpGroupOrigin other)
 {
     if ((object)other == null)
     {
         return(false);
     }
     return
         (Name.Equals(other.Name) &&
          CreatedAt.Equals(other.CreatedAt) &&
          CreatedBy.Equals(other.CreatedBy));
 }
 public bool Equals(WebhookRuleset other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(UpdatedAt.Equals(other.UpdatedAt) && CreatedAt.Equals(other.CreatedAt) && Id == other.Id && Name == other.Name);
 }
示例#7
0
 public bool Equals(Product other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(CollectionId == other.CollectionId && CreatedAt.Equals(other.CreatedAt) && DiscountAmount == other.DiscountAmount && DiscountType == other.DiscountType && Id == other.Id && Equals(Images, other.Images) && ProductId == other.ProductId && ShopifyProductId == other.ShopifyProductId && Equals(SubscriptionDefaults, other.SubscriptionDefaults) && Title == other.Title && UpdatedAt.Equals(other.UpdatedAt));
 }
示例#8
0
 public bool Equals(WebhookAddress other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Id == other.Id && CustomerId == other.CustomerId && CreatedAt.Equals(other.CreatedAt) && UpdatedAt.Equals(other.UpdatedAt) && Address1 == other.Address1 && Address2 == other.Address2 && City == other.City && Province == other.Province && FirstName == other.FirstName && LastName == other.LastName && Zip == other.Zip && Company == other.Company && Phone == other.Phone && Country == other.Country && CartNote == other.CartNote && DiscountId == other.DiscountId);
 }
示例#9
0
 public bool Equals(Metafield other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(CreatedAt.Equals(other.CreatedAt) && Description == other.Description && Id == other.Id && Key == other.Key && Namespace == other.Namespace && OwnerId == other.OwnerId && OwnerResource == other.OwnerResource && UpdatedAt.Equals(other.UpdatedAt) && Value == other.Value && ValueType == other.ValueType);
 }
示例#10
0
 public bool Equals(QueueMessage <TData> other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(string.Equals(Id, other.Id) && CreatedAt.Equals(other.CreatedAt));
 }
示例#11
0
 public bool Equals(Collection other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(CreatedAt.Equals(other.CreatedAt) && Id == other.Id && Name == other.Name && UpdatedAt.Equals(other.UpdatedAt));
 }
示例#12
0
 public bool Equals(OneTimeProduct other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(AddressId == other.AddressId && CreatedAt.Equals(other.CreatedAt) && CustomerId == other.CustomerId && Id == other.Id && Nullable.Equals(NextChargeScheduledAt, other.NextChargeScheduledAt) && Price == other.Price && ProductTitle == other.ProductTitle && Quantity == other.Quantity && RechargeProductId == other.RechargeProductId && ShopifyProductId == other.ShopifyProductId && ShopifyVariantId == other.ShopifyVariantId && Sku == other.Sku && Status == other.Status && UpdatedAt.Equals(other.UpdatedAt) && VariantTitle == other.VariantTitle);
 }
        /// <summary>
        /// Returns true if DetailedSegment instances are equal
        /// </summary>
        /// <param name="other">Instance of DetailedSegment to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DetailedSegment other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     CreatedAt == other.CreatedAt ||
                     CreatedAt != null &&
                     CreatedAt.Equals(other.CreatedAt)
                     ) &&
                 (
                     UpdatedAt == other.UpdatedAt ||
                     UpdatedAt != null &&
                     UpdatedAt.Equals(other.UpdatedAt)
                 ) &&
                 (
                     TotalElevationGain == other.TotalElevationGain ||
                     TotalElevationGain != null &&
                     TotalElevationGain.Equals(other.TotalElevationGain)
                 ) &&
                 (
                     Map == other.Map ||
                     Map != null &&
                     Map.Equals(other.Map)
                 ) &&
                 (
                     EffortCount == other.EffortCount ||
                     EffortCount != null &&
                     EffortCount.Equals(other.EffortCount)
                 ) &&
                 (
                     AthleteCount == other.AthleteCount ||
                     AthleteCount != null &&
                     AthleteCount.Equals(other.AthleteCount)
                 ) &&
                 (
                     Hazardous == other.Hazardous ||
                     Hazardous != null &&
                     Hazardous.Equals(other.Hazardous)
                 ) &&
                 (
                     StarCount == other.StarCount ||
                     StarCount != null &&
                     StarCount.Equals(other.StarCount)
                 ));
        }
        public bool Equals(Comment other)
        {
            if (Object.ReferenceEquals(other, null))
            {
                return(false);
            }

            if (Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Id.Equals(other.Id) && CreatedAt.Equals(other.CreatedAt));
        }
示例#15
0
        /// <inheritdoc />
        public bool Equals(MigrationModel other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(string.Equals(Name, other.Name) && IdInDay == other.IdInDay && CreatedAt.Equals(other.CreatedAt));
        }
        /// <summary>
        /// Returns true if AppTemplateConfiguration instances are equal
        /// </summary>
        /// <param name="other">Instance of AppTemplateConfiguration to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(AppTemplateConfiguration other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                     ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ) &&
                 (
                     CreatedBy == other.CreatedBy ||
                     CreatedBy != null &&
                     CreatedBy.Equals(other.CreatedBy)
                 ) &&
                 (
                     CreatedAt == other.CreatedAt ||
                     CreatedAt != null &&
                     CreatedAt.Equals(other.CreatedAt)
                 ) &&
                 (
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                 ) &&
                 (
                     Secret == other.Secret ||
                     Secret != null &&
                     Secret.Equals(other.Secret)
                 ) &&
                 (
                     Enabled == other.Enabled ||

                     Enabled.Equals(other.Enabled)
                 ));
        }
示例#17
0
 public bool Equals(ScheduledJob other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Id == other.Id && Priority == other.Priority && Attempts == other.Attempts &&
            string.Equals(LastError, other.LastError) &&
            RunAt.Equals(other.RunAt) && SucceededAt.Equals(other.SucceededAt) && FailedAt.Equals(other.FailedAt) &&
            LockedAt.Equals(other.LockedAt) && string.Equals(LockedBy, other.LockedBy) &&
            CreatedAt.Equals(other.CreatedAt) && UpdatedAt.Equals(other.UpdatedAt));
 }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(obj is CustomerSegment other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)));
        }
示例#19
0
        /// <summary>
        /// Returns true if APIKeyInfo instances are equal
        /// </summary>
        /// <param name="input">Instance of APIKeyInfo to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(APIKeyInfo input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ApiKey == input.ApiKey ||
                     (ApiKey != null &&
                      ApiKey.Equals(input.ApiKey))
                     ) &&
                 (
                     UserId == input.UserId ||
                     (UserId != null &&
                      UserId.Equals(input.UserId))
                 ) &&
                 (
                     Ips == input.Ips ||
                     Ips != null &&
                     Ips.SequenceEqual(input.Ips)
                 ) &&
                 (
                     Note == input.Note ||
                     (Note != null &&
                      Note.Equals(input.Note))
                 ) &&
                 (
                     Permissions == input.Permissions ||
                     Permissions != null &&
                     Permissions.SequenceEqual(input.Permissions)
                 ) &&
                 (
                     CreatedAt == input.CreatedAt ||
                     (CreatedAt != null &&
                      CreatedAt.Equals(input.CreatedAt))
                 ) &&
                 (
                     ReadOnly == input.ReadOnly ||
                     (ReadOnly != null &&
                      ReadOnly.Equals(input.ReadOnly))
                 ));
        }
示例#20
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(obj is Order other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) &&
                   ((ReferenceId == null && other.ReferenceId == null) || (ReferenceId?.Equals(other.ReferenceId) == true)) &&
                   ((Source == null && other.Source == null) || (Source?.Equals(other.Source) == true)) &&
                   ((CustomerId == null && other.CustomerId == null) || (CustomerId?.Equals(other.CustomerId) == true)) &&
                   ((LineItems == null && other.LineItems == null) || (LineItems?.Equals(other.LineItems) == true)) &&
                   ((Taxes == null && other.Taxes == null) || (Taxes?.Equals(other.Taxes) == true)) &&
                   ((Discounts == null && other.Discounts == null) || (Discounts?.Equals(other.Discounts) == true)) &&
                   ((ServiceCharges == null && other.ServiceCharges == null) || (ServiceCharges?.Equals(other.ServiceCharges) == true)) &&
                   ((Fulfillments == null && other.Fulfillments == null) || (Fulfillments?.Equals(other.Fulfillments) == true)) &&
                   ((Returns == null && other.Returns == null) || (Returns?.Equals(other.Returns) == true)) &&
                   ((ReturnAmounts == null && other.ReturnAmounts == null) || (ReturnAmounts?.Equals(other.ReturnAmounts) == true)) &&
                   ((NetAmounts == null && other.NetAmounts == null) || (NetAmounts?.Equals(other.NetAmounts) == true)) &&
                   ((RoundingAdjustment == null && other.RoundingAdjustment == null) || (RoundingAdjustment?.Equals(other.RoundingAdjustment) == true)) &&
                   ((Tenders == null && other.Tenders == null) || (Tenders?.Equals(other.Tenders) == true)) &&
                   ((Refunds == null && other.Refunds == null) || (Refunds?.Equals(other.Refunds) == true)) &&
                   ((Metadata == null && other.Metadata == null) || (Metadata?.Equals(other.Metadata) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) &&
                   ((ClosedAt == null && other.ClosedAt == null) || (ClosedAt?.Equals(other.ClosedAt) == true)) &&
                   ((State == null && other.State == null) || (State?.Equals(other.State) == true)) &&
                   ((Version == null && other.Version == null) || (Version?.Equals(other.Version) == true)) &&
                   ((TotalMoney == null && other.TotalMoney == null) || (TotalMoney?.Equals(other.TotalMoney) == true)) &&
                   ((TotalTaxMoney == null && other.TotalTaxMoney == null) || (TotalTaxMoney?.Equals(other.TotalTaxMoney) == true)) &&
                   ((TotalDiscountMoney == null && other.TotalDiscountMoney == null) || (TotalDiscountMoney?.Equals(other.TotalDiscountMoney) == true)) &&
                   ((TotalTipMoney == null && other.TotalTipMoney == null) || (TotalTipMoney?.Equals(other.TotalTipMoney) == true)) &&
                   ((TotalServiceChargeMoney == null && other.TotalServiceChargeMoney == null) || (TotalServiceChargeMoney?.Equals(other.TotalServiceChargeMoney) == true)) &&
                   ((PricingOptions == null && other.PricingOptions == null) || (PricingOptions?.Equals(other.PricingOptions) == true)) &&
                   ((Rewards == null && other.Rewards == null) || (Rewards?.Equals(other.Rewards) == true)));
        }
示例#21
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(obj is User other &&
                   Id.Equals(other.Id) &&
                   ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) &&
                   ((Email == null && other.Email == null) || (Email?.Equals(other.Email) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)));
        }
示例#22
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(obj is Payment other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) &&
                   ((AmountMoney == null && other.AmountMoney == null) || (AmountMoney?.Equals(other.AmountMoney) == true)) &&
                   ((TipMoney == null && other.TipMoney == null) || (TipMoney?.Equals(other.TipMoney) == true)) &&
                   ((TotalMoney == null && other.TotalMoney == null) || (TotalMoney?.Equals(other.TotalMoney) == true)) &&
                   ((AppFeeMoney == null && other.AppFeeMoney == null) || (AppFeeMoney?.Equals(other.AppFeeMoney) == true)) &&
                   ((ProcessingFee == null && other.ProcessingFee == null) || (ProcessingFee?.Equals(other.ProcessingFee) == true)) &&
                   ((RefundedMoney == null && other.RefundedMoney == null) || (RefundedMoney?.Equals(other.RefundedMoney) == true)) &&
                   ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) &&
                   ((DelayDuration == null && other.DelayDuration == null) || (DelayDuration?.Equals(other.DelayDuration) == true)) &&
                   ((DelayAction == null && other.DelayAction == null) || (DelayAction?.Equals(other.DelayAction) == true)) &&
                   ((DelayedUntil == null && other.DelayedUntil == null) || (DelayedUntil?.Equals(other.DelayedUntil) == true)) &&
                   ((SourceType == null && other.SourceType == null) || (SourceType?.Equals(other.SourceType) == true)) &&
                   ((CardDetails == null && other.CardDetails == null) || (CardDetails?.Equals(other.CardDetails) == true)) &&
                   ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) &&
                   ((OrderId == null && other.OrderId == null) || (OrderId?.Equals(other.OrderId) == true)) &&
                   ((ReferenceId == null && other.ReferenceId == null) || (ReferenceId?.Equals(other.ReferenceId) == true)) &&
                   ((CustomerId == null && other.CustomerId == null) || (CustomerId?.Equals(other.CustomerId) == true)) &&
                   ((EmployeeId == null && other.EmployeeId == null) || (EmployeeId?.Equals(other.EmployeeId) == true)) &&
                   ((RefundIds == null && other.RefundIds == null) || (RefundIds?.Equals(other.RefundIds) == true)) &&
                   ((RiskEvaluation == null && other.RiskEvaluation == null) || (RiskEvaluation?.Equals(other.RiskEvaluation) == true)) &&
                   ((BuyerEmailAddress == null && other.BuyerEmailAddress == null) || (BuyerEmailAddress?.Equals(other.BuyerEmailAddress) == true)) &&
                   ((BillingAddress == null && other.BillingAddress == null) || (BillingAddress?.Equals(other.BillingAddress) == true)) &&
                   ((ShippingAddress == null && other.ShippingAddress == null) || (ShippingAddress?.Equals(other.ShippingAddress) == true)) &&
                   ((Note == null && other.Note == null) || (Note?.Equals(other.Note) == true)) &&
                   ((StatementDescriptionIdentifier == null && other.StatementDescriptionIdentifier == null) || (StatementDescriptionIdentifier?.Equals(other.StatementDescriptionIdentifier) == true)) &&
                   ((ReceiptNumber == null && other.ReceiptNumber == null) || (ReceiptNumber?.Equals(other.ReceiptNumber) == true)) &&
                   ((ReceiptUrl == null && other.ReceiptUrl == null) || (ReceiptUrl?.Equals(other.ReceiptUrl) == true)));
        }
示例#23
0
            /// <summary>
            /// Return true if schema is valid
            /// </summary>
            /// <returns>True if valid</returns>
            public ResultReport Validate()
            {
                // Check if properties are not null
                if (SchemaVer == null || PEBakeryMinVer == null)
                {
                    return(new ResultReport(false, "Update json is corrupted"));
                }

                // Check schema_ver and pebakery_min_ver
                if (Global.Const.UpdateSchemaMaxVerInst < SchemaVer)
                {
                    return(new ResultReport(false, "Requires newer version of PEBakery"));
                }
                if (SchemaVer < Global.Const.UpdateSchemaMinVerInst)
                {
                    return(new ResultReport(false, "Update json is too old to be read by PEbakery"));
                }
                if (Global.Const.ProgramVersionInst < PEBakeryMinVer)
                {
                    return(new ResultReport(false, $"Requires PEBakery {Global.Const.ProgramVersionStr} or higher"));
                }

                // Check created_at
                if (CreatedAt.Equals(DateTime.MinValue))
                {
                    return(new ResultReport(false, "Update json is corrupted"));
                }

                // Check file index
                if (Index == null)
                {
                    return(new ResultReport(false, "Update json is corrupted"));
                }
                ResultReport report = Index.Validate();

                if (!report.Success)
                {
                    return(report);
                }

                return(new ResultReport(true));
            }
示例#24
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(obj is V1Payment other &&
                   ((Context == null && other.Context == null) || (Context?.Equals(other.Context) == true)) &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((MerchantId == null && other.MerchantId == null) || (MerchantId?.Equals(other.MerchantId) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((CreatorId == null && other.CreatorId == null) || (CreatorId?.Equals(other.CreatorId) == true)) &&
                   ((Device == null && other.Device == null) || (Device?.Equals(other.Device) == true)) &&
                   ((PaymentUrl == null && other.PaymentUrl == null) || (PaymentUrl?.Equals(other.PaymentUrl) == true)) &&
                   ((ReceiptUrl == null && other.ReceiptUrl == null) || (ReceiptUrl?.Equals(other.ReceiptUrl) == true)) &&
                   ((InclusiveTaxMoney == null && other.InclusiveTaxMoney == null) || (InclusiveTaxMoney?.Equals(other.InclusiveTaxMoney) == true)) &&
                   ((AdditiveTaxMoney == null && other.AdditiveTaxMoney == null) || (AdditiveTaxMoney?.Equals(other.AdditiveTaxMoney) == true)) &&
                   ((TaxMoney == null && other.TaxMoney == null) || (TaxMoney?.Equals(other.TaxMoney) == true)) &&
                   ((TipMoney == null && other.TipMoney == null) || (TipMoney?.Equals(other.TipMoney) == true)) &&
                   ((DiscountMoney == null && other.DiscountMoney == null) || (DiscountMoney?.Equals(other.DiscountMoney) == true)) &&
                   ((TotalCollectedMoney == null && other.TotalCollectedMoney == null) || (TotalCollectedMoney?.Equals(other.TotalCollectedMoney) == true)) &&
                   ((ProcessingFeeMoney == null && other.ProcessingFeeMoney == null) || (ProcessingFeeMoney?.Equals(other.ProcessingFeeMoney) == true)) &&
                   ((NetTotalMoney == null && other.NetTotalMoney == null) || (NetTotalMoney?.Equals(other.NetTotalMoney) == true)) &&
                   ((RefundedMoney == null && other.RefundedMoney == null) || (RefundedMoney?.Equals(other.RefundedMoney) == true)) &&
                   ((SwedishRoundingMoney == null && other.SwedishRoundingMoney == null) || (SwedishRoundingMoney?.Equals(other.SwedishRoundingMoney) == true)) &&
                   ((GrossSalesMoney == null && other.GrossSalesMoney == null) || (GrossSalesMoney?.Equals(other.GrossSalesMoney) == true)) &&
                   ((NetSalesMoney == null && other.NetSalesMoney == null) || (NetSalesMoney?.Equals(other.NetSalesMoney) == true)) &&
                   ((InclusiveTax == null && other.InclusiveTax == null) || (InclusiveTax?.Equals(other.InclusiveTax) == true)) &&
                   ((AdditiveTax == null && other.AdditiveTax == null) || (AdditiveTax?.Equals(other.AdditiveTax) == true)) &&
                   ((Tender == null && other.Tender == null) || (Tender?.Equals(other.Tender) == true)) &&
                   ((Refunds == null && other.Refunds == null) || (Refunds?.Equals(other.Refunds) == true)) &&
                   ((Itemizations == null && other.Itemizations == null) || (Itemizations?.Equals(other.Itemizations) == true)) &&
                   ((SurchargeMoney == null && other.SurchargeMoney == null) || (SurchargeMoney?.Equals(other.SurchargeMoney) == true)) &&
                   ((Surcharges == null && other.Surcharges == null) || (Surcharges?.Equals(other.Surcharges) == true)) &&
                   ((IsPartial == null && other.IsPartial == null) || (IsPartial?.Equals(other.IsPartial) == true)));
        }
示例#25
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(obj is Note other &&
                   Id.Equals(other.Id) &&
                   ((Title == null && other.Title == null) || (Title?.Equals(other.Title) == true)) &&
                   ((Body == null && other.Body == null) || (Body?.Equals(other.Body) == true)) &&
                   UserId.Equals(other.UserId) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)));
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(obj is CashDrawerShiftEvent other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((EmployeeId == null && other.EmployeeId == null) || (EmployeeId?.Equals(other.EmployeeId) == true)) &&
                   ((EventType == null && other.EventType == null) || (EventType?.Equals(other.EventType) == true)) &&
                   ((EventMoney == null && other.EventMoney == null) || (EventMoney?.Equals(other.EventMoney) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((Description == null && other.Description == null) || (Description?.Equals(other.Description) == true)));
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(obj is LoyaltyProgramRewardTier other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   Points.Equals(other.Points) &&
                   ((Name == null && other.Name == null) || (Name?.Equals(other.Name) == true)) &&
                   ((Definition == null && other.Definition == null) || (Definition?.Equals(other.Definition) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((PricingRuleReference == null && other.PricingRuleReference == null) || (PricingRuleReference?.Equals(other.PricingRuleReference) == true)));
        }
示例#28
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(obj is OrderUpdated other &&
                   ((OrderId == null && other.OrderId == null) || (OrderId?.Equals(other.OrderId) == true)) &&
                   ((Version == null && other.Version == null) || (Version?.Equals(other.Version) == true)) &&
                   ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) &&
                   ((State == null && other.State == null) || (State?.Equals(other.State) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)));
        }
示例#29
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(obj is WorkweekConfig other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((StartOfWeek == null && other.StartOfWeek == null) || (StartOfWeek?.Equals(other.StartOfWeek) == true)) &&
                   ((StartOfDayLocalTime == null && other.StartOfDayLocalTime == null) || (StartOfDayLocalTime?.Equals(other.StartOfDayLocalTime) == true)) &&
                   ((Version == null && other.Version == null) || (Version?.Equals(other.Version) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)));
        }
示例#30
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(obj is WageSetting other &&
                   ((TeamMemberId == null && other.TeamMemberId == null) || (TeamMemberId?.Equals(other.TeamMemberId) == true)) &&
                   ((JobAssignments == null && other.JobAssignments == null) || (JobAssignments?.Equals(other.JobAssignments) == true)) &&
                   ((IsOvertimeExempt == null && other.IsOvertimeExempt == null) || (IsOvertimeExempt?.Equals(other.IsOvertimeExempt) == true)) &&
                   ((Version == null && other.Version == null) || (Version?.Equals(other.Version) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)));
        }