Beispiel #1
0
        private void HydrateBeneficialOwnerData(ElementTree xml, Element xmlTrans, BeneficialOwnerData beneficialOwnerData)
        {
            var ownerDetails = xml.SubElement(xmlTrans, "BeneficialOwnerData");

            xml.SubElement(ownerDetails, "OwnerCount", beneficialOwnerData.OwnersCount);

            if (Convert.ToInt32(beneficialOwnerData.OwnersCount) > 0)
            {
                var ownersList = xml.SubElement(ownerDetails, "Owners");

                foreach (OwnersData ownerInfo in beneficialOwnerData.OwnersList)
                {
                    var newOwner = xml.SubElement(ownersList, "Owner");
                    xml.SubElement(newOwner, "FirstName", ownerInfo.FirstName);
                    xml.SubElement(newOwner, "LastName", ownerInfo.LastName);
                    xml.SubElement(newOwner, "Email", ownerInfo.Email);
                    xml.SubElement(newOwner, "SSN", ownerInfo.SSN);
                    xml.SubElement(newOwner, "DateOfBirth", ownerInfo.DateOfBirth);
                    xml.SubElement(newOwner, "Address", ownerInfo.OwnerAddress.StreetAddress1);
                    xml.SubElement(newOwner, "City", ownerInfo.OwnerAddress.City);
                    xml.SubElement(newOwner, "State", ownerInfo.OwnerAddress.State);
                    xml.SubElement(newOwner, "Zip", ownerInfo.OwnerAddress.PostalCode);
                    xml.SubElement(newOwner, "Country", ownerInfo.OwnerAddress.Country);
                    xml.SubElement(newOwner, "Title", ownerInfo.Title);
                    xml.SubElement(newOwner, "Percentage", ownerInfo.Percentage);
                }
            }
        }
Beispiel #2
0
        public static BeneficialOwnerData GetBeneficialOwnerData()
        {
            var ownersInformation = new BeneficialOwnerData()
            {
                OwnersCount = "2",
                OwnersList  = new List <OwnersData>()
                {
                    // First Owner
                    new OwnersData()
                    {
                        FirstName    = "First1",
                        LastName     = "Last1",
                        Title        = "CEO",
                        Email        = "*****@*****.**",
                        DateOfBirth  = "11-11-1988",
                        SSN          = "123545677",
                        OwnerAddress = new Address()
                        {
                            StreetAddress1 = "123 Main St.",
                            City           = "Downtown",
                            State          = "NJ",
                            PostalCode     = "12345",
                            Country        = "USA"
                        }
                    },
                    //Second Owner
                    new OwnersData()
                    {
                        FirstName    = "First2",
                        LastName     = "Last2",
                        Title        = "Director",
                        Email        = "*****@*****.**",
                        DateOfBirth  = "11-11-1989",
                        SSN          = "123545677",
                        OwnerAddress = new Address()
                        {
                            StreetAddress1 = "123 Main St.",
                            City           = "Downtown",
                            State          = "NJ",
                            PostalCode     = "12345",
                            Country        = "USA"
                        }
                    }
                }
            };

            return(ownersInformation);
        }
Beispiel #3
0
 public PayFacBuilder WithBeneficialOwnerData(BeneficialOwnerData beneficialOwnerData)
 {
     BeneficialOwnerData = beneficialOwnerData;
     return(this);
 }