public SplitSettlement(XmlNode xmlNode)
 {
     XmlNodeList splitSettlementAmountNodeList = xmlNode.SelectNodes("splitSettlementAmount");
     if (splitSettlementAmountNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in splitSettlementAmountNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 splitSettlementAmountIDRef = item.Attributes["id"].Name;
                 Money ob = Money();
                 IDManager.SetID(splitSettlementAmountIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 splitSettlementAmountIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 splitSettlementAmount = new Money(item);
             }
         }
     }
     
 
     XmlNodeList beneficiaryBankNodeList = xmlNode.SelectNodes("beneficiaryBank");
     if (beneficiaryBankNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in beneficiaryBankNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 beneficiaryBankIDRef = item.Attributes["id"].Name;
                 Routing ob = Routing();
                 IDManager.SetID(beneficiaryBankIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 beneficiaryBankIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 beneficiaryBank = new Routing(item);
             }
         }
     }
     
 
     XmlNodeList beneficiaryNodeList = xmlNode.SelectNodes("beneficiary");
     if (beneficiaryNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in beneficiaryNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 beneficiaryIDRef = item.Attributes["id"].Name;
                 Routing ob = Routing();
                 IDManager.SetID(beneficiaryIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 beneficiaryIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 beneficiary = new Routing(item);
             }
         }
     }
     
 
 }
Example #2
0
        public SplitSettlement(XmlNode xmlNode)
        {
            XmlNode splitSettlementAmountNode = xmlNode.SelectSingleNode("splitSettlementAmount");

            if (splitSettlementAmountNode != null)
            {
                if (splitSettlementAmountNode.Attributes["href"] != null || splitSettlementAmountNode.Attributes["id"] != null)
                {
                    if (splitSettlementAmountNode.Attributes["id"] != null)
                    {
                        splitSettlementAmountIDRef_ = splitSettlementAmountNode.Attributes["id"].Value;
                        Money ob = new Money(splitSettlementAmountNode);
                        IDManager.SetID(splitSettlementAmountIDRef_, ob);
                    }
                    else if (splitSettlementAmountNode.Attributes["href"] != null)
                    {
                        splitSettlementAmountIDRef_ = splitSettlementAmountNode.Attributes["href"].Value;
                    }
                    else
                    {
                        splitSettlementAmount_ = new Money(splitSettlementAmountNode);
                    }
                }
                else
                {
                    splitSettlementAmount_ = new Money(splitSettlementAmountNode);
                }
            }


            XmlNode beneficiaryBankNode = xmlNode.SelectSingleNode("beneficiaryBank");

            if (beneficiaryBankNode != null)
            {
                if (beneficiaryBankNode.Attributes["href"] != null || beneficiaryBankNode.Attributes["id"] != null)
                {
                    if (beneficiaryBankNode.Attributes["id"] != null)
                    {
                        beneficiaryBankIDRef_ = beneficiaryBankNode.Attributes["id"].Value;
                        Routing ob = new Routing(beneficiaryBankNode);
                        IDManager.SetID(beneficiaryBankIDRef_, ob);
                    }
                    else if (beneficiaryBankNode.Attributes["href"] != null)
                    {
                        beneficiaryBankIDRef_ = beneficiaryBankNode.Attributes["href"].Value;
                    }
                    else
                    {
                        beneficiaryBank_ = new Routing(beneficiaryBankNode);
                    }
                }
                else
                {
                    beneficiaryBank_ = new Routing(beneficiaryBankNode);
                }
            }


            XmlNode beneficiaryNode = xmlNode.SelectSingleNode("beneficiary");

            if (beneficiaryNode != null)
            {
                if (beneficiaryNode.Attributes["href"] != null || beneficiaryNode.Attributes["id"] != null)
                {
                    if (beneficiaryNode.Attributes["id"] != null)
                    {
                        beneficiaryIDRef_ = beneficiaryNode.Attributes["id"].Value;
                        Routing ob = new Routing(beneficiaryNode);
                        IDManager.SetID(beneficiaryIDRef_, ob);
                    }
                    else if (beneficiaryNode.Attributes["href"] != null)
                    {
                        beneficiaryIDRef_ = beneficiaryNode.Attributes["href"].Value;
                    }
                    else
                    {
                        beneficiary_ = new Routing(beneficiaryNode);
                    }
                }
                else
                {
                    beneficiary_ = new Routing(beneficiaryNode);
                }
            }
        }
 public SplitSettlement(XmlNode xmlNode)
 {
     XmlNode splitSettlementAmountNode = xmlNode.SelectSingleNode("splitSettlementAmount");
     
     if (splitSettlementAmountNode != null)
     {
         if (splitSettlementAmountNode.Attributes["href"] != null || splitSettlementAmountNode.Attributes["id"] != null) 
         {
             if (splitSettlementAmountNode.Attributes["id"] != null) 
             {
                 splitSettlementAmountIDRef_ = splitSettlementAmountNode.Attributes["id"].Value;
                 Money ob = new Money(splitSettlementAmountNode);
                 IDManager.SetID(splitSettlementAmountIDRef_, ob);
             }
             else if (splitSettlementAmountNode.Attributes["href"] != null)
             {
                 splitSettlementAmountIDRef_ = splitSettlementAmountNode.Attributes["href"].Value;
             }
             else
             {
                 splitSettlementAmount_ = new Money(splitSettlementAmountNode);
             }
         }
         else
         {
             splitSettlementAmount_ = new Money(splitSettlementAmountNode);
         }
     }
     
 
     XmlNode beneficiaryBankNode = xmlNode.SelectSingleNode("beneficiaryBank");
     
     if (beneficiaryBankNode != null)
     {
         if (beneficiaryBankNode.Attributes["href"] != null || beneficiaryBankNode.Attributes["id"] != null) 
         {
             if (beneficiaryBankNode.Attributes["id"] != null) 
             {
                 beneficiaryBankIDRef_ = beneficiaryBankNode.Attributes["id"].Value;
                 Routing ob = new Routing(beneficiaryBankNode);
                 IDManager.SetID(beneficiaryBankIDRef_, ob);
             }
             else if (beneficiaryBankNode.Attributes["href"] != null)
             {
                 beneficiaryBankIDRef_ = beneficiaryBankNode.Attributes["href"].Value;
             }
             else
             {
                 beneficiaryBank_ = new Routing(beneficiaryBankNode);
             }
         }
         else
         {
             beneficiaryBank_ = new Routing(beneficiaryBankNode);
         }
     }
     
 
     XmlNode beneficiaryNode = xmlNode.SelectSingleNode("beneficiary");
     
     if (beneficiaryNode != null)
     {
         if (beneficiaryNode.Attributes["href"] != null || beneficiaryNode.Attributes["id"] != null) 
         {
             if (beneficiaryNode.Attributes["id"] != null) 
             {
                 beneficiaryIDRef_ = beneficiaryNode.Attributes["id"].Value;
                 Routing ob = new Routing(beneficiaryNode);
                 IDManager.SetID(beneficiaryIDRef_, ob);
             }
             else if (beneficiaryNode.Attributes["href"] != null)
             {
                 beneficiaryIDRef_ = beneficiaryNode.Attributes["href"].Value;
             }
             else
             {
                 beneficiary_ = new Routing(beneficiaryNode);
             }
         }
         else
         {
             beneficiary_ = new Routing(beneficiaryNode);
         }
     }
     
 
 }
        public SplitSettlement(XmlNode xmlNode)
        {
            XmlNodeList splitSettlementAmountNodeList = xmlNode.SelectNodes("splitSettlementAmount");

            if (splitSettlementAmountNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in splitSettlementAmountNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        splitSettlementAmountIDRef = item.Attributes["id"].Name;
                        Money ob = Money();
                        IDManager.SetID(splitSettlementAmountIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        splitSettlementAmountIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        splitSettlementAmount = new Money(item);
                    }
                }
            }


            XmlNodeList beneficiaryBankNodeList = xmlNode.SelectNodes("beneficiaryBank");

            if (beneficiaryBankNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in beneficiaryBankNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        beneficiaryBankIDRef = item.Attributes["id"].Name;
                        Routing ob = Routing();
                        IDManager.SetID(beneficiaryBankIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        beneficiaryBankIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        beneficiaryBank = new Routing(item);
                    }
                }
            }


            XmlNodeList beneficiaryNodeList = xmlNode.SelectNodes("beneficiary");

            if (beneficiaryNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in beneficiaryNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        beneficiaryIDRef = item.Attributes["id"].Name;
                        Routing ob = Routing();
                        IDManager.SetID(beneficiaryIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        beneficiaryIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        beneficiary = new Routing(item);
                    }
                }
            }
        }