/// <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 (Creditor != null)
         {
             hashCode = hashCode * 59 + Creditor.GetHashCode();
         }
         if (MandateId != null)
         {
             hashCode = hashCode * 59 + MandateId.GetHashCode();
         }
         if (BankAccountIban != null)
         {
             hashCode = hashCode * 59 + BankAccountIban.GetHashCode();
         }
         if (CustomerContractIdentifier != null)
         {
             hashCode = hashCode * 59 + CustomerContractIdentifier.GetHashCode();
         }
         if (Debtor != null)
         {
             hashCode = hashCode * 59 + Debtor.GetHashCode();
         }
         if (IsRecurring != null)
         {
             hashCode = hashCode * 59 + IsRecurring.GetHashCode();
         }
         if (MandateApproval != null)
         {
             hashCode = hashCode * 59 + MandateApproval.GetHashCode();
         }
         if (PreNotification != null)
         {
             hashCode = hashCode * 59 + PreNotification.GetHashCode();
         }
         return(hashCode);
     }
 }