package com.hbc.api.fraud.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.Int import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Single item */ @JsonIgnoreProperties(ignoreUnknown=true) data class Item( @JsonProperty("svsNumber") @get:JsonProperty("svsNumber") val svsNumber: Int, @JsonProperty("skuNumber") @get:JsonProperty("skuNumber") val skuNumber: Int, @JsonProperty("upcNumber") @get:JsonProperty("upcNumber") val upcNumber: Int?, @JsonProperty("classNumber") @get:JsonProperty("classNumber") val classNumber: Int?, @JsonProperty("color") @get:JsonProperty("color") val color: String?, @JsonProperty("size") @get:JsonProperty("size") val size: String?, @JsonProperty("currentStatus") @get:JsonProperty("currentStatus") val currentStatus: String, @JsonProperty("department") @get:JsonProperty("department") val department: Int, @JsonProperty("signOnDelivery") @get:JsonProperty("signOnDelivery") val signOnDelivery: String?, @JsonProperty("giftWrapped") @get:JsonProperty("giftWrapped") val giftWrapped: Boolean?, @JsonProperty("costAmount") @get:JsonProperty("costAmount") val costAmount: BigDecimal?, @JsonProperty("marginAmount") @get:JsonProperty("marginAmount") val marginAmount: BigDecimal?, @JsonProperty("description") @get:JsonProperty("description") val description: String, @JsonProperty("price") @get:JsonProperty("price") val price: BigDecimal, @JsonProperty("extendedPrice") @get:JsonProperty("extendedPrice") val extendedPrice: BigDecimal, @JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: Int, @JsonProperty("groupNumber") @get:JsonProperty("groupNumber") val groupNumber: Int, @JsonProperty("shippingAddress") @get:JsonProperty("shippingAddress") val shippingAddress: Address, @JsonProperty("shippingMethod") @get:JsonProperty("shippingMethod") val shippingMethod: String, @JsonProperty("shippingCountry") @get:JsonProperty("shippingCountry") val shippingCountry: String ) : Serializable { fun toJsonString(): String = com.hbc.api.fraud.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Item = com.hbc.api.fraud.v0.models.JacksonObjectMapperFactory.create().readValue( json, Item::class.java) } }