/// <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 (DisplayedData != null)
         {
             hashCode = hashCode * 59 + DisplayedData.GetHashCode();
         }
         if (Payment != null)
         {
             hashCode = hashCode * 59 + Payment.GetHashCode();
         }
         if (PaymentCreationReferences != null)
         {
             hashCode = hashCode * 59 + PaymentCreationReferences.GetHashCode();
         }
         if (PaymentStatusCategory != null)
         {
             hashCode = hashCode * 59 + PaymentStatusCategory.GetHashCode();
         }
         if (TokenizationSucceeded != null)
         {
             hashCode = hashCode * 59 + TokenizationSucceeded.GetHashCode();
         }
         if (Tokens != null)
         {
             hashCode = hashCode * 59 + Tokens.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if CreatedPaymentOutput instances are equal
        /// </summary>
        /// <param name="other">Instance of CreatedPaymentOutput to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(CreatedPaymentOutput other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     DisplayedData == other.DisplayedData ||
                     DisplayedData != null &&
                     DisplayedData.Equals(other.DisplayedData)
                     ) &&
                 (
                     Payment == other.Payment ||
                     Payment != null &&
                     Payment.Equals(other.Payment)
                 ) &&
                 (
                     PaymentCreationReferences == other.PaymentCreationReferences ||
                     PaymentCreationReferences != null &&
                     PaymentCreationReferences.Equals(other.PaymentCreationReferences)
                 ) &&
                 (
                     PaymentStatusCategory == other.PaymentStatusCategory ||
                     PaymentStatusCategory != null &&
                     PaymentStatusCategory.Equals(other.PaymentStatusCategory)
                 ) &&
                 (
                     TokenizationSucceeded == other.TokenizationSucceeded ||
                     TokenizationSucceeded != null &&
                     TokenizationSucceeded.Equals(other.TokenizationSucceeded)
                 ) &&
                 (
                     Tokens == other.Tokens ||
                     Tokens != null &&
                     Tokens.Equals(other.Tokens)
                 ));
        }