-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new V619_2 edit with dynamic year.
- Loading branch information
Showing
25 changed files
with
71 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
hmda/src/main/scala/hmda/validation/rules/lar/validity/2018/V619_2.scala
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
hmda/src/main/scala/hmda/validation/rules/lar/validity/2019/V619_2.scala
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
hmda/src/main/scala/hmda/validation/rules/lar/validity/2020/V619_2.scala
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
hmda/src/main/scala/hmda/validation/rules/lar/validity/2021/V619_2.scala
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
hmda/src/main/scala/hmda/validation/rules/lar/validity/2022/V619_2.scala
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
hmda/src/main/scala/hmda/validation/rules/lar/validity/2024/V619_2.scala
This file was deleted.
Oops, something went wrong.
15 changes: 9 additions & 6 deletions
15
...tion/rules/lar/validity/2023/V619_2.scala → ...on/rules/lar/validity/common/V619_2.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
package hmda.validation.rules.lar.validity._2023 | ||
|
||
package hmda.validation.rules.lar.validity.common | ||
|
||
import hmda.model.filing.lar.LoanApplicationRegister | ||
import hmda.validation.dsl.PredicateCommon._ | ||
import hmda.validation.dsl.PredicateSyntax._ | ||
import hmda.validation.dsl.ValidationResult | ||
import hmda.validation.rules.EditCheck | ||
|
||
object V619_2 extends EditCheck[LoanApplicationRegister] { | ||
object V619_2 { | ||
def withYear(year: String): EditCheck[LoanApplicationRegister] = | ||
new V619_2(year) | ||
|
||
} | ||
|
||
class V619_2 private (year: String) extends EditCheck[LoanApplicationRegister] { | ||
override def name: String = "V619-2" | ||
|
||
override def parent: String = "V619" | ||
|
||
override def apply(lar: LoanApplicationRegister): ValidationResult = { | ||
val year = "2023" | ||
|
||
lar.action.actionTakenDate.toString.slice(0, 4) is equalTo(year) | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.