dave08
02/04/2018, 5:59 PMenum class PaymentFor { SECURITY_PLAN, SIM }
data class Success(
@Json(name = "name")
val customerName: String,
@Json(name = "tags")
val tags: List<String> = listOf(),
@Json(name = "payment_for")
val paymentFor: PaymentFor
) : PaymentResult() // 200
And I receive SECURITY_PLAN
or SIM
string in the json for payment_for
.. that'll work?