-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VTA-1576: Generate Welsh Certificate PSV Pass (#92)
* feat(vta-1576): added new models, updated enums and configs * feat(vta-1576): corrected typo * feat(vta-1576): added new tests * feat(vta-1576): corrected formatting
- Loading branch information
Showing
13 changed files
with
852 additions
and
18 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
28 changes: 28 additions & 0 deletions
28
src/main/java/uk/gov/dvsa/model/cvs/CvsPsvPassBilingual.java
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package uk.gov.dvsa.model.cvs; | ||
|
||
public class CvsPsvPassBilingual extends VTP20W { | ||
|
||
public String getTestType() { | ||
return "PSV"; | ||
} | ||
|
||
public String getPresentedDocumentNamePass() { | ||
return "VTP20"; | ||
} | ||
|
||
public String getPresentedDocumentNamePassWelsh() { | ||
return "VTP20W"; | ||
} | ||
|
||
public String getVersionNumberPass() { | ||
return "1.0"; | ||
} | ||
|
||
public String getVersionNumberPassWelsh() { | ||
return "1.0"; | ||
} | ||
|
||
public String getRegOrIdHeading() { | ||
return "Registration number"; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package uk.gov.dvsa.model.cvs; | ||
|
||
import uk.gov.dvsa.model.Document; | ||
import uk.gov.dvsa.model.cvs.certificateData.CvsMotCertificateDataWelsh; | ||
|
||
public class VTP20W extends CvsMotCertificate { | ||
|
||
public Document setData(CvsMotCertificateDataWelsh data) { | ||
this.data = data; | ||
return this; | ||
} | ||
|
||
public String getTestType() { | ||
return "PSV"; | ||
} | ||
|
||
public String getPresentedDocumentNamePass() { | ||
return "VTP20W"; | ||
} | ||
|
||
public String getVersionNumberPass() { | ||
return "1.0"; | ||
} | ||
|
||
public String getRegOrIdHeadingWelsh() { | ||
return "Rhif cofrestru"; | ||
} | ||
} |
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.