-
Notifications
You must be signed in to change notification settings - Fork 0
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 #8 from SourcePointUSA/DIA-4478_add_ccpa_support
DIA-4478 add CCPA support
- Loading branch information
Showing
8 changed files
with
90 additions
and
11 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
core/src/commonMain/kotlin/com/sourcepoint/mobile_core/models/consents/CCPAConsent.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,30 @@ | ||
package com.sourcepoint.mobile_core.models.consents | ||
|
||
import com.sourcepoint.mobile_core.utils.StringEnumWithDefaultSerializer | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
import kotlinx.serialization.json.JsonObject | ||
|
||
@Serializable | ||
data class CCPAConsent( | ||
val uuid: String? = null, | ||
val dateCreated: String? = null, | ||
val expirationDate: String? = null, | ||
val signedLspa: Boolean? = null, | ||
var uspstring: String? = null, | ||
val rejectedVendors: List<String>? = emptyList(), | ||
val rejectedCategories: List<String>? = emptyList(), | ||
val status: CCPAConsentStatus = CCPAConsentStatus.Unknown, | ||
@SerialName("GPPData") val gppData: JsonObject = JsonObject(emptyMap()), | ||
) { | ||
@Serializable(with = CCPAConsentStatus.Serializer::class) | ||
enum class CCPAConsentStatus { | ||
@SerialName("consentedAll") ConsentedAll, | ||
@SerialName("rejectedAll") RejectedAll, | ||
@SerialName("rejectedSome") RejectedSome, | ||
@SerialName("rejectedNone") RejectedNone, | ||
@SerialName("linkedNoAction") LinkedNoAction, | ||
Unknown; | ||
object Serializer: StringEnumWithDefaultSerializer<CCPAConsentStatus>(entries, Unknown) | ||
} | ||
} |
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
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
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
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