This file contains hidden or 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
object Fintech5 { | |
data class ValidationError(val message: String) | |
data class CreatePortfolio(val userId: String, val amount: Double) | |
data class ChangePortfolio(val userId: String, val stock: String, val quantity: Int) | |
interface Validator<T> { | |
fun T.check(): EitherNel<ValidationError, T> | |
} |
OlderNewer