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

Model.Ptsv1pushfundstransferRecipientInformationPaymentInformationCard Maven / Gradle / Ivy

There is a newer version: 0.0.8
Show newest version
/*
 * 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.Ptsv1pushfundstransferRecipientInformationPaymentInformationCardCustomer;
import Model.Ptsv1pushfundstransferRecipientInformationPaymentInformationCardInstrumentIdentifier;
import Model.Ptsv1pushfundstransferRecipientInformationPaymentInformationCardPaymentInstrument;
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;

/**
 * Ptsv1pushfundstransferRecipientInformationPaymentInformationCard
 */

public class Ptsv1pushfundstransferRecipientInformationPaymentInformationCard {
  @SerializedName("type")
  private String type = null;

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

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

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

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

  @SerializedName("customer")
  private Ptsv1pushfundstransferRecipientInformationPaymentInformationCardCustomer customer = null;

  @SerializedName("paymentInstrument")
  private Ptsv1pushfundstransferRecipientInformationPaymentInformationCardPaymentInstrument paymentInstrument = null;

  @SerializedName("instrumentIdentifier")
  private Ptsv1pushfundstransferRecipientInformationPaymentInformationCardInstrumentIdentifier instrumentIdentifier = null;

  public Ptsv1pushfundstransferRecipientInformationPaymentInformationCard type(String type) {
    this.type = type;
    return this;
  }

   /**
   * - `001`: Visa - `002`: Mastercard, Eurocard, which is a European regional brand of Mastercard. - `033`: Visa Electron - `024`: Maestro - `042`: Maestro International 
   * @return type
  **/
  @ApiModelProperty(value = "- `001`: Visa - `002`: Mastercard, Eurocard, which is a European regional brand of Mastercard. - `033`: Visa Electron - `024`: Maestro - `042`: Maestro International ")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public Ptsv1pushfundstransferRecipientInformationPaymentInformationCard securityCode(String securityCode) {
    this.securityCode = securityCode;
    return this;
  }

   /**
   * 3-digit value that indicates the cardCvv2Value. Values can be 0-9. 
   * @return securityCode
  **/
  @ApiModelProperty(value = "3-digit value that indicates the cardCvv2Value. Values can be 0-9. ")
  public String getSecurityCode() {
    return securityCode;
  }

  public void setSecurityCode(String securityCode) {
    this.securityCode = securityCode;
  }

  public Ptsv1pushfundstransferRecipientInformationPaymentInformationCard number(String number) {
    this.number = number;
    return this;
  }

   /**
   * The customer's payment card number, also known as the Primary Account Number (PAN).  Conditional: this field is required if not using tokens. 
   * @return number
  **/
  @ApiModelProperty(value = "The customer's payment card number, also known as the Primary Account Number (PAN).  Conditional: this field is required if not using tokens. ")
  public String getNumber() {
    return number;
  }

  public void setNumber(String number) {
    this.number = number;
  }

  public Ptsv1pushfundstransferRecipientInformationPaymentInformationCard expirationMonth(String expirationMonth) {
    this.expirationMonth = expirationMonth;
    return this;
  }

   /**
   * Two-digit month in which the payment card expires.  Format: MM.  Valid values: 01 through 12. Leading 0 is required. 
   * @return expirationMonth
  **/
  @ApiModelProperty(value = "Two-digit month in which the payment card expires.  Format: MM.  Valid values: 01 through 12. Leading 0 is required. ")
  public String getExpirationMonth() {
    return expirationMonth;
  }

  public void setExpirationMonth(String expirationMonth) {
    this.expirationMonth = expirationMonth;
  }

  public Ptsv1pushfundstransferRecipientInformationPaymentInformationCard expirationYear(String expirationYear) {
    this.expirationYear = expirationYear;
    return this;
  }

   /**
   * Four-digit year in which the payment card expires.  Format: YYYY. 
   * @return expirationYear
  **/
  @ApiModelProperty(value = "Four-digit year in which the payment card expires.  Format: YYYY. ")
  public String getExpirationYear() {
    return expirationYear;
  }

  public void setExpirationYear(String expirationYear) {
    this.expirationYear = expirationYear;
  }

  public Ptsv1pushfundstransferRecipientInformationPaymentInformationCard customer(Ptsv1pushfundstransferRecipientInformationPaymentInformationCardCustomer customer) {
    this.customer = customer;
    return this;
  }

   /**
   * Get customer
   * @return customer
  **/
  @ApiModelProperty(value = "")
  public Ptsv1pushfundstransferRecipientInformationPaymentInformationCardCustomer getCustomer() {
    return customer;
  }

  public void setCustomer(Ptsv1pushfundstransferRecipientInformationPaymentInformationCardCustomer customer) {
    this.customer = customer;
  }

  public Ptsv1pushfundstransferRecipientInformationPaymentInformationCard paymentInstrument(Ptsv1pushfundstransferRecipientInformationPaymentInformationCardPaymentInstrument paymentInstrument) {
    this.paymentInstrument = paymentInstrument;
    return this;
  }

   /**
   * Get paymentInstrument
   * @return paymentInstrument
  **/
  @ApiModelProperty(value = "")
  public Ptsv1pushfundstransferRecipientInformationPaymentInformationCardPaymentInstrument getPaymentInstrument() {
    return paymentInstrument;
  }

  public void setPaymentInstrument(Ptsv1pushfundstransferRecipientInformationPaymentInformationCardPaymentInstrument paymentInstrument) {
    this.paymentInstrument = paymentInstrument;
  }

  public Ptsv1pushfundstransferRecipientInformationPaymentInformationCard instrumentIdentifier(Ptsv1pushfundstransferRecipientInformationPaymentInformationCardInstrumentIdentifier instrumentIdentifier) {
    this.instrumentIdentifier = instrumentIdentifier;
    return this;
  }

   /**
   * Get instrumentIdentifier
   * @return instrumentIdentifier
  **/
  @ApiModelProperty(value = "")
  public Ptsv1pushfundstransferRecipientInformationPaymentInformationCardInstrumentIdentifier getInstrumentIdentifier() {
    return instrumentIdentifier;
  }

  public void setInstrumentIdentifier(Ptsv1pushfundstransferRecipientInformationPaymentInformationCardInstrumentIdentifier instrumentIdentifier) {
    this.instrumentIdentifier = instrumentIdentifier;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Ptsv1pushfundstransferRecipientInformationPaymentInformationCard ptsv1pushfundstransferRecipientInformationPaymentInformationCard = (Ptsv1pushfundstransferRecipientInformationPaymentInformationCard) o;
    return Objects.equals(this.type, ptsv1pushfundstransferRecipientInformationPaymentInformationCard.type) &&
        Objects.equals(this.securityCode, ptsv1pushfundstransferRecipientInformationPaymentInformationCard.securityCode) &&
        Objects.equals(this.number, ptsv1pushfundstransferRecipientInformationPaymentInformationCard.number) &&
        Objects.equals(this.expirationMonth, ptsv1pushfundstransferRecipientInformationPaymentInformationCard.expirationMonth) &&
        Objects.equals(this.expirationYear, ptsv1pushfundstransferRecipientInformationPaymentInformationCard.expirationYear) &&
        Objects.equals(this.customer, ptsv1pushfundstransferRecipientInformationPaymentInformationCard.customer) &&
        Objects.equals(this.paymentInstrument, ptsv1pushfundstransferRecipientInformationPaymentInformationCard.paymentInstrument) &&
        Objects.equals(this.instrumentIdentifier, ptsv1pushfundstransferRecipientInformationPaymentInformationCard.instrumentIdentifier);
  }

  @Override
  public int hashCode() {
    return Objects.hash(type, securityCode, number, expirationMonth, expirationYear, customer, paymentInstrument, instrumentIdentifier);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Ptsv1pushfundstransferRecipientInformationPaymentInformationCard {\n");
    
    if (type != null) sb.append("    type: ").append(toIndentedString(type)).append("\n");
    if (securityCode != null) sb.append("    securityCode: ").append(toIndentedString(securityCode)).append("\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 (customer != null) sb.append("    customer: ").append(toIndentedString(customer)).append("\n");
    if (paymentInstrument != null) sb.append("    paymentInstrument: ").append(toIndentedString(paymentInstrument)).append("\n");
    if (instrumentIdentifier != null) sb.append("    instrumentIdentifier: ").append(toIndentedString(instrumentIdentifier)).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