Created
February 26, 2020 09:55
-
-
Save annchar/58446c350b8ae7f0e5117efac3b882c7 to your computer and use it in GitHub Desktop.
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
sealed class Payment { | |
data class CreditCard( | |
val name: String, | |
val number: String, | |
val expiredDate: String, | |
val transferAmount: Double | |
) : Payment() | |
data class CashBank( | |
val bankCode: String, | |
val bankName: String, | |
val transferAmount: Double | |
) : Payment() | |
data class Promptpay( | |
val name: String, | |
val citizenId: String, | |
val mobileNumber: String, | |
val transferAmount: Double | |
) : Payment() | |
object NonePayment : Payment() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment