Ejemplo n.º 1
0
        protected internal UsBankAccount(NodeWrapper node)
        {
            if (node == null)
            {
                return;
            }

            RoutingNumber     = node.GetString("routing-number");
            Last4             = node.GetString("last-4");
            AccountType       = node.GetString("account-type");
            AccountHolderName = node.GetString("account-holder-name");
            Token             = node.GetString("token");
            ImageUrl          = node.GetString("image-url");
            BankName          = node.GetString("bank-name");
            CustomerId        = node.GetString("customer-id");
            AchMandate        = new AchMandate(node.GetNode("ach-mandate"));
            IsDefault         = node.GetBoolean("default");
            IsVerified        = node.GetBoolean("verified");

            Verifications = new List <UsBankAccountVerification>();
            if (node.GetNode("verifications") != null)
            {
                foreach (var n in node.GetNode("verifications").GetList("us-bank-account-verification"))
                {
                    Verifications.Add(new UsBankAccountVerification(n));
                }
            }
        }
Ejemplo n.º 2
0
 protected internal UsBankAccount(NodeWrapper node)
 {
     RoutingNumber     = node.GetString("routing-number");
     Last4             = node.GetString("last-4");
     AccountType       = node.GetString("account-type");
     AccountHolderName = node.GetString("account-holder-name");
     Token             = node.GetString("token");
     ImageUrl          = node.GetString("image-url");
     BankName          = node.GetString("bank-name");
     CustomerId        = node.GetString("customer-id");
     AchMandate        = new AchMandate(node.GetNode("ach-mandate"));
     IsDefault         = node.GetBoolean("default");
 }