using CsvHelper.Configuration;
using MyAccounts.Business.AccountOperations.Contracts;

namespace MyAccounts.Business.AccountOperations.Fortis
{
    public sealed class FortisOperationExportCsvMap : ClassMap<FortisOperation>
    {
        public FortisOperationExportCsvMap()
        {
            Map(m => m.Reference).Name("Numro de squence");
            Map(m => m.ExecutionDate).Name("Date d'excution").TypeConverterOption.Format("dd/MM/yyyy");
            Map(m => m.ValueDate).Name("Date valeur").TypeConverterOption.Format("dd/MM/yyyy");
            Map(m => m.Amount).Name("Montant");
            Map(m => m.Currency).Name("Devise du compte");
            Map(m => m.CounterpartyOfTheTransaction).Name("CONTREPARTIE DE LA TRANSACTION");
            Map(m => m.Detail).Name("Dtails");
            Map(m => m.Account).Name("Numro de compte");
            Map(m => m.SourceKind).Default(SourceKind.Unknwon);
        }
    }
}
using CsvHelper.Configuration;
using MyAccounts.Business.AccountOperations.Contracts;

namespace MyAccounts.Business.AccountOperations.Fortis
{
    public sealed class FortisOperationExportCsvMap : ClassMap<FortisOperation>
    {
        public FortisOperationExportCsvMap()
        {
            Map(m => m.Reference).Name("Numro de squence", "N de squence");
            Map(m => m.ExecutionDate).Name("Date d'excution").TypeConverterOption.Format("dd/MM/yyyy");
            Map(m => m.ValueDate).Name("Date valeur").TypeConverterOption.Format("dd/MM/yyyy");
            Map(m => m.Amount).Name("Montant");
            Map(m => m.Currency).Name("Devise du compte");
            Map(m => m.CounterpartyOfTheTransaction).Name("CONTREPARTIE DE LA TRANSACTION");
            Map(m => m.Detail).Name("Dtails");
            Map(m => m.Account).Name("Numro de compte");
            Map(m => m.SourceKind).Default(SourceKind.Unknwon);
        }
    }
}
Add support for new column name in fortis export
Add support for new column name in fortis export
