package com.github.sullis.email.markup.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import java.math.BigDecimal import kotlin.Boolean import kotlin.String import org.threeten.bp.Instant /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class PriceSpecification( @JsonProperty("eligibleQuantity") @get:JsonProperty("eligibleQuantity") val eligibleQuantity: String, @JsonProperty("eligibleTransactionVolume") @get:JsonProperty("eligibleTransactionVolume") val eligibleTransactionVolume: String, @JsonProperty("maxPrice") @get:JsonProperty("maxPrice") val maxPrice: BigDecimal, @JsonProperty("minPrice") @get:JsonProperty("minPrice") val minPrice: BigDecimal, @JsonProperty("price") @get:JsonProperty("price") val price: BigDecimal, @JsonProperty("priceCurrency") @get:JsonProperty("priceCurrency") val priceCurrency: String, @JsonProperty("validFrom") @get:JsonProperty("validFrom") val validFrom: Instant, @JsonProperty("validThrough") @get:JsonProperty("validThrough") val validThrough: Instant, @JsonProperty("valueAddedTaxIncluded") @get:JsonProperty("valueAddedTaxIncluded") val valueAddedTaxIncluded: Boolean ) : Serializable { fun toJsonString(): String = com.github.sullis.email.markup.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): PriceSpecification = com.github.sullis.email.markup.v0.models.JacksonObjectMapperFactory.create().readValue( json, PriceSpecification::class.java) } }