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