
Model.GetSubscriptionResponse1PaymentInstrumentCard 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;
/**
* The masked number (PAN), expirationMonth, expirationYear and type of the card used during transaction.
*/
@ApiModel(description = "The masked number (PAN), expirationMonth, expirationYear and type of the card used during transaction. ")
public class GetSubscriptionResponse1PaymentInstrumentCard {
@SerializedName("number")
private String number = null;
@SerializedName("expirationMonth")
private String expirationMonth = null;
@SerializedName("expirationYear")
private String expirationYear = null;
@SerializedName("type")
private String type = null;
public GetSubscriptionResponse1PaymentInstrumentCard number(String number) {
this.number = number;
return this;
}
/**
* The masked customer's payment card number, also known as the Primary Account Number (PAN).
* @return number
**/
@ApiModelProperty(value = "The masked customer's payment card number, also known as the Primary Account Number (PAN). ")
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
public GetSubscriptionResponse1PaymentInstrumentCard expirationMonth(String expirationMonth) {
this.expirationMonth = expirationMonth;
return this;
}
/**
* Two-digit month in which the payment card expires. Format: `MM`. Possible Values: `01` through `12`.
* @return expirationMonth
**/
@ApiModelProperty(value = "Two-digit month in which the payment card expires. Format: `MM`. Possible Values: `01` through `12`. ")
public String getExpirationMonth() {
return expirationMonth;
}
public void setExpirationMonth(String expirationMonth) {
this.expirationMonth = expirationMonth;
}
public GetSubscriptionResponse1PaymentInstrumentCard expirationYear(String expirationYear) {
this.expirationYear = expirationYear;
return this;
}
/**
* Four-digit year in which the credit card expires. Format: `YYYY`.
* @return expirationYear
**/
@ApiModelProperty(value = "Four-digit year in which the credit card expires. Format: `YYYY`. ")
public String getExpirationYear() {
return expirationYear;
}
public void setExpirationYear(String expirationYear) {
this.expirationYear = expirationYear;
}
public GetSubscriptionResponse1PaymentInstrumentCard type(String type) {
this.type = type;
return this;
}
/**
* Value that indicates the card type. Possible Values v2 : v1: * 001 : visa * 002 : mastercard - Eurocard—European regional brand of Mastercard * 003 : american express * 004 : discover * 005 : diners club * 006 : carte blanche * 007 : jcb * 008 : optima * 011 : twinpay credit * 012 : twinpay debit * 013 : walmart * 014 : enRoute * 015 : lowes consumer * 016 : home depot consumer * 017 : mbna * 018 : dicks sportswear * 019 : casual corner * 020 : sears * 021 : jal * 023 : disney * 024 : maestro uk domestic * 025 : sams club consumer * 026 : sams club business * 028 : bill me later * 029 : bebe * 030 : restoration hardware * 031 : delta online — use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types. * 032 : solo * 033 : visa electron * 034 : dankort * 035 : laser * 036 : carte bleue — formerly Cartes Bancaires * 037 : carta si * 038 : pinless debit * 039 : encoded account * 040 : uatp * 041 : household * 042 : maestro international * 043 : ge money uk * 044 : korean cards * 045 : style * 046 : jcrew * 047 : payease china processing ewallet * 048 : payease china processing bank transfer * 049 : meijer private label * 050 : hipercard — supported only by the Comercio Latino processor. * 051 : aura — supported only by the Comercio Latino processor. * 052 : redecard * 054 : elo — supported only by the Comercio Latino processor. * 055 : capital one private label * 056 : synchrony private label * 057 : costco private label * 060 : mada * 062 : china union pay * 063 : falabella private label
* @return type
**/
@ApiModelProperty(value = "Value that indicates the card type. Possible Values v2 : v1: * 001 : visa * 002 : mastercard - Eurocard—European regional brand of Mastercard * 003 : american express * 004 : discover * 005 : diners club * 006 : carte blanche * 007 : jcb * 008 : optima * 011 : twinpay credit * 012 : twinpay debit * 013 : walmart * 014 : enRoute * 015 : lowes consumer * 016 : home depot consumer * 017 : mbna * 018 : dicks sportswear * 019 : casual corner * 020 : sears * 021 : jal * 023 : disney * 024 : maestro uk domestic * 025 : sams club consumer * 026 : sams club business * 028 : bill me later * 029 : bebe * 030 : restoration hardware * 031 : delta online — use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types. * 032 : solo * 033 : visa electron * 034 : dankort * 035 : laser * 036 : carte bleue — formerly Cartes Bancaires * 037 : carta si * 038 : pinless debit * 039 : encoded account * 040 : uatp * 041 : household * 042 : maestro international * 043 : ge money uk * 044 : korean cards * 045 : style * 046 : jcrew * 047 : payease china processing ewallet * 048 : payease china processing bank transfer * 049 : meijer private label * 050 : hipercard — supported only by the Comercio Latino processor. * 051 : aura — supported only by the Comercio Latino processor. * 052 : redecard * 054 : elo — supported only by the Comercio Latino processor. * 055 : capital one private label * 056 : synchrony private label * 057 : costco private label * 060 : mada * 062 : china union pay * 063 : falabella private label ")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetSubscriptionResponse1PaymentInstrumentCard getSubscriptionResponse1PaymentInstrumentCard = (GetSubscriptionResponse1PaymentInstrumentCard) o;
return Objects.equals(this.number, getSubscriptionResponse1PaymentInstrumentCard.number) &&
Objects.equals(this.expirationMonth, getSubscriptionResponse1PaymentInstrumentCard.expirationMonth) &&
Objects.equals(this.expirationYear, getSubscriptionResponse1PaymentInstrumentCard.expirationYear) &&
Objects.equals(this.type, getSubscriptionResponse1PaymentInstrumentCard.type);
}
@Override
public int hashCode() {
return Objects.hash(number, expirationMonth, expirationYear, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetSubscriptionResponse1PaymentInstrumentCard {\n");
if (number != null) sb.append(" number: ").append(toIndentedString(number)).append("\n");
if (expirationMonth != null) sb.append(" expirationMonth: ").append(toIndentedString(expirationMonth)).append("\n");
if (expirationYear != null) sb.append(" expirationYear: ").append(toIndentedString(expirationYear)).append("\n");
if (type != null) sb.append(" type: ").append(toIndentedString(type)).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