/// <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)); }
public static System.String GetTableName() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(DirectDebit.GetTableName(site)); }
/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }