com.mastercard.masterpass.merchant.model.CardExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mastercard-masterpass-merchant Show documentation
Show all versions of mastercard-masterpass-merchant Show documentation
Masterpass Merchant Checkout SDK on MasterCard Developer Zone (https://developer.mastercard.com)
The newest version!
package com.mastercard.masterpass.merchant.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mastercard.masterpass.merchant.model.ExtensionPoint;
import com.mastercard.masterpass.merchant.model.PaymentAcceptanceTypesExtension;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* This class contains different methods related to card verification status.
**/
@Root(name = "CardExtension")
@XmlRootElement (name = "CardExtension")
public class CardExtension {
@SerializedName("CardVerificationStatus")
@Element(name = "CardVerificationStatus", required = false)
private String cardVerificationStatus = null;
@SerializedName("PaymentAcceptanceTypesExtension")
@Element(name = "PaymentAcceptanceTypesExtension", required = false)
private PaymentAcceptanceTypesExtension paymentAcceptanceTypesExtension = null;
@SerializedName("ExtensionPoint")
@Element(name = "ExtensionPoint", required = false)
private ExtensionPoint extensionPoint = null;
/**
* Gets the card verification status.
*
* @return the card verification status.
**/
@XmlElement(name = "CardVerificationStatus")
public String getCardVerificationStatus() {
return cardVerificationStatus;
}
/**
* Sets the card verification status.
*
* @param cardVerificationStatus the card verification status.
*/
public CardExtension cardVerificationStatus(String cardVerificationStatus) {
this.cardVerificationStatus = cardVerificationStatus;
return this;
}
/**
* Gets the payment acceptance types.
*
* @return the payment acceptance types.
**/
@XmlElement(name = "PaymentAcceptanceTypesExtension")
public PaymentAcceptanceTypesExtension getPaymentAcceptanceTypesExtension() {
return paymentAcceptanceTypesExtension;
}
/**
* Sets the payment acceptance types.
*
* @param paymentAcceptanceTypesExtension the payment acceptance types.
*/
public CardExtension paymentAcceptanceTypesExtension(PaymentAcceptanceTypesExtension paymentAcceptanceTypesExtension) {
this.paymentAcceptanceTypesExtension = paymentAcceptanceTypesExtension;
return this;
}
/**
* Gets the ExtensionPoint for future enhancement.
*
* @return the ExtensionPoint for future enhancement.
**/
@XmlElement(name = "ExtensionPoint")
public ExtensionPoint getExtensionPoint() {
return extensionPoint;
}
/**
* Sets the ExtensionPoint for future enhancement.
*
* @param extensionPoint the ExtensionPoint for future enhancement.
*/
public CardExtension extensionPoint(ExtensionPoint extensionPoint) {
this.extensionPoint = extensionPoint;
return this;
}
/**
* Returns true if the arguments are equal to each other and false
* otherwise. Consequently, if both arguments are null, true is returned and
* if exactly one argument is null, false is returned. Otherwise, equality
* is determined by using the equals method of the first argument.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CardExtension cardExtension = (CardExtension) o;
return Objects.equals(cardVerificationStatus, cardExtension.cardVerificationStatus) &&
Objects.equals(paymentAcceptanceTypesExtension, cardExtension.paymentAcceptanceTypesExtension) &&
Objects.equals(extensionPoint, cardExtension.extensionPoint);
}
/**
* Generates a hash code for a sequence of input values.
*/
@Override
public int hashCode() {
return Objects.hash(cardVerificationStatus, paymentAcceptanceTypesExtension, extensionPoint);
}
/**
* Returns the result of calling toString for a non-null argument and "null" for a null argument.
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CardExtension {\n");
sb.append(" cardVerificationStatus: ").append(toIndentedString(cardVerificationStatus)).append("\n");
sb.append(" paymentAcceptanceTypesExtension: ").append(toIndentedString(paymentAcceptanceTypesExtension)).append("\n");
sb.append(" extensionPoint: ").append(toIndentedString(extensionPoint)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}