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

com.docusign.esign.model.CreditCardInformation Maven / Gradle / Ivy

Go to download

The official Docusign eSignature JAVA client is based on version 2.1 of the Docusign REST API and provides libraries for JAVA application integration. It is recommended that you use this version of the library for new development.

The newest version!
package com.docusign.esign.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Objects;

/** This object contains information about a credit card that is associated with an account.. */
@Schema(
    description =
        "This object contains information about a credit card that is associated with an account.")
public class CreditCardInformation implements Serializable {
  private static final long serialVersionUID = 1L;

  @JsonProperty("address")
  private AddressInformation address = null;

  @JsonProperty("cardLastDigits")
  private String cardLastDigits = null;

  @JsonProperty("cardNumber")
  private String cardNumber = null;

  @JsonProperty("cardType")
  private String cardType = null;

  @JsonProperty("cvNumber")
  private String cvNumber = null;

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

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

  @JsonProperty("nameOnCard")
  private String nameOnCard = null;

  @JsonProperty("tokenizedCard")
  private String tokenizedCard = null;

  /**
   * address.
   *
   * @return CreditCardInformation
   */
  public CreditCardInformation address(AddressInformation address) {
    this.address = address;
    return this;
  }

  /**
   * A complex element containing the credit card billing address information..
   *
   * @return address
   */
  @Schema(description = "A complex element containing the credit card billing address information.")
  public AddressInformation getAddress() {
    return address;
  }

  /** setAddress. */
  public void setAddress(AddressInformation address) {
    this.address = address;
  }

  /**
   * cardLastDigits.
   *
   * @return CreditCardInformation
   */
  public CreditCardInformation cardLastDigits(String cardLastDigits) {
    this.cardLastDigits = cardLastDigits;
    return this;
  }

  /**
   * .
   *
   * @return cardLastDigits
   */
  @Schema(description = "")
  public String getCardLastDigits() {
    return cardLastDigits;
  }

  /** setCardLastDigits. */
  public void setCardLastDigits(String cardLastDigits) {
    this.cardLastDigits = cardLastDigits;
  }

  /**
   * cardNumber.
   *
   * @return CreditCardInformation
   */
  public CreditCardInformation cardNumber(String cardNumber) {
    this.cardNumber = cardNumber;
    return this;
  }

  /**
   * The number on the credit card..
   *
   * @return cardNumber
   */
  @Schema(description = "The number on the credit card.")
  public String getCardNumber() {
    return cardNumber;
  }

  /** setCardNumber. */
  public void setCardNumber(String cardNumber) {
    this.cardNumber = cardNumber;
  }

  /**
   * cardType.
   *
   * @return CreditCardInformation
   */
  public CreditCardInformation cardType(String cardType) {
    this.cardType = cardType;
    return this;
  }

  /**
   * The credit card type. Valid values are: visa, mastercard, or amex..
   *
   * @return cardType
   */
  @Schema(description = "The credit card type. Valid values are: visa, mastercard, or amex.")
  public String getCardType() {
    return cardType;
  }

  /** setCardType. */
  public void setCardType(String cardType) {
    this.cardType = cardType;
  }

  /**
   * cvNumber.
   *
   * @return CreditCardInformation
   */
  public CreditCardInformation cvNumber(String cvNumber) {
    this.cvNumber = cvNumber;
    return this;
  }

  /**
   * .
   *
   * @return cvNumber
   */
  @Schema(description = "")
  public String getCvNumber() {
    return cvNumber;
  }

  /** setCvNumber. */
  public void setCvNumber(String cvNumber) {
    this.cvNumber = cvNumber;
  }

  /**
   * expirationMonth.
   *
   * @return CreditCardInformation
   */
  public CreditCardInformation expirationMonth(String expirationMonth) {
    this.expirationMonth = expirationMonth;
    return this;
  }

  /**
   * The month that the credit card expires (1-12)..
   *
   * @return expirationMonth
   */
  @Schema(description = "The month that the credit card expires (1-12).")
  public String getExpirationMonth() {
    return expirationMonth;
  }

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

  /**
   * expirationYear.
   *
   * @return CreditCardInformation
   */
  public CreditCardInformation expirationYear(String expirationYear) {
    this.expirationYear = expirationYear;
    return this;
  }

  /**
   * The year 4 digit year in which the credit card expires..
   *
   * @return expirationYear
   */
  @Schema(description = "The year 4 digit year in which the credit card expires.")
  public String getExpirationYear() {
    return expirationYear;
  }

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

  /**
   * nameOnCard.
   *
   * @return CreditCardInformation
   */
  public CreditCardInformation nameOnCard(String nameOnCard) {
    this.nameOnCard = nameOnCard;
    return this;
  }

  /**
   * The exact name printed on the credit card..
   *
   * @return nameOnCard
   */
  @Schema(description = "The exact name printed on the credit card.")
  public String getNameOnCard() {
    return nameOnCard;
  }

  /** setNameOnCard. */
  public void setNameOnCard(String nameOnCard) {
    this.nameOnCard = nameOnCard;
  }

  /**
   * tokenizedCard.
   *
   * @return CreditCardInformation
   */
  public CreditCardInformation tokenizedCard(String tokenizedCard) {
    this.tokenizedCard = tokenizedCard;
    return this;
  }

  /**
   * .
   *
   * @return tokenizedCard
   */
  @Schema(description = "")
  public String getTokenizedCard() {
    return tokenizedCard;
  }

  /** setTokenizedCard. */
  public void setTokenizedCard(String tokenizedCard) {
    this.tokenizedCard = tokenizedCard;
  }

  /**
   * Compares objects.
   *
   * @return true or false depending on comparison result.
   */
  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CreditCardInformation creditCardInformation = (CreditCardInformation) o;
    return Objects.equals(this.address, creditCardInformation.address)
        && Objects.equals(this.cardLastDigits, creditCardInformation.cardLastDigits)
        && Objects.equals(this.cardNumber, creditCardInformation.cardNumber)
        && Objects.equals(this.cardType, creditCardInformation.cardType)
        && Objects.equals(this.cvNumber, creditCardInformation.cvNumber)
        && Objects.equals(this.expirationMonth, creditCardInformation.expirationMonth)
        && Objects.equals(this.expirationYear, creditCardInformation.expirationYear)
        && Objects.equals(this.nameOnCard, creditCardInformation.nameOnCard)
        && Objects.equals(this.tokenizedCard, creditCardInformation.tokenizedCard);
  }

  /** Returns the HashCode. */
  @Override
  public int hashCode() {
    return Objects.hash(
        address,
        cardLastDigits,
        cardNumber,
        cardType,
        cvNumber,
        expirationMonth,
        expirationYear,
        nameOnCard,
        tokenizedCard);
  }

  /** Converts the given object to string. */
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreditCardInformation {\n");

    sb.append("    address: ").append(toIndentedString(address)).append("\n");
    sb.append("    cardLastDigits: ").append(toIndentedString(cardLastDigits)).append("\n");
    sb.append("    cardNumber: ").append(toIndentedString(cardNumber)).append("\n");
    sb.append("    cardType: ").append(toIndentedString(cardType)).append("\n");
    sb.append("    cvNumber: ").append(toIndentedString(cvNumber)).append("\n");
    sb.append("    expirationMonth: ").append(toIndentedString(expirationMonth)).append("\n");
    sb.append("    expirationYear: ").append(toIndentedString(expirationYear)).append("\n");
    sb.append("    nameOnCard: ").append(toIndentedString(nameOnCard)).append("\n");
    sb.append("    tokenizedCard: ").append(toIndentedString(tokenizedCard)).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 - 2024 Weber Informatics LLC | Privacy Policy