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.CustomerType import java.io.Serializable import kotlin.String import org.threeten.bp.LocalDate /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * Customer model */ @JsonIgnoreProperties(ignoreUnknown=true) data class Customer( @JsonProperty("customerType") @get:JsonProperty("customerType") val customerType: CustomerType, @JsonProperty("accountId") @get:JsonProperty("accountId") val accountId: String, @JsonProperty("creationDate") @get:JsonProperty("creationDate") val creationDate: LocalDate, @JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: String, @JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: String, @JsonProperty("emailAddress") @get:JsonProperty("emailAddress") val emailAddress: String ) : Serializable { fun toJsonString(): String = com.hbc.api.fraud.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Customer = com.hbc.api.fraud.v0.models.JacksonObjectMapperFactory.create().readValue( json, Customer::class.java) } }