io.swagger.client.model.AusResponse Maven / Gradle / Ivy
/*
* Qualpay Platform API
* This document describes the Qualpay Platform API.
*
* OpenAPI spec version: 1.1.9
*
*
* 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 io.swagger.client.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;
/**
* AusResponse
*/
public class AusResponse {
@SerializedName("card_id")
private String cardId = null;
@SerializedName("card_number")
private String cardNumber = null;
@SerializedName("exp_date")
private String expDate = null;
@SerializedName("reason_code")
private String reasonCode = null;
@SerializedName("card_number_new")
private String cardNumberNew = null;
@SerializedName("exp_date_new")
private String expDateNew = null;
public AusResponse cardId(String cardId) {
this.cardId = cardId;
return this;
}
/**
* Alphanumeric card id and can be up to 32 character.
* @return cardId
**/
@ApiModelProperty(example = "1234567890aaa1231234567890aaa123", value = "Alphanumeric card id and can be up to 32 character.")
public String getCardId() {
return cardId;
}
public void setCardId(String cardId) {
this.cardId = cardId;
}
public AusResponse cardNumber(String cardNumber) {
this.cardNumber = cardNumber;
return this;
}
/**
* Full card number.
* @return cardNumber
**/
@ApiModelProperty(example = "4111111111111111", value = "Full card number.")
public String getCardNumber() {
return cardNumber;
}
public void setCardNumber(String cardNumber) {
this.cardNumber = cardNumber;
}
public AusResponse expDate(String expDate) {
this.expDate = expDate;
return this;
}
/**
* Card expiration Date in MMYY format.
* @return expDate
**/
@ApiModelProperty(example = "0415", value = "Card expiration Date in MMYY format.")
public String getExpDate() {
return expDate;
}
public void setExpDate(String expDate) {
this.expDate = expDate;
}
public AusResponse reasonCode(String reasonCode) {
this.reasonCode = reasonCode;
return this;
}
/**
* The type of Response Code. For all types, please refer to <a href=\"/developer/api/reference#account-updater-server-response-code\" target=\"_blank\">Account Updater Server Response Code</a>
* @return reasonCode
**/
@ApiModelProperty(example = "202", value = "The type of Response Code. For all types, please refer to Account Updater Server Response Code")
public String getReasonCode() {
return reasonCode;
}
public void setReasonCode(String reasonCode) {
this.reasonCode = reasonCode;
}
public AusResponse cardNumberNew(String cardNumberNew) {
this.cardNumberNew = cardNumberNew;
return this;
}
/**
* New full card number.
* @return cardNumberNew
**/
@ApiModelProperty(example = "4222222222222222", value = "New full card number.")
public String getCardNumberNew() {
return cardNumberNew;
}
public void setCardNumberNew(String cardNumberNew) {
this.cardNumberNew = cardNumberNew;
}
public AusResponse expDateNew(String expDateNew) {
this.expDateNew = expDateNew;
return this;
}
/**
* New card expiration date in MMYY format.
* @return expDateNew
**/
@ApiModelProperty(example = "0515", value = "New card expiration date in MMYY format.")
public String getExpDateNew() {
return expDateNew;
}
public void setExpDateNew(String expDateNew) {
this.expDateNew = expDateNew;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AusResponse ausResponse = (AusResponse) o;
return Objects.equals(this.cardId, ausResponse.cardId) &&
Objects.equals(this.cardNumber, ausResponse.cardNumber) &&
Objects.equals(this.expDate, ausResponse.expDate) &&
Objects.equals(this.reasonCode, ausResponse.reasonCode) &&
Objects.equals(this.cardNumberNew, ausResponse.cardNumberNew) &&
Objects.equals(this.expDateNew, ausResponse.expDateNew);
}
@Override
public int hashCode() {
return Objects.hash(cardId, cardNumber, expDate, reasonCode, cardNumberNew, expDateNew);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AusResponse {\n");
sb.append(" cardId: ").append(toIndentedString(cardId)).append("\n");
sb.append(" cardNumber: ").append(toIndentedString(cardNumber)).append("\n");
sb.append(" expDate: ").append(toIndentedString(expDate)).append("\n");
sb.append(" reasonCode: ").append(toIndentedString(reasonCode)).append("\n");
sb.append(" cardNumberNew: ").append(toIndentedString(cardNumberNew)).append("\n");
sb.append(" expDateNew: ").append(toIndentedString(expDateNew)).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