Skip to content

Commit 54ff738

Browse files
committed
DisclosureReport trait ensures common methods are included
1 parent 7dc7d11 commit 54ff738

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

publication/src/main/scala/hmda/publication/reports/disclosure/D51.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ case class D51(
1919
respondentId: String,
2020
institutionName: String,
2121
table: String,
22-
reportType: ReportTypeEnum,
2322
description: String,
2423
year: Int,
2524
reportDate: String,
2625
msa: MSAReport,
2726
applicantIncomes: List[ApplicantIncome],
2827
total: List[Disposition]
29-
)
28+
) extends DisclosureReport
3029

3130
object D51 {
3231
def apply(
@@ -45,7 +44,6 @@ object D51 {
4544
respondentId,
4645
institutionName,
4746
"5-1",
48-
Disclosure,
4947
description,
5048
year,
5149
reportDate,
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package hmda.publication.reports.disclosure
2+
3+
import hmda.model.publication.reports.{MSAReport, ReportTypeEnum}
4+
import hmda.model.publication.reports.ReportTypeEnum.Disclosure
5+
6+
trait DisclosureReport {
7+
8+
val respondentId: String
9+
val institutionName: String
10+
val description: String
11+
val table: String
12+
val year: Int
13+
val msa: MSAReport
14+
15+
val reportType: ReportTypeEnum = Disclosure
16+
17+
18+
}

0 commit comments

Comments
 (0)