Example #1
0
        public RecipientAccount(string type, string currency, string id, bool primary, string country, string iban = null, string accountNum = null, string recipientAccountId = null, string routeType = null, string recipientFees = null, string emailAddress = null, string accountHolderName = null, string swiftBic = null, string branchId = null, string bankName = null, string bankId = null, string bankAddress = null, string bankCity = null, string bankRegionCode = null, string bankPostalCode = null, MailingAddress mailing = null)

        {
            this.id                 = id;
            this.primary            = primary;
            this.currency           = currency;
            this.recipientAccountId = recipientAccountId;
            this.routeType          = routeType;
            this.recipientFees      = recipientFees;
            this.emailAddress       = emailAddress;
            this.country            = country;
            this.type               = type;
            this.iban               = iban;
            this.accountNum         = accountNum;
            this.accountHolderName  = accountHolderName;
            this.swiftBic           = swiftBic;
            this.branchId           = branchId;
            this.bankName           = bankName;
            this.bankId             = bankId;
            this.bankAddress        = bankAddress;
            this.bankCity           = bankCity;
            this.bankRegionCode     = bankRegionCode;
            this.bankPostalCode     = bankPostalCode;
            this.mailing            = mailing;
        }
Example #2
0
 /// <summary>
 /// Checks weather all fields in the object being compared are equal to this instances
 /// fields
 /// </summary>
 /// <param name="obj">The object to compare with</param>
 /// <returns></returns>
 public override bool Equals(object obj)
 {
     if (obj != null && obj.GetType() == this.GetType())
     {
         MailingAddress other = (MailingAddress)obj;
         if (other.street1 == this.street1 && other.street2 == this.street2 && other.city == this.city && other.postal == this.postal &&
             other.phone == this.phone && other.country == this.country && other.region == this.region)
         {
             return(true);
         }
     }
     return(false);
 }