com.blockchyp.client.dto.CardMetadataResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blockchyp-java Show documentation
Show all versions of blockchyp-java Show documentation
This is the recommended means for Java developers to access the BlockChyp gateway and BlockChyp terminals.
/**
* Copyright 2019-2024 BlockChyp, Inc. All rights reserved. Use of this code is governed
* by a license that can be found in the LICENSE file.
*
* This file was generated automatically by the BlockChyp SDK Generator. Changes to this
* file will be lost every time the code is regenerated.
*/
package com.blockchyp.client.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.Collection;
/**
* The response to a card metadata request.
*/
@SuppressWarnings({"rawtypes", "unchecked"})
public class CardMetadataResponse implements IAbstractAcknowledgement, IPaymentMethodResponse {
private boolean success;
private String error;
private String responseDescription;
private String token;
private String entryMethod;
private String paymentType;
private String network;
private String logo;
private String maskedPan;
private String publicKey;
private boolean ScopeAlert;
private String cardHolder;
private String expMonth;
private String expYear;
private AvsResponse avsResponse;
private ReceiptSuggestions receiptSuggestions;
private Customer customer;
private Collection customers;
private CardMetadata cardMetadata;
/**
* Sets whether or not the request succeeded.
* @param value whether or not the request succeeded.
*/
public void setSuccess(boolean value) {
this.success = value;
}
/**
* Gets whether or not the request succeeded.
* @return whether or not the request succeeded.
*/
@JsonProperty("success")
public boolean isSuccess() {
return this.success;
}
/**
* Sets the error, if an error occurred.
* @param value the error, if an error occurred.
*/
public void setError(String value) {
this.error = value;
}
/**
* Gets the error, if an error occurred.
* @return the error, if an error occurred.
*/
@JsonProperty("error")
public String getError() {
return this.error;
}
/**
* Sets a narrative description of the transaction result.
* @param value a narrative description of the transaction result.
*/
public void setResponseDescription(String value) {
this.responseDescription = value;
}
/**
* Gets a narrative description of the transaction result.
* @return a narrative description of the transaction result.
*/
@JsonProperty("responseDescription")
public String getResponseDescription() {
return this.responseDescription;
}
/**
* Sets the payment token, if the payment was enrolled in the vault.
* @param value the payment token, if the payment was enrolled in the vault.
*/
public void setToken(String value) {
this.token = value;
}
/**
* Gets the payment token, if the payment was enrolled in the vault.
* @return the payment token, if the payment was enrolled in the vault.
*/
@JsonProperty("token")
public String getToken() {
return this.token;
}
/**
* Sets the entry method for the transaction (CHIP, MSR, KEYED, etc).
* @param value the entry method for the transaction (CHIP, MSR, KEYED, etc).
*/
public void setEntryMethod(String value) {
this.entryMethod = value;
}
/**
* Gets the entry method for the transaction (CHIP, MSR, KEYED, etc).
* @return the entry method for the transaction (CHIP, MSR, KEYED, etc).
*/
@JsonProperty("entryMethod")
public String getEntryMethod() {
return this.entryMethod;
}
/**
* Sets the card brand (VISA, MC, AMEX, DEBIT, etc).
* @param value the card brand (VISA, MC, AMEX, DEBIT, etc).
*/
public void setPaymentType(String value) {
this.paymentType = value;
}
/**
* Gets the card brand (VISA, MC, AMEX, DEBIT, etc).
* @return the card brand (VISA, MC, AMEX, DEBIT, etc).
*/
@JsonProperty("paymentType")
public String getPaymentType() {
return this.paymentType;
}
/**
* Sets provides network level detail on how a transaction was routed, especially for
* debit transactions.
* @param value provides network level detail on how a transaction was routed,
* especially for debit transactions.
*/
public void setNetwork(String value) {
this.network = value;
}
/**
* Gets provides network level detail on how a transaction was routed, especially for
* debit transactions.
* @return provides network level detail on how a transaction was routed, especially
* for debit transactions.
*/
@JsonProperty("network")
public String getNetwork() {
return this.network;
}
/**
* Sets identifies the card association based on bin number.
* @param value identifies the card association based on bin number. Used primarily
* used to indicate the major logo on a card, even when debit transactions are routed on
* a different network.
*/
public void setLogo(String value) {
this.logo = value;
}
/**
* Gets identifies the card association based on bin number.
* @return identifies the card association based on bin number. Used primarily used
* to indicate the major logo on a card, even when debit transactions are routed on a
* different network.
*/
@JsonProperty("logo")
public String getLogo() {
return this.logo;
}
/**
* Sets the masked primary account number.
* @param value the masked primary account number.
*/
public void setMaskedPan(String value) {
this.maskedPan = value;
}
/**
* Gets the masked primary account number.
* @return the masked primary account number.
*/
@JsonProperty("maskedPan")
public String getMaskedPan() {
return this.maskedPan;
}
/**
* Sets the BlockChyp public key if the user presented a BlockChyp payment card.
* @param value the BlockChyp public key if the user presented a BlockChyp payment
* card.
*/
public void setPublicKey(String value) {
this.publicKey = value;
}
/**
* Gets the BlockChyp public key if the user presented a BlockChyp payment card.
* @return the BlockChyp public key if the user presented a BlockChyp payment card.
*/
@JsonProperty("publicKey")
public String getPublicKey() {
return this.publicKey;
}
/**
* Sets that the transaction did something that would put the system in PCI scope.
* @param value that the transaction did something that would put the system in PCI
* scope.
*/
public void setScopeAlert(boolean value) {
this.ScopeAlert = value;
}
/**
* Gets that the transaction did something that would put the system in PCI scope.
* @return that the transaction did something that would put the system in PCI scope.
*/
@JsonProperty("ScopeAlert")
public boolean isScopeAlert() {
return this.ScopeAlert;
}
/**
* Sets the cardholder name.
* @param value the cardholder name.
*/
public void setCardHolder(String value) {
this.cardHolder = value;
}
/**
* Gets the cardholder name.
* @return the cardholder name.
*/
@JsonProperty("cardHolder")
public String getCardHolder() {
return this.cardHolder;
}
/**
* Sets the card expiration month in MM format.
* @param value the card expiration month in MM format.
*/
public void setExpMonth(String value) {
this.expMonth = value;
}
/**
* Gets the card expiration month in MM format.
* @return the card expiration month in MM format.
*/
@JsonProperty("expMonth")
public String getExpMonth() {
return this.expMonth;
}
/**
* Sets the card expiration year in YY format.
* @param value the card expiration year in YY format.
*/
public void setExpYear(String value) {
this.expYear = value;
}
/**
* Gets the card expiration year in YY format.
* @return the card expiration year in YY format.
*/
@JsonProperty("expYear")
public String getExpYear() {
return this.expYear;
}
/**
* Sets address verification results if address information was submitted.
* @param value address verification results if address information was submitted.
*/
public void setAvsResponse(AvsResponse value) {
this.avsResponse = value;
}
/**
* Gets address verification results if address information was submitted.
* @return address verification results if address information was submitted.
*/
@JsonProperty("avsResponse")
public AvsResponse getAvsResponse() {
return this.avsResponse;
}
/**
* Sets suggested receipt fields.
* @param value suggested receipt fields.
*/
public void setReceiptSuggestions(ReceiptSuggestions value) {
this.receiptSuggestions = value;
}
/**
* Gets suggested receipt fields.
* @return suggested receipt fields.
*/
@JsonProperty("receiptSuggestions")
public ReceiptSuggestions getReceiptSuggestions() {
return this.receiptSuggestions;
}
/**
* Sets customer data, if any.
* @param value customer data, if any. Preserved for reverse compatibility.
*/
public void setCustomer(Customer value) {
this.customer = value;
}
/**
* Gets customer data, if any.
* @return customer data, if any. Preserved for reverse compatibility.
*/
@JsonProperty("customer")
public Customer getCustomer() {
return this.customer;
}
/**
* Sets customer data, if any.
* @param value customer data, if any.
*/
public void setCustomers(Collection value) {
this.customers = value;
}
/**
* Gets customer data, if any.
* @return customer data, if any.
*/
@JsonProperty("customers")
public Collection getCustomers() {
return this.customers;
}
/**
* Sets details about a payment card derived from its BIN/IIN.
* @param value details about a payment card derived from its BIN/IIN.
*/
public void setCardMetadata(CardMetadata value) {
this.cardMetadata = value;
}
/**
* Gets details about a payment card derived from its BIN/IIN.
* @return details about a payment card derived from its BIN/IIN.
*/
@JsonProperty("cardMetadata")
public CardMetadata getCardMetadata() {
return this.cardMetadata;
}
/**
* Adds a customer data, if any.
* @param value customer data, if any.
*/
public void addCustomer(Customer value) {
if (this.customers == null) {
this.customers = new ArrayList();
}
this.customers.add(value);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy