Model.InlineResponse2007SourceRecord Maven / Gradle / Ivy
/*
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package Model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* InlineResponse2007SourceRecord
*/
public class InlineResponse2007SourceRecord {
@SerializedName("token")
private String token = null;
@SerializedName("customerId")
private String customerId = null;
@SerializedName("paymentInstrumentId")
private String paymentInstrumentId = null;
@SerializedName("instrumentIdentifierId")
private String instrumentIdentifierId = null;
@SerializedName("cardNumber")
private String cardNumber = null;
@SerializedName("cardExpiryMonth")
private String cardExpiryMonth = null;
@SerializedName("cardExpiryYear")
private String cardExpiryYear = null;
@SerializedName("cardType")
private String cardType = null;
public InlineResponse2007SourceRecord token(String token) {
this.token = token;
return this;
}
/**
* Get token
* @return token
**/
@ApiModelProperty(example = "C064DE56200B0DB0E053AF598E0A52AA", value = "")
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public InlineResponse2007SourceRecord customerId(String customerId) {
this.customerId = customerId;
return this;
}
/**
* Get customerId
* @return customerId
**/
@ApiModelProperty(example = "C064DE56200B0DB0E053AF598E0A52AA", value = "")
public String getCustomerId() {
return customerId;
}
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
public InlineResponse2007SourceRecord paymentInstrumentId(String paymentInstrumentId) {
this.paymentInstrumentId = paymentInstrumentId;
return this;
}
/**
* Get paymentInstrumentId
* @return paymentInstrumentId
**/
@ApiModelProperty(example = "C064DD33CBD30901E053AF598E0AC6CC", value = "")
public String getPaymentInstrumentId() {
return paymentInstrumentId;
}
public void setPaymentInstrumentId(String paymentInstrumentId) {
this.paymentInstrumentId = paymentInstrumentId;
}
public InlineResponse2007SourceRecord instrumentIdentifierId(String instrumentIdentifierId) {
this.instrumentIdentifierId = instrumentIdentifierId;
return this;
}
/**
* Get instrumentIdentifierId
* @return instrumentIdentifierId
**/
@ApiModelProperty(example = "7030000000000116236", value = "")
public String getInstrumentIdentifierId() {
return instrumentIdentifierId;
}
public void setInstrumentIdentifierId(String instrumentIdentifierId) {
this.instrumentIdentifierId = instrumentIdentifierId;
}
public InlineResponse2007SourceRecord cardNumber(String cardNumber) {
this.cardNumber = cardNumber;
return this;
}
/**
* Get cardNumber
* @return cardNumber
**/
@ApiModelProperty(example = "511111XXXXXX6814", value = "")
public String getCardNumber() {
return cardNumber;
}
public void setCardNumber(String cardNumber) {
this.cardNumber = cardNumber;
}
public InlineResponse2007SourceRecord cardExpiryMonth(String cardExpiryMonth) {
this.cardExpiryMonth = cardExpiryMonth;
return this;
}
/**
* Get cardExpiryMonth
* @return cardExpiryMonth
**/
@ApiModelProperty(example = "12", value = "")
public String getCardExpiryMonth() {
return cardExpiryMonth;
}
public void setCardExpiryMonth(String cardExpiryMonth) {
this.cardExpiryMonth = cardExpiryMonth;
}
public InlineResponse2007SourceRecord cardExpiryYear(String cardExpiryYear) {
this.cardExpiryYear = cardExpiryYear;
return this;
}
/**
* Get cardExpiryYear
* @return cardExpiryYear
**/
@ApiModelProperty(example = "2018", value = "")
public String getCardExpiryYear() {
return cardExpiryYear;
}
public void setCardExpiryYear(String cardExpiryYear) {
this.cardExpiryYear = cardExpiryYear;
}
public InlineResponse2007SourceRecord cardType(String cardType) {
this.cardType = cardType;
return this;
}
/**
* Get cardType
* @return cardType
**/
@ApiModelProperty(example = "002", value = "")
public String getCardType() {
return cardType;
}
public void setCardType(String cardType) {
this.cardType = cardType;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InlineResponse2007SourceRecord inlineResponse2007SourceRecord = (InlineResponse2007SourceRecord) o;
return Objects.equals(this.token, inlineResponse2007SourceRecord.token) &&
Objects.equals(this.customerId, inlineResponse2007SourceRecord.customerId) &&
Objects.equals(this.paymentInstrumentId, inlineResponse2007SourceRecord.paymentInstrumentId) &&
Objects.equals(this.instrumentIdentifierId, inlineResponse2007SourceRecord.instrumentIdentifierId) &&
Objects.equals(this.cardNumber, inlineResponse2007SourceRecord.cardNumber) &&
Objects.equals(this.cardExpiryMonth, inlineResponse2007SourceRecord.cardExpiryMonth) &&
Objects.equals(this.cardExpiryYear, inlineResponse2007SourceRecord.cardExpiryYear) &&
Objects.equals(this.cardType, inlineResponse2007SourceRecord.cardType);
}
@Override
public int hashCode() {
return Objects.hash(token, customerId, paymentInstrumentId, instrumentIdentifierId, cardNumber, cardExpiryMonth, cardExpiryYear, cardType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InlineResponse2007SourceRecord {\n");
sb.append(" token: ").append(toIndentedString(token)).append("\n");
sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n");
sb.append(" paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n");
sb.append(" instrumentIdentifierId: ").append(toIndentedString(instrumentIdentifierId)).append("\n");
sb.append(" cardNumber: ").append(toIndentedString(cardNumber)).append("\n");
sb.append(" cardExpiryMonth: ").append(toIndentedString(cardExpiryMonth)).append("\n");
sb.append(" cardExpiryYear: ").append(toIndentedString(cardExpiryYear)).append("\n");
sb.append(" cardType: ").append(toIndentedString(cardType)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy