Exemple #1
0
 private void Do_Asda_transaction_matching(
     IReconciliator <CredCard2Record, CredCard2InOutRecord> reconciliator,
     IReconciliationInterface <CredCard2Record, CredCard2InOutRecord> reconciliation_interface)
 {
     SetAsdaStrings();
     Do_transaction_matching(reconciliator, reconciliation_interface);
 }
Exemple #2
0
 public void Do_preliminary_stuff <TThirdPartyType, TOwnedType>(
     IReconciliator <TThirdPartyType, TOwnedType> reconciliator,
     IReconciliationInterface <TThirdPartyType, TOwnedType> reconciliation_interface)
     where TThirdPartyType : ICSVRecord, new()
     where TOwnedType : ICSVRecord, new()
 {
 }
 public void Do_preliminary_stuff <TThirdPartyType, TOwnedType>(
     IReconciliator <TThirdPartyType, TOwnedType> reconciliator,
     IReconciliationInterface <TThirdPartyType, TOwnedType> reconciliation_interface)
     where TThirdPartyType : ICSVRecord, new()
     where TOwnedType : ICSVRecord, new()
 {
     Do_employer_expense_matching(reconciliator, reconciliation_interface);
 }
 public ReconciliationInterface(
     IInputOutput input_output,
     IReconciliator <TThirdPartyType, TOwnedType> reconciliator,
     string third_party_descriptor,
     string owned_file_descriptor,
     IMatcher matcher)
 {
     _input_output          = input_output;
     Reconciliator          = reconciliator;
     Third_party_descriptor = third_party_descriptor;
     Owned_file_descriptor  = owned_file_descriptor;
     Matcher = matcher;
 }
Exemple #5
0
        public void Do_preliminary_stuff <TThirdPartyType, TOwnedType>(
            IReconciliator <TThirdPartyType, TOwnedType> reconciliator,
            IReconciliationInterface <TThirdPartyType, TOwnedType> reconciliation_interface)
            where TThirdPartyType : ICSVRecord, new()
            where TOwnedType : ICSVRecord, new()
        {
            Do_employer_expense_matching(
                reconciliator as IReconciliator <ActualBankRecord, BankRecord>,
                reconciliation_interface as IReconciliationInterface <ActualBankRecord, BankRecord>);

            Ensure_that_ExpectedIn_transactions_will_be_updated_after_reconciliation(
                reconciliator as IReconciliator <ActualBankRecord, BankRecord>);
        }
Exemple #6
0
        public void Do_transaction_matching(
            IReconciliator <CredCard2Record, CredCard2InOutRecord> reconciliator,
            IReconciliationInterface <CredCard2Record, CredCard2InOutRecord> reconciliation_interface)
        {
            Filter_matching_transactions_from_cred_card2(reconciliator);
            Filter_matching_transactions_from_cred_card2_in_out(reconciliator);
            reconciliator.Set_match_finder(Find_matches);
            reconciliator.Set_record_matcher(Match_specified_records);

            reconciliator.Rewind();
            reconciliation_interface.Do_semi_automatic_matching();

            reconciliator.Refresh_files();
            reconciliator.Reset_match_finder();
            reconciliator.Reset_record_matcher();
        }
Exemple #7
0
        private void Do_employer_expense_matching(
            IReconciliator <ActualBankRecord, BankRecord> reconciliator,
            IReconciliationInterface <ActualBankRecord, BankRecord> reconciliation_interface)
        {
            Filter_for_all_expense_transactions_from_actual_bank_in(reconciliator);
            Filter_for_all_wages_rows_and_expense_transactions_from_expected_in(reconciliator);
            reconciliator.Set_match_finder(Find_expense_matches);
            reconciliator.Set_record_matcher(Match_expense_records);

            reconciliation_interface.Do_semi_automatic_matching();

            reconciliator.Refresh_files();
            Remove_expense_rows_that_didnt_get_matched(reconciliator);
            reconciliator.Reset_match_finder();
            reconciliator.Reset_record_matcher();
        }
        private void Do_employer_expense_matching <TThirdPartyType, TOwnedType>(
            IReconciliator <TThirdPartyType, TOwnedType> reconciliator,
            IReconciliationInterface <TThirdPartyType, TOwnedType> reconciliation_interface)
            where TThirdPartyType : ICSVRecord, new()
            where TOwnedType : ICSVRecord, new()
        {
            Filter_for_all_expense_transactions_from_actual_bank_in(reconciliator);
            Filter_for_all_wages_rows_and_expense_transactions_from_expected_in(reconciliator);
            reconciliator.Set_match_finder(Find_expense_matches);
            reconciliator.Set_record_matcher(Match_specified_records);

            reconciliation_interface.Do_semi_automatic_matching();

            reconciliator.Refresh_files();
            reconciliator.Reset_match_finder();
            reconciliator.Reset_record_matcher();
        }
Exemple #9
0
        public void Do_preliminary_stuff <TThirdPartyType, TOwnedType>(
            IReconciliator <TThirdPartyType, TOwnedType> reconciliator,
            IReconciliationInterface <TThirdPartyType, TOwnedType> reconciliation_interface)
            where TThirdPartyType : ICSVRecord, new()
            where TOwnedType : ICSVRecord, new()
        {
            Do_amazon_transaction_matching(
                reconciliator as IReconciliator <CredCard2Record, CredCard2InOutRecord>,
                reconciliation_interface as IReconciliationInterface <CredCard2Record, CredCard2InOutRecord>);

            Do_iTunes_transaction_matching(
                reconciliator as IReconciliator <CredCard2Record, CredCard2InOutRecord>,
                reconciliation_interface as IReconciliationInterface <CredCard2Record, CredCard2InOutRecord>);

            /* Do_Asda_transaction_matching(
             *  reconciliator as IReconciliator<CredCard2Record, CredCard2InOutRecord>,
             * reconciliation_interface as IReconciliationInterface<CredCard2Record, CredCard2InOutRecord>);*/
        }
        public void Debug_preliminary_stuff <TThirdPartyType, TOwnedType>(IReconciliator <TThirdPartyType, TOwnedType> reconciliator)
            where TThirdPartyType : ICSVRecord, new()
            where TOwnedType : ICSVRecord, new()
        {
            List <ConsoleLine> all_expense_transactions_from_actual_bank_in = Get_all_expense_transactions_from_actual_bank_in(reconciliator);

            _input_output.Output_line("***********");
            _input_output.Output_line("All Expense Transactions From ActualBank In:");
            _input_output.Output_all_lines(all_expense_transactions_from_actual_bank_in);

            List <ConsoleLine> all_expense_transactions_from_expected_in = Get_all_wages_rows_and_expense_transactions_from_expected_in(reconciliator);

            _input_output.Output_line("***********");
            _input_output.Output_line("All Expense Transactions From Expected In:");
            _input_output.Output_all_lines(all_expense_transactions_from_expected_in);

            reconciliator.Refresh_files();

            _input_output.Get_input(ReconConsts.EnterAnyKeyToContinue);
        }
 public void Filter_for_all_expense_transactions_from_actual_bank_in <TThirdPartyType, TOwnedType>(IReconciliator <TThirdPartyType, TOwnedType> reconciliator)
     where TThirdPartyType : ICSVRecord, new()
     where TOwnedType : ICSVRecord, new()
 {
     reconciliator.Filter_third_party_file(Is_not_expense_transaction);
 }
Exemple #12
0
 private void Ensure_that_ExpectedIn_transactions_will_be_updated_after_reconciliation(IReconciliator <ActualBankRecord, BankRecord> reconciliator)
 {
     reconciliator.Set_record_matcher(Match_BankIn_records);
 }
Exemple #13
0
 public void Remove_expense_rows_that_didnt_get_matched(IReconciliator <ActualBankRecord, BankRecord> reconciliator)
 {
     reconciliator.Filter_owned_file(Is_unmatched_expense_row);
 }
 public List <ConsoleLine> Get_all_expense_transactions_from_actual_bank_in <TThirdPartyType, TOwnedType>(IReconciliator <TThirdPartyType, TOwnedType> reconciliator)
     where TThirdPartyType : ICSVRecord, new()
     where TOwnedType : ICSVRecord, new()
 {
     Filter_for_all_expense_transactions_from_actual_bank_in(reconciliator);
     return(reconciliator.Third_party_file.Records.Select(x => x.To_console()).ToList());
 }
 public void Filter_for_all_wages_rows_and_expense_transactions_from_expected_in <TThirdPartyType, TOwnedType>(IReconciliator <TThirdPartyType, TOwnedType> reconciliator)
     where TThirdPartyType : ICSVRecord, new()
     where TOwnedType : ICSVRecord, new()
 {
     reconciliator.Filter_owned_file(Is_not_wages_row_or_expense_transaction);
 }
Exemple #16
0
 public void Filter_matching_transactions_from_cred_card2_in_out(IReconciliator <CredCard2Record, CredCard2InOutRecord> reconciliator)
 {
     reconciliator.Filter_owned_file(Is_not_owned_matching_transaction);
 }
Exemple #17
0
 public void Filter_for_all_expense_transactions_from_actual_bank_in(IReconciliator <ActualBankRecord, BankRecord> reconciliator)
 {
     reconciliator.Filter_third_party_file(Is_not_expense_transaction);
 }
Exemple #18
0
 public void Filter_for_all_wages_rows_and_expense_transactions_from_expected_in(IReconciliator <ActualBankRecord, BankRecord> reconciliator)
 {
     reconciliator.Filter_owned_file(Is_not_wages_row_or_expense_transaction);
 }
Exemple #19
0
 public void Filter_matching_transactions_from_cred_card2(IReconciliator <CredCard2Record, CredCard2InOutRecord> reconciliator)
 {
     reconciliator.Filter_third_party_file(Is_not_third_party_matching_transaction);
 }