Пример #1
0
            public void sendGetStatus()
            {
                List <Dictionary <string, object> > res = new List <Dictionary <string, object> >();

                try
                {
                    res = connector.GetStatus(getStatusMerchant, getStatusOperationId);
                }
                catch (ResponseException ex)
                {
                    Console.WriteLine(ex.Message);
                }

                if (res != null && res.Count > 0)
                {
                    Dictionary <string, object> d = res[0];
                    if (d.Values != null && d.Values.Count > 0)
                    {
                        for (int i = 0; i < res.Count; i++)
                        {
                            Dictionary <string, object> dic = res[i];
                            foreach (Dictionary <string, object> aux in dic.Values)
                            {
                                foreach (string k in aux.Keys)
                                {
                                    if (aux[k].GetType().IsInstanceOfType(aux))
                                    {
                                        Dictionary <string, object> a = (Dictionary <string, object>)aux[k];
                                        Console.WriteLine("- " + k + ": ");
                                        foreach (Dictionary <string, object> aux2 in a.Values)
                                        {
                                            Console.WriteLine("- REFUND: ");
                                            foreach (string b in aux2.Keys)
                                            {
                                                Console.WriteLine("- " + b + ": " + aux2[b]);
                                            }
                                        }
                                    }
                                    else
                                    {
                                        Console.WriteLine("- " + k + ": " + aux[k]);
                                    }
                                }
                            }
                        }
                    }
                    else
                    {
                        Console.WriteLine("Sin datos");
                    }
                }
                else
                {
                    Console.WriteLine("Sin datos");
                }
            }
Пример #2
0
            public void sendGetStatus()
            {
                List <Dictionary <string, object> > res = connector.GetStatus(getStatusMerchant, getStatusOperationId);

                for (int i = 0; i < res.Count; i++)
                {
                    Dictionary <string, object> dic = res[i];
                    foreach (Dictionary <string, string> aux in dic.Values)
                    {
                        foreach (string k in aux.Keys)
                        {
                            Console.WriteLine("- " + k + ": " + aux[k]);
                        }
                    }
                }
            }