All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Model.InlineResponse2007ResponseRecord 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 Model.InlineResponse2007ResponseRecordAdditionalUpdates;
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;
import java.util.ArrayList;
import java.util.List;

/**
 * InlineResponse2007ResponseRecord
 */

public class InlineResponse2007ResponseRecord {
  @SerializedName("response")
  private String response = null;

  @SerializedName("reason")
  private String reason = null;

  @SerializedName("token")
  private String token = null;

  @SerializedName("instrumentIdentifierId")
  private String instrumentIdentifierId = null;

  @SerializedName("instrumentIdentifierCreated")
  private String instrumentIdentifierCreated = 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;

  @SerializedName("additionalUpdates")
  private List additionalUpdates = null;

  public InlineResponse2007ResponseRecord response(String response) {
    this.response = response;
    return this;
  }

   /**
   * Valid Values:   * NAN   * NED   * ACL   * CCH   * CUR   * NUP   * UNA   * ERR   * DEC 
   * @return response
  **/
  @ApiModelProperty(value = "Valid Values:   * NAN   * NED   * ACL   * CCH   * CUR   * NUP   * UNA   * ERR   * DEC ")
  public String getResponse() {
    return response;
  }

  public void setResponse(String response) {
    this.response = response;
  }

  public InlineResponse2007ResponseRecord reason(String reason) {
    this.reason = reason;
    return this;
  }

   /**
   * Get reason
   * @return reason
  **/
  @ApiModelProperty(example = "800", value = "")
  public String getReason() {
    return reason;
  }

  public void setReason(String reason) {
    this.reason = reason;
  }

  public InlineResponse2007ResponseRecord 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 InlineResponse2007ResponseRecord 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 InlineResponse2007ResponseRecord instrumentIdentifierCreated(String instrumentIdentifierCreated) {
    this.instrumentIdentifierCreated = instrumentIdentifierCreated;
    return this;
  }

   /**
   * Valid Values:   * true   * false 
   * @return instrumentIdentifierCreated
  **/
  @ApiModelProperty(value = "Valid Values:   * true   * false ")
  public String getInstrumentIdentifierCreated() {
    return instrumentIdentifierCreated;
  }

  public void setInstrumentIdentifierCreated(String instrumentIdentifierCreated) {
    this.instrumentIdentifierCreated = instrumentIdentifierCreated;
  }

  public InlineResponse2007ResponseRecord 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 InlineResponse2007ResponseRecord 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 InlineResponse2007ResponseRecord 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 InlineResponse2007ResponseRecord 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;
  }

  public InlineResponse2007ResponseRecord additionalUpdates(List additionalUpdates) {
    this.additionalUpdates = additionalUpdates;
    return this;
  }

  public InlineResponse2007ResponseRecord addAdditionalUpdatesItem(InlineResponse2007ResponseRecordAdditionalUpdates additionalUpdatesItem) {
    if (this.additionalUpdates == null) {
      this.additionalUpdates = new ArrayList();
    }
    this.additionalUpdates.add(additionalUpdatesItem);
    return this;
  }

   /**
   * Get additionalUpdates
   * @return additionalUpdates
  **/
  @ApiModelProperty(value = "")
  public List getAdditionalUpdates() {
    return additionalUpdates;
  }

  public void setAdditionalUpdates(List additionalUpdates) {
    this.additionalUpdates = additionalUpdates;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InlineResponse2007ResponseRecord inlineResponse2007ResponseRecord = (InlineResponse2007ResponseRecord) o;
    return Objects.equals(this.response, inlineResponse2007ResponseRecord.response) &&
        Objects.equals(this.reason, inlineResponse2007ResponseRecord.reason) &&
        Objects.equals(this.token, inlineResponse2007ResponseRecord.token) &&
        Objects.equals(this.instrumentIdentifierId, inlineResponse2007ResponseRecord.instrumentIdentifierId) &&
        Objects.equals(this.instrumentIdentifierCreated, inlineResponse2007ResponseRecord.instrumentIdentifierCreated) &&
        Objects.equals(this.cardNumber, inlineResponse2007ResponseRecord.cardNumber) &&
        Objects.equals(this.cardExpiryMonth, inlineResponse2007ResponseRecord.cardExpiryMonth) &&
        Objects.equals(this.cardExpiryYear, inlineResponse2007ResponseRecord.cardExpiryYear) &&
        Objects.equals(this.cardType, inlineResponse2007ResponseRecord.cardType) &&
        Objects.equals(this.additionalUpdates, inlineResponse2007ResponseRecord.additionalUpdates);
  }

  @Override
  public int hashCode() {
    return Objects.hash(response, reason, token, instrumentIdentifierId, instrumentIdentifierCreated, cardNumber, cardExpiryMonth, cardExpiryYear, cardType, additionalUpdates);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InlineResponse2007ResponseRecord {\n");
    
    sb.append("    response: ").append(toIndentedString(response)).append("\n");
    sb.append("    reason: ").append(toIndentedString(reason)).append("\n");
    sb.append("    token: ").append(toIndentedString(token)).append("\n");
    sb.append("    instrumentIdentifierId: ").append(toIndentedString(instrumentIdentifierId)).append("\n");
    sb.append("    instrumentIdentifierCreated: ").append(toIndentedString(instrumentIdentifierCreated)).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("    additionalUpdates: ").append(toIndentedString(additionalUpdates)).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