예제 #1
0
        }                                                      //"vat":{}

        public IParseble Parse(JSONNode financyNode)
        {
            if (financyNode["sub_total"] != null)
            {
                subTotal = new FinanceItem().Parse(financyNode["sub_total"]) as FinanceItem;
            }
            if (financyNode["discount"] != null)
            {
                discount = new FinanceItemBase().Parse(financyNode["discount"]) as FinanceItemBase;
            }
            if (financyNode["fee"] != null)
            {
                fee = new FinanceItemBase().Parse(financyNode["fee"]) as FinanceItemBase;
            }
            if (financyNode["xsolla_credits"] != null)
            {
                xsollaCredits = new FinanceItem().Parse(financyNode["xsolla_credits"]) as FinanceItem;
            }
            if (financyNode["total"] != null)
            {
                total = new FinanceItemBase().Parse(financyNode["total"]) as FinanceItemBase;
            }
            if (financyNode["vat"] != null)
            {
                vat = new FinanceItemBase().Parse(financyNode["vat"]) as FinanceItemBase;
            }
            return(this);
        }
예제 #2
0
 public IParseble Parse(JSONNode financyNode)
 {
     if(financyNode["sub_total"] != null)
         subTotal = new FinanceItem().Parse(financyNode["sub_total"]) as FinanceItem;
     if(financyNode["discount"] != null)
         discount = new FinanceItemBase().Parse(financyNode["discount"]) as FinanceItemBase;
     if(financyNode["fee"] != null)
         fee = new FinanceItemBase().Parse(financyNode["fee"]) as FinanceItemBase;
     if(financyNode["xsolla_credits"] != null)
         xsollaCredits = new FinanceItem().Parse(financyNode["xsolla_credits"]) as FinanceItem;
     if(financyNode["total"] != null)
         total = new FinanceItemBase().Parse(financyNode["total"]) as FinanceItemBase;
     if(financyNode["vat"] != null)
         vat = new FinanceItemBase().Parse(financyNode["vat"]) as FinanceItemBase;
     return this;
 }