Skip to content

Commit

Permalink
change eu.europa.ec.eudiw.pid.1 to eu.europa.ec.eudi.pid.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vkanellopoulos committed Jul 2, 2024
1 parent ebaa90d commit 3ee7df4
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ val onIssueEvent = OnIssueEvent { event ->
}

EudiWallet.issueDocumentByDocType(
docType = "eu.europa.ec.eudiw.pid.1",
docType = "eu.europa.ec.eudi.pid.1",
txCode = "<Transaction Code for Pre-authorized flow>", // if transaction code is provided
onEvent = onIssueEvent
)
Expand All @@ -582,7 +582,7 @@ If the `executor` parameter is null, the callback will be executed on the main t
```kotlin
val executor = Executors.newSingleThreadExecutor()
EudiWallet.issueDocumentByDocType(
docType = "eu.europa.ec.eudiw.pid.1",
docType = "eu.europa.ec.eudi.pid.1",
executor = executor
) { event ->
// ...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class CWTProofSignerTest {
.build()


val unsignedDocumentResult = documentManager.createDocument("eu.europa.ec.eudiw.pid.1", false)
val unsignedDocumentResult = documentManager.createDocument("eu.europa.ec.eudi.pid.1", false)
assertTrue(unsignedDocumentResult is CreateDocumentResult.Success)

val unsignedDocument =
Expand Down Expand Up @@ -97,7 +97,7 @@ class CWTProofSignerTest {
.build()


val unsignedDocumentResult = documentManager.createDocument("eu.europa.ec.eudiw.pid.1", false)
val unsignedDocumentResult = documentManager.createDocument("eu.europa.ec.eudi.pid.1", false)
assertTrue(unsignedDocumentResult is CreateDocumentResult.Success)

val unsignedDocument =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class JWSProofSignerTest {
.build()


val createDocumentResult = documentManager.createDocument("eu.europa.ec.eudiw.pid.1", false)
val createDocumentResult = documentManager.createDocument("eu.europa.ec.eudi.pid.1", false)
assertTrue(createDocumentResult is CreateDocumentResult.Success)

val unsignedDocument =
Expand Down Expand Up @@ -106,7 +106,7 @@ class JWSProofSignerTest {
.enableUserAuth(false)
.build()

val createDocumentResult = documentManager.createDocument("eu.europa.ec.eudiw.pid.1", false)
val createDocumentResult = documentManager.createDocument("eu.europa.ec.eudi.pid.1", false)
assertTrue(createDocumentResult is CreateDocumentResult.Success)

val unsignedDocument =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ package eu.europa.ec.eudi.wallet.document
object Constants {

// EU PID
const val EU_PID_DOCTYPE = "eu.europa.ec.eudiw.pid.1"
const val EU_PID_NAMESPACE = "eu.europa.ec.eudiw.pid.1"
const val EU_PID_DOCTYPE = "eu.europa.ec.eudi.pid.1"
const val EU_PID_NAMESPACE = "eu.europa.ec.eudi.pid.1"

// mDL
const val MDL_DOCTYPE = "org.iso.18013.5.1.mDL"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ sealed interface IssueEvent : OpenId4VciResult {
* }
*
* fun issueDocument() {
* EudiWallet.issueDocumentByDocType("eu.europa.ec.eudiw.pid.1", requireContext().mainExecutor) { event ->
* EudiWallet.issueDocumentByDocType("eu.europa.ec.eudi.pid.1", requireContext().mainExecutor) { event ->
* when (event) {
* is IssueEvent.DocumentRequiresUserAuth -> {
* onIssuingResume = result::resume
Expand Down
2 changes: 1 addition & 1 deletion wallet-core/src/test/assets/sample_data.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ open class BaseTest {
}

companion object {
private const val pid = "eu.europa.ec.eudiw.pid.1"
private const val pid = "eu.europa.ec.eudi.pid.1"
private const val mDL = "org.iso.18013.5.1.mDL"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import eu.europa.ec.eudi.wallet.R
/**
* Document Type, e.g. MDL, PID, MICOV, MVR
*
* @property docTypeName the document type name, e.g. eu.europa.ec.eudiw.pid.1
* @property docTypeName the document type name, e.g. eu.europa.ec.eudi.pid.1
* @property userFriendlyName a user friendly name for the document
* @constructor Create empty Doc type
*/
Expand All @@ -32,7 +32,7 @@ enum class DocType(val docTypeName: String, val userFriendlyName: Int) {
*
* @constructor Create empty Pid
*/
PID("eu.europa.ec.eudiw.pid.1", R.string.eu_pid_doctype_name),
PID("eu.europa.ec.eudi.pid.1", R.string.eu_pid_doctype_name),

/**
* MDL Doc Type
Expand Down

0 comments on commit 3ee7df4

Please sign in to comment.