/// <summary>
        /// Returns true if CreatePaymentResult instances are equal
        /// </summary>
        /// <param name="other">Instance of CreatePaymentResult to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(CreatePaymentResult other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     CreationOutput == other.CreationOutput ||
                     CreationOutput != null &&
                     CreationOutput.Equals(other.CreationOutput)
                     ) &&
                 (
                     MerchantAction == other.MerchantAction ||
                     MerchantAction != null &&
                     MerchantAction.Equals(other.MerchantAction)
                 ) &&
                 (
                     Payment == other.Payment ||
                     Payment != null &&
                     Payment.Equals(other.Payment)
                 ));
        }
 /// <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 (CreationOutput != null)
         {
             hashCode = hashCode * 59 + CreationOutput.GetHashCode();
         }
         if (MerchantAction != null)
         {
             hashCode = hashCode * 59 + MerchantAction.GetHashCode();
         }
         if (Payment != null)
         {
             hashCode = hashCode * 59 + Payment.GetHashCode();
         }
         return(hashCode);
     }
 }