Skip to content

Commit

Permalink
feat: RequestData metadata needs to be a mutable Map
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Feb 15, 2023
1 parent 49f4d90 commit 461b9e3
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface RequestData {
/**
* Metadata associated with the request
*/
val metadata: Map<String, Any?>
val metadata: MutableMap<String, Any?>
}

/**
Expand All @@ -30,9 +30,11 @@ data class RequestDataToBeVerified(
/**
* Metadata associated with the request
*/
override val metadata: Map<String, Any?>
override val metadata: MutableMap<String, Any?>
): RequestData {
constructor(requestData: InteractionVerificationData) : this(requestData.requestData, requestData.metadata)
constructor(requestData: InteractionVerificationData) : this(
requestData.requestData, requestData.metadata.toMutableMap()
)

fun asInteractionVerificationData() = InteractionVerificationData(requestData, metadata)
}

0 comments on commit 461b9e3

Please sign in to comment.