public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (merchantId_ != null)
            {
                hash ^= MerchantId.GetHashCode();
            }
            if (stationId_ != null)
            {
                hash ^= StationId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (IpAddress.Length != 0)
            {
                hash ^= IpAddress.GetHashCode();
            }
            if (Port != 0)
            {
                hash ^= Port.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hashCode = 1546864389;

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

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

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

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

            return(hashCode);
        }
        public override int GetHashCode()
        {
            var hashCode = 71857844;

            hashCode = hashCode * -1521134295 + MerchantId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Guid> .Default.GetHashCode(PaymentId);

            return(hashCode);
        }
        public override int GetHashCode()
        {
            int hashCode = 1685690023;

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

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

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

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

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

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

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

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

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

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

            return(hashCode);
        }
示例#5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (merchantId_ != null)
            {
                hash ^= MerchantId.GetHashCode();
            }
            if (capturedAmount_ != null)
            {
                hash ^= CapturedAmount.GetHashCode();
            }
            if (HostReferenceNumber.Length != 0)
            {
                hash ^= HostReferenceNumber.GetHashCode();
            }
            if (FolioBookingNumber.Length != 0)
            {
                hash ^= FolioBookingNumber.GetHashCode();
            }
            if (paymentCard_ != null)
            {
                hash ^= PaymentCard.GetHashCode();
            }
            if (AuthorizationApprovalCode.Length != 0)
            {
                hash ^= AuthorizationApprovalCode.GetHashCode();
            }
            if (AuthorizationHostReferenceNumber.Length != 0)
            {
                hash ^= AuthorizationHostReferenceNumber.GetHashCode();
            }
            if (authorizationAmount_ != null)
            {
                hash ^= AuthorizationAmount.GetHashCode();
            }
            if (postedAt_ != null)
            {
                hash ^= PostedAt.GetHashCode();
            }
            if (sale_ != null)
            {
                hash ^= Sale.GetHashCode();
            }
            if (SaleState != 0)
            {
                hash ^= SaleState.GetHashCode();
            }
            return(hash);
        }
示例#6
0
        public override int GetHashCode()
        {
            int hashCode = 1120695913;

            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(TypeName);

            hashCode = hashCode * -1521134295 + EqualityComparer <List <Cuisine> > .Default.GetHashCode(Cuisines);

            hashCode = hashCode * -1521134295 + MerchantId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Merchant> .Default.GetHashCode(Merchant);

            return(hashCode);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (merchantId_ != null)
            {
                hash ^= MerchantId.GetHashCode();
            }
            if (paymentCard_ != null)
            {
                hash ^= PaymentCard.GetHashCode();
            }
            if (authorizedAmount_ != null)
            {
                hash ^= AuthorizedAmount.GetHashCode();
            }
            if (capturedAmount_ != null)
            {
                hash ^= CapturedAmount.GetHashCode();
            }
            if (HostReferenceNumber.Length != 0)
            {
                hash ^= HostReferenceNumber.GetHashCode();
            }
            if (EntryMethod != 0)
            {
                hash ^= EntryMethod.GetHashCode();
            }
            if (authorization_ != null)
            {
                hash ^= Authorization.GetHashCode();
            }
            if (State != 0)
            {
                hash ^= State.GetHashCode();
            }
            hash ^= increases_.GetHashCode();
            hash ^= reversals_.GetHashCode();
            hash ^= captures_.GetHashCode();
            hash ^= voids_.GetHashCode();
            if (FolioBookingNumber.Length != 0)
            {
                hash ^= FolioBookingNumber.GetHashCode();
            }
            return(hash);
        }
示例#8
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (MerchantId != 0L)
                    {
                        hash ^= MerchantId.GetHashCode();
                    }
                    if (HasFeedLabel)
                    {
                        hash ^= FeedLabel.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (merchantId_ != null)
            {
                hash ^= MerchantId.GetHashCode();
            }
            if (MerchantName.Length != 0)
            {
                hash ^= MerchantName.GetHashCode();
            }
            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (ProcessorBatchId != 0)
            {
                hash ^= ProcessorBatchId.GetHashCode();
            }
            if (TransactionCount != 0)
            {
                hash ^= TransactionCount.GetHashCode();
            }
            if (totalAmount_ != null)
            {
                hash ^= TotalAmount.GetHashCode();
            }
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            hash ^= captures_.GetHashCode();
            hash ^= refunds_.GetHashCode();
            if (SequenceNumber != 0)
            {
                hash ^= SequenceNumber.GetHashCode();
            }
            return(hash);
        }
示例#10
0
        /// <summary>
        /// Gets the hash code for this object.
        /// </summary>
        /// <returns>
        /// The hash code for this object.
        /// </returns>
        /// <remarks>
        /// * CA2218:
        ///   * If two objects are equal in value based on the Equals override, they must both return the same value for calls
        ///     to GetHashCode.
        ///   * GetHashCode must be overridden whenever Equals is overridden.
        /// * It is fine if the value overflows.
        /// </remarks>
        public override int GetHashCode()
        {
            int result = GlobalId.GetHashCode() +
                         ParentDealId.GetHashCode() +
                         ProviderId.GetHashCode() +
                         MerchantId.GetHashCode() +
                         ProviderCategory.GetHashCode() +
                         StartDate.GetHashCode() +
                         EndDate.GetHashCode() +
                         Amount.GetHashCode() +
                         Count.GetHashCode() +
                         UserLimit.GetHashCode() +
                         MinimumPurchase.GetHashCode() +
                         MaximumDiscount.GetHashCode() +
                         DealStatusId.GetHashCode();

            if (MerchantName != null)
            {
                result += MerchantName.GetHashCode();
            }

            if (Currency != null)
            {
                result += Currency.GetHashCode();
            }

            if (DiscountSummary != null)
            {
                result += DiscountSummary.GetHashCode();
            }

            foreach (PartnerDealInfo partnerDealInfo in PartnerDealInfoList)
            {
                result += partnerDealInfo.GetHashCode();
            }

            if (DayTimeRestrictions != null)
            {
                result += DayTimeRestrictions.GetHashCode();
            }

            return(result);
        }
示例#11
0
        public override int GetHashCode()
        {
            int hashCode = 1777017961;

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

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

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

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

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

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

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

            return(hashCode);
        }
示例#12
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (merchantId_ != null)
            {
                hash ^= MerchantId.GetHashCode();
            }
            if (refundedAmount_ != null)
            {
                hash ^= RefundedAmount.GetHashCode();
            }
            if (HostReferenceNumber.Length != 0)
            {
                hash ^= HostReferenceNumber.GetHashCode();
            }
            if (FolioBookingNumber.Length != 0)
            {
                hash ^= FolioBookingNumber.GetHashCode();
            }
            if (paymentCard_ != null)
            {
                hash ^= PaymentCard.GetHashCode();
            }
            if (postedAt_ != null)
            {
                hash ^= PostedAt.GetHashCode();
            }
            if (State != 0)
            {
                hash ^= State.GetHashCode();
            }
            return(hash);
        }
示例#13
0
        public override int GetHashCode()
        {
            int hashCode = -215174345;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            return(hashCode);
        }
示例#14
0
        public override int GetHashCode()
        {
            int hashCode = -255518735;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            return(hashCode);
        }
示例#15
0
        public override int GetHashCode()
        {
            int hashCode = 699909783;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            return(hashCode);
        }