public static ITry <TaxSummary, IEnumerable <string> > Create(Dto.Archive archive, ArchiveVersion version)
 {
     return(version.Match(
                ArchiveVersion.v100, _ => GetV1TaxSummary(archive),
                ArchiveVersion.v400, _ => GetV4TaxSummary(archive)
                ));
 }
        public static ITry <ReportedValue, IEnumerable <string> > Create(Dto.Archive archive, ArchiveVersion version)
        {
            var reportedValue = version.Match(
                ArchiveVersion.v100, _ => GetReportedValueV1(archive),
                ArchiveVersion.v400, _ => GetReportedValueV4(archive)
                );

            return(reportedValue.Map(value => new ReportedValue(value)));
        }