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;
        }
        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<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;
        }
        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;
        }
Esempio n. 5
0
 public Debit(Settings settings)
     : base(settings)
 {
 }
 public BankAccountVerification(Settings settings, Dictionary<string, object> payload)
     : base(settings, payload)
 {
 }
 public BankAccountVerification(Settings settings, string uri)
     : base(settings, uri)
 {
 }
 public BankAccountVerification(Settings settings)
     : base(settings)
 {
 }
Esempio n. 9
0
 public Event(Settings settings)
     : base(settings)
 {
 }
Esempio n. 10
0
 public override void AttachSettings(Settings settings)
 {
     this.Settings = settings;
 }
Esempio n. 11
0
 public Card(Settings settings, Dictionary<string, object> payload)
     : base(settings, payload)
 {
 }
Esempio n. 12
0
 public Hold(Settings settings, String uri)
     : base(settings, uri)
 {
 }
Esempio n. 13
0
 public static Hold get(Settings settings, String uri)
 {
     return new Hold(settings, (new Client(settings)).get(uri, ""));
 }
Esempio n. 14
0
 public Hold(Settings settings)
     : base(settings)
 {
 }
 public Merchant(Settings settings)
     : base(settings)
 {
 }
Esempio n. 16
0
 public Credit(Settings settings)
     : base(settings)
 {
 }
Esempio n. 17
0
 public Event(Settings settings, string uri)
     : base(settings, uri)
 {
 }
Esempio n. 18
0
 public Debit(Settings settings, string uri)
     : base(settings, uri)
 {
 }
Esempio n. 19
0
 public Account(Settings settings, Dictionary<string, object> payload)
     : base(settings, payload)
 {
 }
Esempio n. 20
0
 public Card(Settings settings)
     : base(settings)
 {
 }
Esempio n. 21
0
 public Callback(Settings settings)
     : base(settings)
 {
 }
Esempio n. 22
0
 public Card(Settings settings, string uri)
     : base(settings, uri)
 {
 }
Esempio n. 23
0
 public APIKey(Settings settings)
     : base(settings)
 {
 }
Esempio n. 24
0
 public Account(Settings settings)
     : base(settings)
 {
 }
Esempio n. 25
0
 public Callback(Settings settings, string uri)
     : base(settings, uri)
 {
 }
Esempio n. 26
0
 public Account(Settings settings, string uri)
     : base(settings, uri)
 {
 }
 public Marketplace(Settings settings, string marketplace_url)
     : base(settings, marketplace_url)
 {
 }