示例#1
0
        public async Task TestPostWebHookRegistrations_Create()
        {
            var f       = new BlueBank.BlueBankAccounts();
            var webhook = new WebHookRegister();

            List <string> filters = new List <string>();

            filters.Add("*");
            webhook.filters    = filters.ToArray();
            webhook.webHookUri = "http://example.io";
            var r = await f.PostWebHookRegistrations_Create(ocp, auth, webhook);
        }
示例#2
0
        public DataTypes.Transactions.Transactions GetTransactionsByAccountId(string ocp, string auth, string accountid)
        {
            try
            {
                var f = new BlueBankAccounts().GetTransactions(ocp, auth, accountid).Result;

                return(f);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
示例#3
0
        public String GetAccountByAccountIdAsync(string ocp, string auth, string accountid)
        {
            try
            {
                var f = new BlueBankAccounts().GetAccountsByAccountIdAsync(ocp, auth, accountid).Result;

                return(f);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
示例#4
0
        public DataTypes.Payment.PaymentResult[] GetPaymentsForAllCustomers(string ocp, string auth)
        {
            try
            {
                var f = new BlueBankAccounts().GetPaymentsForAllCustomers(ocp, auth).Result;

                return(f);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
示例#5
0
        public DataTypes.Account.Account GetCustomersAccounts(string ocp, string auth, string customerid)
        {
            try
            {
                var f = new BlueBankAccounts().GetCustomersAccounts(ocp, auth, customerid).Result;

                return(f);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
示例#6
0
        public System.Net.Http.HttpResponseMessage PostWebHookRegistrations_Create(string ocp, string auth, DataTypes.WebHooks.WebHookRegister Webhook)
        {
            try
            {
                var f = new BlueBankAccounts().PostWebHookRegistrations_Create(ocp, auth, Webhook).Result;

                return(f);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
示例#7
0
        public DataTypes.WebHooks.WebHookRegister GetWebHookRegistrations_GetByWebhookId(string ocp, string auth, string webhookid)
        {
            try
            {
                var f = new BlueBankAccounts().GetWebHookRegistrations_GetByWebhookId(ocp, auth, webhookid).Result;

                return(f);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
示例#8
0
        public DataTypes.WebHooks.ClassWebHookFilter[] GetWebHookFilters_GetAll(string ocp, string auth)
        {
            try
            {
                var f = new BlueBankAccounts().GetWebHookFilters_GetAll(ocp, auth).Result;

                return(f);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
示例#9
0
        public DataTypes.WebHooks.WebHookRegister[] GetWebHookRegistrations_GetAllForCustomers(string ocp, string auth)
        {
            try
            {
                var f = new BlueBankAccounts().GetWebHookRegistrations_GetAllForCustomers(ocp, auth).Result;

                return(f);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
示例#10
0
        public DataTypes.Customer.Customer GetCustomersAsync(string ocp, string auth)
        {
            try
            {
                var f = new BlueBankAccounts().GetCustomersAsync(ocp, auth).Result;

                return(f);
            }

            catch (Exception ex)
            {
                throw;
            }
        }
示例#11
0
        public async Task TestMethodPostPayment()
        {
            var f = new BlueBank.BlueBankAccounts();

            var payment = new BlueBank.DataTypes.Payment.Payment();

            payment.paymentType   = "XFR";
            payment.fromAccountId = accountid;
            payment.toSortCode    = "839999";

            //839999 10002283
            payment.toAccountNumber  = "10002283";
            payment.paymentReference = "College Fund";
            payment.paymentAmount    = 600.1F;
            payment.paymentCurrency  = "GBP";



            var r = await f.PaymentCreate(ocp, auth, payment);
        }
示例#12
0
        public async System.Threading.Tasks.Task TestMethodGetPaymentByIdAllCustomersAsync()
        {
            var f = new BlueBank.BlueBankAccounts();

            await f.GetPaymentByIdForAllCustomers(ocp, auth, "812d2c17-5f69-49ac-9f15-36616b1a154f");
        }
示例#13
0
        public async System.Threading.Tasks.Task TestMethodGetPaymentsForAllCustomersAsync()
        {
            var f = new BlueBank.BlueBankAccounts();

            await f.GetPaymentsForAllCustomers(ocp, auth);
        }
示例#14
0
        public async System.Threading.Tasks.Task TestMethodGeTransactionsAsync()
        {
            var f = new BlueBank.BlueBankAccounts();

            await f.GetTransactions(ocp, auth, accountid);
        }
示例#15
0
 public async System.Threading.Tasks.Task TestMethodGetAccountsAsync()
 {
     var f = new BlueBank.BlueBankAccounts();
     await f.GetCustomersAccounts(ocp, auth, "a265a9b9-b4ee-4a1c-9ff4-e90724eba1b9");
 }
示例#16
0
 public async Task GetWebHookRegistrations_GetAllForCustomer()
 {
     var f = new BlueBank.BlueBankAccounts();
     var r = await f.GetWebHookRegistrations_GetAllForCustomers(ocp, auth);
 }
示例#17
0
 public async Task TestWebHookFilters_GetAll()
 {
     var f = new BlueBank.BlueBankAccounts();
     var r = await f.GetWebHookFilters_GetAll(ocp, auth);
 }