File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
decoder/src/main/java/dgca/verifier/app/decoder/cbor Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,20 @@ package dgca.verifier.app.decoder.cbor
2525import dgca.verifier.app.decoder.model.GreenCertificate
2626import dgca.verifier.app.decoder.model.VerificationResult
2727import java.time.ZonedDateTime
28+ import java.util.*
2829
2930data class GreenCertificateData (
3031 val issuingCountry : String? ,
3132 val hcertJson : String ,
3233 val greenCertificate : GreenCertificate ,
3334 val issuedAt : ZonedDateTime ,
3435 val expirationTime : ZonedDateTime
35- )
36+ ) {
37+ fun getNormalizedIssuingCountry (): String =
38+ (if (this .issuingCountry?.isNotBlank() == true ) this .issuingCountry else this .greenCertificate.getIssuingCountry()).toLowerCase(
39+ Locale .ROOT
40+ )
41+ }
3642
3743/* *
3844 * Decodes input as a CBOR structure
You can’t perform that action at this time.
0 commit comments