Пример #1
0
        /// <summary>
        /// Returns true if DefaultPaymentMethodDetails instances are equal
        /// </summary>
        /// <param name="input">Instance of DefaultPaymentMethodDetails to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DefaultPaymentMethodDetails input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     this.Type == input.Type ||
                     (this.Type != null &&
                      this.Type.Equals(input.Type))
                     ) &&
                 (
                     this.Number == input.Number ||
                     (this.Number != null &&
                      this.Number.Equals(input.Number))
                 ) &&
                 (
                     this.ExpiryMonth == input.ExpiryMonth ||
                     (this.ExpiryMonth != null &&
                      this.ExpiryMonth.Equals(input.ExpiryMonth))
                 ) &&
                 (
                     this.ExpiryYear == input.ExpiryYear ||
                     (this.ExpiryYear != null &&
                      this.ExpiryYear.Equals(input.ExpiryYear))
                 ) &&
                 (
                     this.HolderName == input.HolderName ||
                     (this.HolderName != null &&
                      this.HolderName.Equals(input.HolderName))
                 ) &&
                 (
                     this.Cvc == input.Cvc ||
                     (this.Cvc != null &&
                      this.Cvc.Equals(input.Cvc))
                 ) &&
                 (
                     this.InstallmentConfigurationKey == input.InstallmentConfigurationKey ||
                     (this.InstallmentConfigurationKey != null &&
                      this.InstallmentConfigurationKey.Equals(input.InstallmentConfigurationKey))
                 ) &&
                 (
                     this.PersonalDetails == input.PersonalDetails ||
                     (this.PersonalDetails != null &&
                      this.PersonalDetails.Equals(input.PersonalDetails))
                 ) &&
                 (
                     this.BillingAddress == input.BillingAddress ||
                     (this.BillingAddress != null &&
                      this.BillingAddress.Equals(input.BillingAddress))
                 ) &&
                 (
                     this.DeliveryAddress == input.DeliveryAddress ||
                     (this.DeliveryAddress != null &&
                      this.DeliveryAddress.Equals(input.DeliveryAddress))
                 ) &&
                 (
                     this.EncryptedCardNumber == input.EncryptedCardNumber ||
                     (this.EncryptedCardNumber != null &&
                      this.EncryptedCardNumber.Equals(input.EncryptedCardNumber))
                 ) &&
                 (
                     this.EncryptedExpiryMonth == input.EncryptedExpiryMonth ||
                     (this.EncryptedExpiryMonth != null &&
                      this.EncryptedExpiryMonth.Equals(input.EncryptedExpiryMonth))
                 ) &&
                 (
                     this.EncryptedExpiryYear == input.EncryptedExpiryYear ||
                     (this.EncryptedExpiryYear != null &&
                      this.EncryptedExpiryYear.Equals(input.EncryptedExpiryYear))
                 ) &&
                 (
                     this.EncryptedSecurityCode == input.EncryptedSecurityCode ||
                     (this.EncryptedSecurityCode != null &&
                      this.EncryptedSecurityCode.Equals(input.EncryptedSecurityCode))
                 ) &&
                 (
#pragma warning disable CS0618 // Type or member is obsolete
                     this.RecurringDetailReference == input.RecurringDetailReference ||
                     (this.RecurringDetailReference != null &&
                      this.RecurringDetailReference.Equals(input.RecurringDetailReference))
#pragma warning restore CS0618 // Type or member is obsolete

                 ) &&
                 (
                     this.StoredPaymentMethodId == input.StoredPaymentMethodId ||
                     (this.StoredPaymentMethodId != null &&
                      this.StoredPaymentMethodId.Equals(input.StoredPaymentMethodId))
                 ) &&
                 (
                     this.StoreDetails == input.StoreDetails ||
                     (this.StoreDetails.Equals(input.StoreDetails))
                 ) &&
                 (
                     this.Issuer == input.Issuer ||
                     (this.Issuer != null &&
                      this.Issuer.Equals(input.Issuer))
                 ) &&
                 (
                     this.SepaOwnerName == input.SepaOwnerName ||
                     (this.SepaOwnerName != null &&
                      this.SepaOwnerName.Equals(input.SepaOwnerName))
                 ) &&
                 (
                     this.SepaIbanNumber == input.SepaIbanNumber ||
                     (this.SepaIbanNumber != null &&
                      this.SepaIbanNumber.Equals(input.SepaIbanNumber))
                 ) &&
                 (
                     this.BankAccount == input.BankAccount ||
                     (this.BankAccount != null &&
                      this.BankAccount.Equals(input.BankAccount))
                 ) &&
                 (
                     this.ApplePayToken == input.ApplePayToken ||
                     (this.ApplePayToken != null &&
                      this.ApplePayToken.Equals(input.ApplePayToken))
                 ) &&
                 (
                     this.GooglePayToken == input.GooglePayToken ||
                     (this.GooglePayToken != null &&
                      this.GooglePayToken.Equals(input.GooglePayToken))
                 ));
        }
        /// <summary>
        /// Returns true if DefaultPaymentMethodDetails instances are equal
        /// </summary>
        /// <param name="input">Instance of DefaultPaymentMethodDetails to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DefaultPaymentMethodDetails input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     this.Type == input.Type ||
                     (this.Type != null &&
                      this.Type.Equals(input.Type))
                     ) &&
                 (
                     this.Number == input.Number ||
                     (this.Number != null &&
                      this.Number.Equals(input.Number))
                 ) &&
                 (
                     this.ExpiryMonth == input.ExpiryMonth ||
                     (this.ExpiryMonth != null &&
                      this.ExpiryMonth.Equals(input.ExpiryMonth))
                 ) &&
                 (
                     this.ExpiryYear == input.ExpiryYear ||
                     (this.ExpiryYear != null &&
                      this.ExpiryYear.Equals(input.ExpiryYear))
                 ) &&
                 (
                     this.HolderName == input.HolderName ||
                     (this.HolderName != null &&
                      this.HolderName.Equals(input.HolderName))
                 ) &&
                 (
                     this.Cvc == input.Cvc ||
                     (this.Cvc != null &&
                      this.Cvc.Equals(input.Cvc))
                 ) &&
                 (
                     this.InstallmentConfigurationKey == input.InstallmentConfigurationKey ||
                     (this.InstallmentConfigurationKey != null &&
                      this.InstallmentConfigurationKey.Equals(input.InstallmentConfigurationKey))
                 ) &&
                 (
                     this.PersonalDetails == input.PersonalDetails ||
                     (this.PersonalDetails != null &&
                      this.PersonalDetails.Equals(input.PersonalDetails))
                 ) &&
                 (
                     this.BillingAddress == input.BillingAddress ||
                     (this.BillingAddress != null &&
                      this.BillingAddress.Equals(input.BillingAddress))
                 ) &&
                 (
                     this.DeliveryAddress == input.DeliveryAddress ||
                     (this.DeliveryAddress != null &&
                      this.DeliveryAddress.Equals(input.DeliveryAddress))
                 ) &&
                 (
                     this.EncryptedCardNumber == input.EncryptedCardNumber ||
                     (this.EncryptedCardNumber != null &&
                      this.EncryptedCardNumber.Equals(input.EncryptedCardNumber))
                 ) &&
                 (
                     this.EncryptedExpiryMonth == input.EncryptedExpiryMonth ||
                     (this.EncryptedExpiryMonth != null &&
                      this.EncryptedExpiryMonth.Equals(input.EncryptedExpiryMonth))
                 ) &&
                 (
                     this.EncryptedExpiryYear == input.EncryptedExpiryYear ||
                     (this.EncryptedExpiryYear != null &&
                      this.EncryptedExpiryYear.Equals(input.EncryptedExpiryYear))
                 ) &&
                 (
                     this.EncryptedSecurityCode == input.EncryptedSecurityCode ||
                     (this.EncryptedSecurityCode != null &&
                      this.EncryptedSecurityCode.Equals(input.EncryptedSecurityCode))
                 ) &&
                 (
                     this.RecurringDetailReference == input.RecurringDetailReference ||
                     (this.RecurringDetailReference != null &&
                      this.RecurringDetailReference.Equals(input.RecurringDetailReference))
                 ) &&
                 (
                     this.StoreDetails == input.StoreDetails ||
                     (this.StoreDetails != null &&
                      this.StoreDetails.Equals(input.StoreDetails))
                 ) &&
                 (
                     this.IdealIssuer == input.IdealIssuer ||
                     (this.IdealIssuer != null &&
                      this.IdealIssuer.Equals(input.IdealIssuer))
                 ) &&
                 (
                     this.SepaOwnerName == input.SepaOwnerName ||
                     (this.SepaOwnerName != null &&
                      this.SepaOwnerName.Equals(input.SepaOwnerName))
                 ) &&
                 (
                     this.SepaIbanNumber == input.SepaIbanNumber ||
                     (this.SepaIbanNumber != null &&
                      this.SepaIbanNumber.Equals(input.SepaIbanNumber))
                 ) &&
                 (
                     this.BankAccount == input.BankAccount ||
                     (this.BankAccount != null &&
                      this.BankAccount.Equals(input.BankAccount))
                 ));
        }