package payp.mard2p.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.Double import kotlin.Long import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Transfer is defined by the app specifically to manage users transactions (sending and receiving). */ @JsonIgnoreProperties(ignoreUnknown=true) data class Transfer( @JsonProperty("transferid") @get:JsonProperty("transferid") val transferid: Long, @JsonProperty("senderid") @get:JsonProperty("senderid") val senderid: String, @JsonProperty("amount") @get:JsonProperty("amount") val amount: Double, @JsonProperty("ref_accountid_receiver") @get:JsonProperty("ref_accountid_receiver") val refAccountidReceiver: Long, @JsonProperty("ref_accountid_sender") @get:JsonProperty("ref_accountid_sender") val refAccountidSender: Long, @JsonProperty("currency") @get:JsonProperty("currency") val currency: String ) : Serializable { fun toJsonString(): String = payp.mard2p.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Transfer = payp.mard2p.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, Transfer::class.java) } }