Ejemplo n.º 1
0
        public static List<Credit> Credits(Settings settings, string credits_uri)
        {
            var retVal = new List<Credit>();

            Client c = new Client(settings.location, settings.key);
            var credits = c.get(string.Format("{0}?limit=50&is_valid=true", credits_uri), "");
            retVal = JsonConvert.DeserializeObject<List<Credit>>(credits["items"].ToString());
            retVal.ForEach(x => x.AttachSettings(settings));
            return retVal;
        }
        public static List<BankAccountVerification> BankAccountVerifications(Settings settings, string bank_account_verifications_uri)
        {
            var retVal = new List<BankAccountVerification>();

            Client c = new Client(settings.location, settings.key);
            var bankaccountsverifications = c.get(string.Format("{0}", bank_account_verifications_uri), "");
            retVal = JsonConvert.DeserializeObject<List<BankAccountVerification>>(bankaccountsverifications["items"].ToString());
            retVal.ForEach(x => x.AttachSettings(settings));
            return retVal;
        }
Ejemplo n.º 3
0
        public static List<BankAccount> BankAccounts(Settings settings)
        {
            var retVal = new List<BankAccount>();

            var bank_accounts_uri = string.Format("{0}/bank_accounts?limit=50&is_valid=true", settings.marketplace_url);
            Client c = new Client(settings.location, settings.key);
            var bankaccounts = c.get(string.Format("{0}", bank_accounts_uri), "");
            retVal = JsonConvert.DeserializeObject<List<BankAccount>>(bankaccounts["items"].ToString());
            retVal.ForEach(x => x.AttachSettings(settings));
            return retVal;
        }
Ejemplo n.º 4
0
        public static List<Account> Accounts(Settings settings)
        {
            var retVal = new List<Account>();

            var accounts_uri = string.Format("{0}/accounts", settings.marketplace_url);
            Client c = new Client(settings.location, settings.key);
            var accounts = c.get(string.Format("{0}", accounts_uri), "");
            retVal = JsonConvert.DeserializeObject<List<Account>>(accounts["items"].ToString());
            retVal.ForEach(x => x.AttachSettings(settings));
            return retVal;
        }