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.Int import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * A customer's complete credit card information */ @JsonIgnoreProperties(ignoreUnknown=true) data class CreditCard( @JsonProperty("nameOnCard") @get:JsonProperty("nameOnCard") val nameOnCard: String, @JsonProperty("billingAddress") @get:JsonProperty("billingAddress") val billingAddress: Address, @JsonProperty("cardType") @get:JsonProperty("cardType") val cardType: String, @JsonProperty("cardNumber") @get:JsonProperty("cardNumber") val cardNumber: String, @JsonProperty("authorizedAmount") @get:JsonProperty("authorizedAmount") val authorizedAmount: BigDecimal, @JsonProperty("fullAmount") @get:JsonProperty("fullAmount") val fullAmount: BigDecimal, @JsonProperty("expiryDate") @get:JsonProperty("expiryDate") val expiryDate: String, @JsonProperty("authCode") @get:JsonProperty("authCode") val authCode: String, @JsonProperty("responseCode") @get:JsonProperty("responseCode") val responseCode: Int, @JsonProperty("merchantId") @get:JsonProperty("merchantId") val merchantId: Int?, @JsonProperty("registerNumber") @get:JsonProperty("registerNumber") val registerNumber: String?, @JsonProperty("transactionNumber") @get:JsonProperty("transactionNumber") val transactionNumber: String, @JsonProperty("avsResponse") @get:JsonProperty("avsResponse") val avsResponse: String ) : Serializable { fun toJsonString(): String = com.hbc.api.fraud.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): CreditCard = com.hbc.api.fraud.v0.models.JacksonObjectMapperFactory.create().readValue( json, CreditCard::class.java) } }