package com.hbc.api.fraud.v0.models; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBDocument; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.Integer; import java.lang.String; import java.math.BigDecimal; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.2 * User agent: apibuilder app.apibuilder.io/hbc/api-fraud/0.0.2/java_aws_lambda_pojo_client * * WARNING: not all features (notably unions) and data types work with the java generator yet. * Java POJO generator is designed to be used with AWS Lambdas. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact daniel.kirby@gilt.com * * A customer's complete credit card information */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) @DynamoDBDocument public class CreditCard { @NotNull protected String nameOnCard; @NotNull protected Address billingAddress; @NotNull protected String cardType; @NotNull protected String cardNumber; @NotNull protected BigDecimal authorizedAmount; @NotNull protected BigDecimal fullAmount; @NotNull protected String expiryDate; @NotNull protected String authCode; @NotNull protected Integer responseCode; protected Integer merchantId; protected String registerNumber; @NotNull protected String transactionNumber; @NotNull protected String avsResponse; public CreditCard(String nameOnCard, Address billingAddress, String cardType, String cardNumber, BigDecimal authorizedAmount, BigDecimal fullAmount, String expiryDate, String authCode, Integer responseCode, Integer merchantId, String registerNumber, String transactionNumber, String avsResponse) { this.nameOnCard = nameOnCard; this.billingAddress = billingAddress; this.cardType = cardType; this.cardNumber = cardNumber; this.authorizedAmount = authorizedAmount; this.fullAmount = fullAmount; this.expiryDate = expiryDate; this.authCode = authCode; this.responseCode = responseCode; this.merchantId = merchantId; this.registerNumber = registerNumber; this.transactionNumber = transactionNumber; this.avsResponse = avsResponse; } public CreditCard() { } @DynamoDBAttribute public String getNameOnCard() { return nameOnCard; } public void setNameOnCard(String nameOnCard) { this.nameOnCard = nameOnCard; } @DynamoDBAttribute public Address getBillingAddress() { return billingAddress; } public void setBillingAddress(Address billingAddress) { this.billingAddress = billingAddress; } @DynamoDBAttribute public String getCardType() { return cardType; } public void setCardType(String cardType) { this.cardType = cardType; } @DynamoDBAttribute public String getCardNumber() { return cardNumber; } public void setCardNumber(String cardNumber) { this.cardNumber = cardNumber; } @DynamoDBAttribute public BigDecimal getAuthorizedAmount() { return authorizedAmount; } public void setAuthorizedAmount(BigDecimal authorizedAmount) { this.authorizedAmount = authorizedAmount; } @DynamoDBAttribute public BigDecimal getFullAmount() { return fullAmount; } public void setFullAmount(BigDecimal fullAmount) { this.fullAmount = fullAmount; } /** * MM-YY that the credit card expires */ @DynamoDBAttribute public String getExpiryDate() { return expiryDate; } public void setExpiryDate(String expiryDate) { this.expiryDate = expiryDate; } /** * CVV code on the back of the card */ @DynamoDBAttribute public String getAuthCode() { return authCode; } public void setAuthCode(String authCode) { this.authCode = authCode; } @DynamoDBAttribute public Integer getResponseCode() { return responseCode; } public void setResponseCode(Integer responseCode) { this.responseCode = responseCode; } @DynamoDBAttribute public Integer getMerchantId() { return merchantId; } public void setMerchantId(Integer merchantId) { this.merchantId = merchantId; } @DynamoDBAttribute public String getRegisterNumber() { return registerNumber; } public void setRegisterNumber(String registerNumber) { this.registerNumber = registerNumber; } @DynamoDBAttribute public String getTransactionNumber() { return transactionNumber; } public void setTransactionNumber(String transactionNumber) { this.transactionNumber = transactionNumber; } /** * Address Verification System response, Codes are available here: https://www.chasepaymentech.com/address_verification_service.html */ @DynamoDBAttribute public String getAvsResponse() { return avsResponse; } public void setAvsResponse(String avsResponse) { this.avsResponse = avsResponse; } }