public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is Invoice other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((Version == null && other.Version == null) || (Version?.Equals(other.Version) == true)) && ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) && ((OrderId == null && other.OrderId == null) || (OrderId?.Equals(other.OrderId) == true)) && ((PrimaryRecipient == null && other.PrimaryRecipient == null) || (PrimaryRecipient?.Equals(other.PrimaryRecipient) == true)) && ((PaymentRequests == null && other.PaymentRequests == null) || (PaymentRequests?.Equals(other.PaymentRequests) == true)) && ((DeliveryMethod == null && other.DeliveryMethod == null) || (DeliveryMethod?.Equals(other.DeliveryMethod) == true)) && ((InvoiceNumber == null && other.InvoiceNumber == null) || (InvoiceNumber?.Equals(other.InvoiceNumber) == true)) && ((Title == null && other.Title == null) || (Title?.Equals(other.Title) == true)) && ((Description == null && other.Description == null) || (Description?.Equals(other.Description) == true)) && ((ScheduledAt == null && other.ScheduledAt == null) || (ScheduledAt?.Equals(other.ScheduledAt) == true)) && ((PublicUrl == null && other.PublicUrl == null) || (PublicUrl?.Equals(other.PublicUrl) == true)) && ((NextPaymentAmountMoney == null && other.NextPaymentAmountMoney == null) || (NextPaymentAmountMoney?.Equals(other.NextPaymentAmountMoney) == true)) && ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) && ((Timezone == null && other.Timezone == null) || (Timezone?.Equals(other.Timezone) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) && ((CustomFields == null && other.CustomFields == null) || (CustomFields?.Equals(other.CustomFields) == true))); }
public override int GetHashCode() { unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ (TransactionId != null ? TransactionId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ChargeStatus != null ? ChargeStatus.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PaymentProcessor != null ? PaymentProcessor.GetHashCode() : 0); hashCode = (hashCode * 397) ^ AddressIsActive.GetHashCode(); hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ChargeId.GetHashCode(); hashCode = (hashCode * 397) ^ AddressId.GetHashCode(); hashCode = (hashCode * 397) ^ (ShopifyId != null ? ShopifyId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShopifyOrderId != null ? ShopifyOrderId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ShopifyOrderNumber.GetHashCode(); hashCode = (hashCode * 397) ^ (ShopifyCartToken != null ? ShopifyCartToken.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ShippingDate.GetHashCode(); hashCode = (hashCode * 397) ^ ScheduledAt.GetHashCode(); hashCode = (hashCode * 397) ^ ShippedDate.GetHashCode(); hashCode = (hashCode * 397) ^ ProcessedAt.GetHashCode(); hashCode = (hashCode * 397) ^ CustomerId.GetHashCode(); hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Hash != null ? Hash.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsPrepaid.GetHashCode(); hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode(); hashCode = (hashCode * 397) ^ UpdatedAt.GetHashCode(); hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TotalPrice != null ? TotalPrice.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShippingAddress != null ? ShippingAddress.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (BillingAddress != null ? BillingAddress.GetHashCode() : 0); return(hashCode); } }
/// <summary> /// Create Post Request /// </summary> /// <returns>Update campaign post request</returns> public UpdateCampaignPostRequest CreatePostRequest() { var deviceFilterString = DeviceFilter.FilterString; UpdateCampaignPostRequest.StateEnum?state = null; if (State.HasValue) { State.ParseEnum <UpdateCampaignPostRequest.StateEnum>(); } var request = new UpdateCampaignPostRequest(DeviceFilter: deviceFilterString, Name: Name) { Description = Description, RootManifestId = ManifestId, State = state, When = ScheduledAt.ToNullableUniversalTime(), }; return(request); }
public override int GetHashCode() { unchecked { var hashCode = AddressId.GetHashCode(); hashCode = (hashCode * 397) ^ (AnalyticsData != null ? AnalyticsData.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (BillingAddress != null ? BillingAddress.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ClientDetails != null ? ClientDetails.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode(); hashCode = (hashCode * 397) ^ (CustomerHash != null ? CustomerHash.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CustomerId.GetHashCode(); hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ HasUncommitedChanges.GetHashCode(); hashCode = (hashCode * 397) ^ Id.GetHashCode(); hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Note != null ? Note.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ProcessedAt.GetHashCode(); hashCode = (hashCode * 397) ^ (ProcessorName != null ? ProcessorName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ScheduledAt.GetHashCode(); hashCode = (hashCode * 397) ^ ShipmentsCount.GetHashCode(); hashCode = (hashCode * 397) ^ (ShippingAddress != null ? ShippingAddress.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ShopifyOrderId.GetHashCode(); hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SubTotal != null ? SubTotal.GetHashCode() : 0); hashCode = (hashCode * 397) ^ SubtotalPrice.GetHashCode(); hashCode = (hashCode * 397) ^ (Tags != null ? Tags.GetHashCode() : 0); hashCode = (hashCode * 397) ^ TaxLines.GetHashCode(); hashCode = (hashCode * 397) ^ (TotalDiscounts != null ? TotalDiscounts.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TotalLineItemsPrice != null ? TotalLineItemsPrice.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TotalPrice != null ? TotalPrice.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TotalRefunds != null ? TotalRefunds.GetHashCode() : 0); hashCode = (hashCode * 397) ^ TotalTax.GetHashCode(); hashCode = (hashCode * 397) ^ TotalWeight.GetHashCode(); hashCode = (hashCode * 397) ^ (TransactionId != null ? TransactionId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0); hashCode = (hashCode * 397) ^ UpdatedAt.GetHashCode(); return(hashCode); } }
/// <summary> /// Determines whether the specified Object is equal to the current Object. /// </summary> /// <param name="obj"></param> /// <returns></returns> public override bool Equals(object obj) { if (obj == null) { return(false); } if (Object.ReferenceEquals(this, obj)) { return(true); } if (this.GetType() != obj.GetType()) { return(false); } var other = (VLMessage)obj; //reference types if (!Object.Equals(Sender, other.Sender)) { return(false); } if (!Object.Equals(Subject, other.Subject)) { return(false); } if (!Object.Equals(Body, other.Body)) { return(false); } if (!Object.Equals(CustomKeyword, other.CustomKeyword)) { return(false); } if (!Object.Equals(Error, other.Error)) { return(false); } if (!Object.Equals(SenderVerificationCode, other.SenderVerificationCode)) { return(false); } //value types if (!Collector.Equals(other.Collector)) { return(false); } if (!MessageId.Equals(other.MessageId)) { return(false); } if (!Status.Equals(other.Status)) { return(false); } if (!AttributeFlags.Equals(other.AttributeFlags)) { return(false); } if (!ScheduledAt.Equals(other.ScheduledAt)) { return(false); } if (!SentCounter.Equals(other.SentCounter)) { return(false); } if (!FailedCounter.Equals(other.FailedCounter)) { return(false); } if (!SkipCounter.Equals(other.SkipCounter)) { return(false); } if (!DeliveryMethod.Equals(other.DeliveryMethod)) { return(false); } if (!CustomSearchField.Equals(other.CustomSearchField)) { return(false); } if (!CustomOperator.Equals(other.CustomOperator)) { return(false); } if (!PendingAt.Equals(other.PendingAt)) { return(false); } if (!PreparingAt.Equals(other.PreparingAt)) { return(false); } if (!PreparedAt.Equals(other.PreparedAt)) { return(false); } if (!ExecutingAt.Equals(other.ExecutingAt)) { return(false); } if (!TerminatedAt.Equals(other.TerminatedAt)) { return(false); } return(true); }
public override int GetHashCode() { return(ScheduledAt.GetHashCode()); }
public override int GetHashCode() { int hashCode = 1321207967; if (Id != null) { hashCode += Id.GetHashCode(); } if (Version != null) { hashCode += Version.GetHashCode(); } if (LocationId != null) { hashCode += LocationId.GetHashCode(); } if (OrderId != null) { hashCode += OrderId.GetHashCode(); } if (PrimaryRecipient != null) { hashCode += PrimaryRecipient.GetHashCode(); } if (PaymentRequests != null) { hashCode += PaymentRequests.GetHashCode(); } if (DeliveryMethod != null) { hashCode += DeliveryMethod.GetHashCode(); } if (InvoiceNumber != null) { hashCode += InvoiceNumber.GetHashCode(); } if (Title != null) { hashCode += Title.GetHashCode(); } if (Description != null) { hashCode += Description.GetHashCode(); } if (ScheduledAt != null) { hashCode += ScheduledAt.GetHashCode(); } if (PublicUrl != null) { hashCode += PublicUrl.GetHashCode(); } if (NextPaymentAmountMoney != null) { hashCode += NextPaymentAmountMoney.GetHashCode(); } if (Status != null) { hashCode += Status.GetHashCode(); } if (Timezone != null) { hashCode += Timezone.GetHashCode(); } if (CreatedAt != null) { hashCode += CreatedAt.GetHashCode(); } if (UpdatedAt != null) { hashCode += UpdatedAt.GetHashCode(); } if (CustomFields != null) { hashCode += CustomFields.GetHashCode(); } return(hashCode); }