/// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (CardPaymentMethodSpecificInput != null)
         {
             hashCode = hashCode * 59 + CardPaymentMethodSpecificInput.GetHashCode();
         }
         if (MobilePaymentMethodSpecificInput != null)
         {
             hashCode = hashCode * 59 + MobilePaymentMethodSpecificInput.GetHashCode();
         }
         if (RedirectPaymentMethodSpecificInput != null)
         {
             hashCode = hashCode * 59 + RedirectPaymentMethodSpecificInput.GetHashCode();
         }
         if (FraudFields != null)
         {
             hashCode = hashCode * 59 + FraudFields.GetHashCode();
         }
         if (Order != null)
         {
             hashCode = hashCode * 59 + Order.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if CreatePaymentRequest instances are equal
        /// </summary>
        /// <param name="other">Instance of CreatePaymentRequest to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(CreatePaymentRequest other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     CardPaymentMethodSpecificInput == other.CardPaymentMethodSpecificInput ||
                     CardPaymentMethodSpecificInput != null &&
                     CardPaymentMethodSpecificInput.Equals(other.CardPaymentMethodSpecificInput)
                     ) &&
                 (
                     MobilePaymentMethodSpecificInput == other.MobilePaymentMethodSpecificInput ||
                     MobilePaymentMethodSpecificInput != null &&
                     MobilePaymentMethodSpecificInput.Equals(other.MobilePaymentMethodSpecificInput)
                 ) &&
                 (
                     RedirectPaymentMethodSpecificInput == other.RedirectPaymentMethodSpecificInput ||
                     RedirectPaymentMethodSpecificInput != null &&
                     RedirectPaymentMethodSpecificInput.Equals(other.RedirectPaymentMethodSpecificInput)
                 ) &&
                 (
                     FraudFields == other.FraudFields ||
                     FraudFields != null &&
                     FraudFields.Equals(other.FraudFields)
                 ) &&
                 (
                     Order == other.Order ||
                     Order != null &&
                     Order.Equals(other.Order)
                 ));
        }