コード例 #1
0
        public async static Task <ExternalAccount> GetByTagAsync(CancellationToken cancellationToken, int?customerId, string tag = null, Connection connection = null, object userDefinedObjectForLogging = null)
        {
            var ea = new ExternalAccount(customerId, null);

            ea.Tag = tag;
            return(await ea.GetByTagAsync(cancellationToken, connection, userDefinedObjectForLogging));
        }
コード例 #2
0
        public static ExternalAccount GetByTag(int?customerId, string tag = null, Connection connection = null, object userDefinedObjectForLogging = null)
        {
            var ea = new ExternalAccount(customerId, null);

            ea.Tag = tag;
            return(ea.GetByTag(connection, userDefinedObjectForLogging));
        }
コード例 #3
0
        public async static Task <bool> UpdateAsync(CancellationToken cancellationToken, int?customerId, int?externalAccountId, string nickName = null, string tag = null, Connection connection = null, object userDefinedObjectForLogging = null)
        {
            var ea = new ExternalAccount(customerId, externalAccountId);

            ea.NickName = nickName;
            ea.Tag      = tag;
            return(await ea.UpdateAsync(cancellationToken, connection, userDefinedObjectForLogging));
        }
コード例 #4
0
        public static bool Update(int?customerId, int?externalAccountId, string nickName = null, string tag = null, Connection connection = null, object userDefinedObjectForLogging = null)
        {
            var ea = new ExternalAccount(customerId, externalAccountId);

            ea.NickName = nickName;
            ea.Tag      = tag;
            return(ea.Update(connection, userDefinedObjectForLogging));
        }
コード例 #5
0
        public async static Task <int> InitiateAsync(CancellationToken cancellationToken, int?customerId, string name, string firstName, string lastName, string type,
                                                     string routingNumber, string accountNumber, string nickName = null, string tag = null,
                                                     Connection connection = null, object userDefinedObjectForLogging = null)
        {
            var ea = new ExternalAccount(customerId, null);

            ea.Name          = name;
            ea.FirstName     = firstName;
            ea.LastName      = lastName;
            ea.NickName      = nickName;
            ea.Type          = type;
            ea.Tag           = tag;
            ea.AccountNumber = accountNumber;
            ea.RoutingNumber = routingNumber;
            return(await ea.InitiateAsync(cancellationToken, connection, userDefinedObjectForLogging));
        }
コード例 #6
0
        public static int Initiate(int?customerId, string name, string firstName, string lastName, string type,
                                   string routingNumber, string accountNumber, string nickName = null, string tag = null,
                                   Connection connection = null, object userDefinedObjectForLogging = null)
        {
            var ea = new ExternalAccount(customerId, null);

            ea.Name          = name;
            ea.FirstName     = firstName;
            ea.LastName      = lastName;
            ea.NickName      = nickName;
            ea.Type          = type;
            ea.Tag           = tag;
            ea.AccountNumber = accountNumber;
            ea.RoutingNumber = routingNumber;
            return(ea.Initiate(connection, userDefinedObjectForLogging));
        }
コード例 #7
0
        public async static Task <bool> ArchiveAsync(CancellationToken cancellationToken, int?customerId, int?externalAccountId, Connection connection = null, object userDefinedObjectForLogging = null)
        {
            var ea = new ExternalAccount(customerId, externalAccountId);

            return(await ea.ArchiveAsync(cancellationToken, connection, userDefinedObjectForLogging));
        }
コード例 #8
0
        public async static Task <bool> VerifyAsync(CancellationToken cancellationToken, int?customerId, int?externalAccountId, decimal amount1, decimal amount2, Connection connection = null, object userDefinedObjectForLogging = null)
        {
            var ea = new ExternalAccount(customerId, externalAccountId);

            return(await ea.VerifyAsync(cancellationToken, amount1, amount2, connection, userDefinedObjectForLogging));
        }
コード例 #9
0
        public static bool Archive(int?customerId, int?externalAccountId, Connection connection = null, object userDefinedObjectForLogging = null)
        {
            var ea = new ExternalAccount(customerId, externalAccountId);

            return(ea.Archive(connection, userDefinedObjectForLogging));
        }
コード例 #10
0
        public static bool Verify(int?customerId, int?externalAccountId, decimal amount1, decimal amount2, Connection connection = null, object userDefinedObjectForLogging = null)
        {
            var ea = new ExternalAccount(customerId, externalAccountId);

            return(ea.Verify(amount1, amount2, connection, userDefinedObjectForLogging));
        }