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 kotlin.collections.List import org.threeten.bp.Instant /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Order( @JsonProperty("billingAddress") @get:JsonProperty("billingAddress") val billingAddress: Address?, @JsonProperty("customer") @get:JsonProperty("customer") val customer: Customer, @JsonProperty("discount") @get:JsonProperty("discount") val discount: BigDecimal?, @JsonProperty("discountCurrency") @get:JsonProperty("discountCurrency") val discountCurrency: String?, @JsonProperty("isGift") @get:JsonProperty("isGift") val isGift: Boolean, @JsonProperty("merchant") @get:JsonProperty("merchant") val merchant: Merchant, @JsonProperty("orderNumber") @get:JsonProperty("orderNumber") val orderNumber: String, @JsonProperty("priceCurrency") @get:JsonProperty("priceCurrency") val priceCurrency: String, @JsonProperty("priceSpecification") @get:JsonProperty("priceSpecification") val priceSpecification: PriceSpecification?, @JsonProperty("price") @get:JsonProperty("price") val price: BigDecimal, @JsonProperty("acceptedOffer") @get:JsonProperty("acceptedOffer") val acceptedOffer: List, @JsonProperty("url") @get:JsonProperty("url") val url: String, @JsonProperty("orderStatus") @get:JsonProperty("orderStatus") val orderStatus: String, @JsonProperty("paymentMethod") @get:JsonProperty("paymentMethod") val paymentMethod: PaymentMethod, @JsonProperty("paymentMethodId") @get:JsonProperty("paymentMethodId") val paymentMethodId: String, @JsonProperty("orderDate") @get:JsonProperty("orderDate") val orderDate: Instant ) : Serializable { fun toJsonString(): String = com.github.sullis.email.markup.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Order = com.github.sullis.email.markup.v0.models.JacksonObjectMapperFactory.create().readValue( json, Order::class.java) } }