Skip to content

Commit

Permalink
Fix deleteCustomConsent method
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevazhnovu committed Oct 4, 2024
1 parent 87426cc commit cc90e08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import io.ktor.client.plugins.logging.LogLevel
import io.ktor.client.plugins.logging.Logger
import io.ktor.client.plugins.logging.Logging
import io.ktor.client.plugins.logging.SIMPLE
import io.ktor.client.request.delete
import io.ktor.client.request.get
import io.ktor.client.request.post
import io.ktor.client.request.setBody
Expand Down Expand Up @@ -164,7 +165,7 @@ class SourcepointClient(
setBody(request)}).bodyOr(::reportErrorAndThrow)

override suspend fun deleteCustomConsentGDPR(request: CustomConsentRequest): GDPRConsent =
http.post(URLBuilder(baseWrapperUrl).apply {
http.delete(URLBuilder(baseWrapperUrl).apply {
path("consent", "tcfv2", "consent", "v3", "custom")
appendPathSegments(request.propertyId.toString())
withParams(mapOf("consentUUID" to request.consentUUID))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ data class CustomConsentRequest (
val vendors: List<String> = emptyList(),
val categories: List<String> = emptyList(),
val legIntCategories: List<String> = emptyList()
): DefaultRequest()
)

0 comments on commit cc90e08

Please sign in to comment.