package com.nashtech.order.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import java.math.BigDecimal import kotlin.String import org.threeten.bp.Instant /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Order( @JsonProperty("id") @get:JsonProperty("id") val id: String, @JsonProperty("number") @get:JsonProperty("number") val number: String, @JsonProperty("merchant_id") @get:JsonProperty("merchant_id") val merchantId: String, @JsonProperty("submitted_at") @get:JsonProperty("submitted_at") val submittedAt: Instant, @JsonProperty("total") @get:JsonProperty("total") val total: BigDecimal ) : Serializable { fun toJsonString(): String = com.nashtech.order.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Order = com.nashtech.order.v0.models.JacksonObjectMapperFactory.create().readValue( json, Order::class.java) } }