package payp.mard2p.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Long import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Withdraw describes a way a payment is handled. It depends of Payment Resource */ @JsonIgnoreProperties(ignoreUnknown=true) data class Withdraw( @JsonProperty("wdwid") @get:JsonProperty("wdwid") val wdwid: Long, @JsonProperty("paymentid") @get:JsonProperty("paymentid") val paymentid: Long ) : Serializable { fun toJsonString(): String = payp.mard2p.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Withdraw = payp.mard2p.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Withdraw::class.java) } }