diff --git a/src/main/java/uk/gov/dvsa/enums/CertificateTemplates.java b/src/main/java/uk/gov/dvsa/enums/CertificateTemplates.java index 0064dbf8..1a0c7f18 100644 --- a/src/main/java/uk/gov/dvsa/enums/CertificateTemplates.java +++ b/src/main/java/uk/gov/dvsa/enums/CertificateTemplates.java @@ -20,6 +20,7 @@ public enum CertificateTemplates { VT29("MOT/VT29"), VTP20("CommercialVehicles/pass"), + VTP20W("CommercialVehicles/passWelsh"), VTP30("CommercialVehicles/fail"), VTG5("CommercialVehicles/passNoSeatbeltFields"), diff --git a/src/main/java/uk/gov/dvsa/enums/CertificateTypes.java b/src/main/java/uk/gov/dvsa/enums/CertificateTypes.java index b1ef81cc..f3fe9ed3 100644 --- a/src/main/java/uk/gov/dvsa/enums/CertificateTypes.java +++ b/src/main/java/uk/gov/dvsa/enums/CertificateTypes.java @@ -25,6 +25,8 @@ public enum CertificateTypes { CVS_PASS("CVS/VTP20"), + CVS_PASS_WELSH("CVS/VTP20W"), + CVS_PASS_BILINGUAL("CVS/VTP20_BILINGUAL"), CVS_FAIL("CVS/VTP30"), CVS_PSV_PRS("CVS/PSV_PRS"), diff --git a/src/main/java/uk/gov/dvsa/enums/DocumentsConfig.java b/src/main/java/uk/gov/dvsa/enums/DocumentsConfig.java index 85d4e65c..d9a8d732 100644 --- a/src/main/java/uk/gov/dvsa/enums/DocumentsConfig.java +++ b/src/main/java/uk/gov/dvsa/enums/DocumentsConfig.java @@ -46,6 +46,8 @@ public enum DocumentsConfig { new String[]{CertificateTemplates.VTP20.getCertificateTemplateName(), CertificateTemplates.VTP30.getCertificateTemplateName()}), VTP20(CertificateTypes.CVS_PASS.getCertificateType(), uk.gov.dvsa.model.cvs.VTP20.class, new String[]{CertificateTemplates.VTP20.getCertificateTemplateName()}), + VTP20W(CertificateTypes.CVS_PASS_WELSH.getCertificateType(), uk.gov.dvsa.model.cvs.VTP20W.class, + new String[]{CertificateTemplates.VTP20W.getCertificateTemplateName()}), VTP30(CertificateTypes.CVS_FAIL.getCertificateType(), uk.gov.dvsa.model.cvs.VTP30.class, new String[]{CertificateTemplates.VTP30.getCertificateTemplateName()}), @@ -72,6 +74,8 @@ public enum DocumentsConfig { new String[]{CertificateTemplates.RWT_DATA.getCertificateTemplateName()}), CVS_HGV_PRS(CertificateTypes.CVS_HGV_PRS.getCertificateType(), uk.gov.dvsa.model.cvs.CvsHgvPRS.class, new String[]{CertificateTemplates.VTG5.getCertificateTemplateName(), CertificateTemplates.VTG30.getCertificateTemplateName()}), + CVS_PASS_BILINGUAL(CertificateTypes.CVS_PASS_BILINGUAL.getCertificateType(), uk.gov.dvsa.model.cvs.CvsPsvPassBilingual.class, + new String[]{CertificateTemplates.VTP20.getCertificateTemplateName(), CertificateTemplates.VTP20W.getCertificateTemplateName()}), CVS_HGV_PASS_BILINGUAL(CertificateTypes.CVS_HGV_PASS_BILINGUAL.getCertificateType(), uk.gov.dvsa.model.cvs.CvsHgvPassBilingual.class, new String[]{CertificateTemplates.VTG5.getCertificateTemplateName(), CertificateTemplates.VTG5W.getCertificateTemplateName()}), CVS_TRL_PASS_BILINGUAL(CertificateTypes.CVS_TRL_PASS_BILINGUAL.getCertificateType(), uk.gov.dvsa.model.cvs.CvsTrlPassBilingual.class, diff --git a/src/main/java/uk/gov/dvsa/model/cvs/CvsPsvPassBilingual.java b/src/main/java/uk/gov/dvsa/model/cvs/CvsPsvPassBilingual.java new file mode 100644 index 00000000..58aea532 --- /dev/null +++ b/src/main/java/uk/gov/dvsa/model/cvs/CvsPsvPassBilingual.java @@ -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"; + } +} diff --git a/src/main/java/uk/gov/dvsa/model/cvs/VTP20W.java b/src/main/java/uk/gov/dvsa/model/cvs/VTP20W.java new file mode 100644 index 00000000..801e07d0 --- /dev/null +++ b/src/main/java/uk/gov/dvsa/model/cvs/VTP20W.java @@ -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"; + } +} diff --git a/src/main/resources/views/CommercialVehicles/passWelsh.hbs b/src/main/resources/views/CommercialVehicles/passWelsh.hbs index bdebc373..dd6edd56 100644 --- a/src/main/resources/views/CommercialVehicles/passWelsh.hbs +++ b/src/main/resources/views/CommercialVehicles/passWelsh.hbs @@ -33,7 +33,7 @@
@@ -70,7 +70,7 @@ @@ -120,7 +120,7 @@ @@ -167,7 +167,7 @@