-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Compliance): query for geo and compliance/screen during onboardi…
…ng (#295) * feat(Compliance): query for geo and compliance/screen during onboarding * bump
- Loading branch information
Showing
13 changed files
with
186 additions
and
11 deletions.
There are no files selected for viewing
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
27 changes: 27 additions & 0 deletions
27
src/commonMain/kotlin/exchange.dydx.abacus/output/Compliance.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,27 @@ | ||
package exchange.dydx.abacus.output | ||
|
||
import kotlinx.serialization.Serializable | ||
import kotlin.js.JsExport | ||
|
||
@JsExport | ||
@Serializable | ||
enum class ComplianceStatus(val rawValue: String?) { | ||
COMPLIANT("COMPLIANT"), | ||
FIRST_STRIKE("FIRST_STRIKE"), | ||
CLOSE_ONLY("CLOSE_ONLY"), | ||
BLOCKED("BLOCKED"), | ||
UNKNOWN("UNKNOWN"), | ||
; | ||
|
||
companion object { | ||
operator fun invoke(rawValue: String?) = | ||
ComplianceStatus.values().firstOrNull { it.rawValue == rawValue } | ||
} | ||
} | ||
|
||
@JsExport | ||
@Serializable | ||
data class Compliance( | ||
val geo: String?, | ||
val status: ComplianceStatus, | ||
) |
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
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.