SubmissionRequirement

@Serializable
data class SubmissionRequirement(val name: String? = null, val purpose: String? = null, val rule: SubmissionRequirementRuleEnum? = null, val count: Int? = null, val min: Int? = null, val max: Int? = null, val from: String? = null, val fromNested: Collection<SubmissionRequirement>? = null)(source)

Data class for DIF Presentation Exchange v1.0.0

Constructors

Link copied to clipboard
constructor(name: String? = null, purpose: String? = null, rule: SubmissionRequirementRuleEnum? = null, count: Int? = null, min: Int? = null, max: Int? = null, from: String? = null, fromNested: Collection<SubmissionRequirement>? = null)

Properties

Link copied to clipboard
@SerialName(value = "count")
val count: Int? = null
Link copied to clipboard
@SerialName(value = "from")
val from: String? = null
Link copied to clipboard
@SerialName(value = "from_nested")
val fromNested: Collection<SubmissionRequirement>? = null
Link copied to clipboard
@SerialName(value = "max")
val max: Int? = null
Link copied to clipboard
@SerialName(value = "min")
val min: Int? = null
Link copied to clipboard
@SerialName(value = "name")
val name: String? = null
Link copied to clipboard
@SerialName(value = "purpose")
val purpose: String? = null
Link copied to clipboard
@SerialName(value = "rule")
val rule: SubmissionRequirementRuleEnum? = null

Functions

Link copied to clipboard
fun evaluate(inputDescriptorGroups: Map<String, String>, selectedInputDescriptorIds: Collection<String>): Boolean

Evaluating submission requirements as per Presentation Exchange 2.0.0 - Submission Requirement Rules.