예제 #1
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:DirectDebitModel" /> instances.
        /// </summary>
        /// <param name="memberPeriodId">
        ///     The value which identifies the <see cref="!:DirectDebitModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:DirectDebitModel" /> instances that match the specified <paramref name="memberPeriodId" />.
        /// </returns>
        public static IEnumerable <Consensus.Finance.DirectDebit> FetchAllByMemberPeriodId(System.String memberPeriodId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(DirectDebit.FetchAllByMemberPeriodId(site, memberPeriodId));
        }
예제 #2
0
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(DirectDebit.GetTableName(site));
        }
예제 #3
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:DirectDebitModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:DirectDebitModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:DirectDebitModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Finance.DirectDebit FetchById(System.String id)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(DirectDebit.FetchById(site, id));
        }
예제 #4
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:DirectDebitModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:DirectDebitModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Finance.DirectDebit> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(DirectDebit.FetchAll(site));
        }
예제 #5
0
        /// <summary>
        ///     Creates a new <see cref="!:DirectDebitModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:DirectDebitModel" /> instance.
        /// </returns>
        public static Consensus.Finance.DirectDebit Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(DirectDebit.Create(site));
        }
예제 #6
0
        /// <summary>
        /// Validates account number and sort code. If valid returns bank details
        /// </summary>
        /// <param name="accountNumber">Account number</param>
        /// <param name="sortCode">Sort code</param>
        /// <returns>Returns bank details if account number and sort code is valid else returns error message</returns>
        public static AfdResponse AfdBankFinderAccountNumberValidation(System.String accountNumber, System.String sortCode)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(DirectDebit.AfdBankFinderAccountNumberValidation(site, accountNumber, sortCode));
        }