-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #144 from niscy-eudiw/main
Issuance pre-auth flow implementation
- Loading branch information
Showing
14 changed files
with
637 additions
and
97 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
common-feature/src/main/java/eu/europa/ec/commonfeature/config/OfferCodeUiConfig.kt
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,43 @@ | ||
/* | ||
* Copyright (c) 2023 European Commission | ||
* | ||
* Licensed under the EUPL, Version 1.2 or - as soon they will be approved by the European | ||
* Commission - subsequent versions of the EUPL (the "Licence"); You may not use this work | ||
* except in compliance with the Licence. | ||
* | ||
* You may obtain a copy of the Licence at: | ||
* https://joinup.ec.europa.eu/software/page/eupl | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under | ||
* the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF | ||
* ANY KIND, either express or implied. See the Licence for the specific language | ||
* governing permissions and limitations under the Licence. | ||
*/ | ||
|
||
package eu.europa.ec.commonfeature.config | ||
|
||
import com.google.gson.Gson | ||
import com.google.gson.GsonBuilder | ||
import eu.europa.ec.uilogic.config.ConfigNavigation | ||
import eu.europa.ec.uilogic.config.NavigationType | ||
import eu.europa.ec.uilogic.serializer.UiSerializable | ||
import eu.europa.ec.uilogic.serializer.UiSerializableParser | ||
import eu.europa.ec.uilogic.serializer.adapter.SerializableTypeAdapter | ||
|
||
data class OfferCodeUiConfig( | ||
val offerURI: String, | ||
val txCodeLength: Int, | ||
val issuerName: String, | ||
val onSuccessNavigation: ConfigNavigation | ||
) : UiSerializable { | ||
|
||
companion object Parser : UiSerializableParser { | ||
override val serializedKeyName = "offerCodeUiConfig" | ||
override fun provideParser(): Gson { | ||
return GsonBuilder().registerTypeAdapter( | ||
NavigationType::class.java, | ||
SerializableTypeAdapter<NavigationType>() | ||
).create() | ||
} | ||
} | ||
} |
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.