package com.hbc.api.fraud.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import com.hbc.api.fraud.v0.enums.Banner import java.io.Serializable import java.math.BigDecimal import kotlin.Int import kotlin.String import kotlin.collections.List import org.threeten.bp.LocalDate /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Defines data expected to come in from OMS describing a transaction */ @JsonIgnoreProperties(ignoreUnknown=true) data class Transaction( @JsonProperty("orderId") @get:JsonProperty("orderId") val orderId: String, @JsonProperty("groupId") @get:JsonProperty("groupId") val groupId: String, @JsonProperty("orderTotal") @get:JsonProperty("orderTotal") val orderTotal: BigDecimal, @JsonProperty("shippingCost") @get:JsonProperty("shippingCost") val shippingCost: BigDecimal, @JsonProperty("currencyCode") @get:JsonProperty("currencyCode") val currencyCode: String, @JsonProperty("storeNumber") @get:JsonProperty("storeNumber") val storeNumber: Int, @JsonProperty("salesRep") @get:JsonProperty("salesRep") val salesRep: String?, @JsonProperty("lastModifiedDate") @get:JsonProperty("lastModifiedDate") val lastModifiedDate: LocalDate?, @JsonProperty("banner") @get:JsonProperty("banner") val banner: Banner, @JsonProperty("creditCard") @get:JsonProperty("creditCard") val creditCard: CreditCard, @JsonProperty("promos") @get:JsonProperty("promos") val promos: List?, @JsonProperty("items") @get:JsonProperty("items") val items: List, @JsonProperty("ipAddress") @get:JsonProperty("ipAddress") val ipAddress: String?, @JsonProperty("source") @get:JsonProperty("source") val source: String, @JsonProperty("customer") @get:JsonProperty("customer") val customer: Customer, @JsonProperty("additionalData") @get:JsonProperty("additionalData") val additionalData: AdditionalData? ) : Serializable { fun toJsonString(): String = com.hbc.api.fraud.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Transaction = com.hbc.api.fraud.v0.models.JacksonObjectMapperFactory.create().readValue( json, Transaction::class.java) } }