com.wallee.sdk.model.TokenizedCardDataCreate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wallee-java-sdk Show documentation
Show all versions of wallee-java-sdk Show documentation
The SDK for simplifying the integration with wallee API.
/**
* wallee SDK
*
* This library allows to interact with the wallee payment service.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.wallee.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.wallee.sdk.model.CardCryptogramCreate;
import com.wallee.sdk.model.RecurringIndicator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.*;
import java.time.OffsetDateTime;
/**
* This model holds the card data in plain.
*/
@ApiModel(description = "This model holds the card data in plain.")
public class TokenizedCardDataCreate {
@JsonProperty("cardHolderName")
protected String cardHolderName = null;
@JsonProperty("cardVerificationCode")
protected String cardVerificationCode = null;
@JsonProperty("cryptogram")
protected CardCryptogramCreate cryptogram = null;
@JsonProperty("expiryDate")
protected String expiryDate = null;
@JsonProperty("primaryAccountNumber")
protected String primaryAccountNumber = null;
@JsonProperty("recurringIndicator")
protected RecurringIndicator recurringIndicator = null;
@JsonProperty("schemeTransactionReference")
protected String schemeTransactionReference = null;
@JsonProperty("tokenRequestorId")
protected String tokenRequestorId = null;
public TokenizedCardDataCreate cardHolderName(String cardHolderName) {
this.cardHolderName = cardHolderName;
return this;
}
/**
* The card holder name is the name printed onto the card. It identifies the person who owns the card.
* @return cardHolderName
**/
@ApiModelProperty(value = "The card holder name is the name printed onto the card. It identifies the person who owns the card.")
public String getCardHolderName() {
return cardHolderName;
}
public void setCardHolderName(String cardHolderName) {
this.cardHolderName = cardHolderName;
}
public TokenizedCardDataCreate cardVerificationCode(String cardVerificationCode) {
this.cardVerificationCode = cardVerificationCode;
return this;
}
/**
* The card verification code (CVC) is a 3 to 4 digit code typically printed on the back of the card. It helps to ensure that the card holder is authorizing the transaction. For card not-present transactions this field is optional.
* @return cardVerificationCode
**/
@ApiModelProperty(value = "The card verification code (CVC) is a 3 to 4 digit code typically printed on the back of the card. It helps to ensure that the card holder is authorizing the transaction. For card not-present transactions this field is optional.")
public String getCardVerificationCode() {
return cardVerificationCode;
}
public void setCardVerificationCode(String cardVerificationCode) {
this.cardVerificationCode = cardVerificationCode;
}
public TokenizedCardDataCreate cryptogram(CardCryptogramCreate cryptogram) {
this.cryptogram = cryptogram;
return this;
}
/**
* The additional authentication value used to secure the tokenized card transactions.
* @return cryptogram
**/
@ApiModelProperty(value = "The additional authentication value used to secure the tokenized card transactions.")
public CardCryptogramCreate getCryptogram() {
return cryptogram;
}
public void setCryptogram(CardCryptogramCreate cryptogram) {
this.cryptogram = cryptogram;
}
public TokenizedCardDataCreate expiryDate(String expiryDate) {
this.expiryDate = expiryDate;
return this;
}
/**
* The card expiry date indicates when the card expires. The format is the format yyyy-mm where yyyy is the year (e.g. 2019) and the mm is the month (e.g. 09).
* @return expiryDate
**/
@ApiModelProperty(value = "The card expiry date indicates when the card expires. The format is the format yyyy-mm where yyyy is the year (e.g. 2019) and the mm is the month (e.g. 09).")
public String getExpiryDate() {
return expiryDate;
}
public void setExpiryDate(String expiryDate) {
this.expiryDate = expiryDate;
}
public TokenizedCardDataCreate primaryAccountNumber(String primaryAccountNumber) {
this.primaryAccountNumber = primaryAccountNumber;
return this;
}
/**
* The primary account number (PAN) identifies the card. The number is numeric and typically printed on the front of the card.
* @return primaryAccountNumber
**/
@ApiModelProperty(required = true, value = "The primary account number (PAN) identifies the card. The number is numeric and typically printed on the front of the card.")
public String getPrimaryAccountNumber() {
return primaryAccountNumber;
}
public void setPrimaryAccountNumber(String primaryAccountNumber) {
this.primaryAccountNumber = primaryAccountNumber;
}
public TokenizedCardDataCreate recurringIndicator(RecurringIndicator recurringIndicator) {
this.recurringIndicator = recurringIndicator;
return this;
}
/**
*
* @return recurringIndicator
**/
@ApiModelProperty(value = "")
public RecurringIndicator getRecurringIndicator() {
return recurringIndicator;
}
public void setRecurringIndicator(RecurringIndicator recurringIndicator) {
this.recurringIndicator = recurringIndicator;
}
public TokenizedCardDataCreate schemeTransactionReference(String schemeTransactionReference) {
this.schemeTransactionReference = schemeTransactionReference;
return this;
}
/**
*
* @return schemeTransactionReference
**/
@ApiModelProperty(value = "")
public String getSchemeTransactionReference() {
return schemeTransactionReference;
}
public void setSchemeTransactionReference(String schemeTransactionReference) {
this.schemeTransactionReference = schemeTransactionReference;
}
public TokenizedCardDataCreate tokenRequestorId(String tokenRequestorId) {
this.tokenRequestorId = tokenRequestorId;
return this;
}
/**
*
* @return tokenRequestorId
**/
@ApiModelProperty(value = "")
public String getTokenRequestorId() {
return tokenRequestorId;
}
public void setTokenRequestorId(String tokenRequestorId) {
this.tokenRequestorId = tokenRequestorId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TokenizedCardDataCreate tokenizedCardDataCreate = (TokenizedCardDataCreate) o;
return Objects.equals(this.cardHolderName, tokenizedCardDataCreate.cardHolderName) &&
Objects.equals(this.cardVerificationCode, tokenizedCardDataCreate.cardVerificationCode) &&
Objects.equals(this.cryptogram, tokenizedCardDataCreate.cryptogram) &&
Objects.equals(this.expiryDate, tokenizedCardDataCreate.expiryDate) &&
Objects.equals(this.primaryAccountNumber, tokenizedCardDataCreate.primaryAccountNumber) &&
Objects.equals(this.recurringIndicator, tokenizedCardDataCreate.recurringIndicator) &&
Objects.equals(this.schemeTransactionReference, tokenizedCardDataCreate.schemeTransactionReference) &&
Objects.equals(this.tokenRequestorId, tokenizedCardDataCreate.tokenRequestorId);
}
@Override
public int hashCode() {
return Objects.hash(cardHolderName, cardVerificationCode, cryptogram, expiryDate, primaryAccountNumber, recurringIndicator, schemeTransactionReference, tokenRequestorId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TokenizedCardDataCreate {\n");
sb.append(" cardHolderName: ").append(toIndentedString(cardHolderName)).append("\n");
sb.append(" cardVerificationCode: ").append(toIndentedString(cardVerificationCode)).append("\n");
sb.append(" cryptogram: ").append(toIndentedString(cryptogram)).append("\n");
sb.append(" expiryDate: ").append(toIndentedString(expiryDate)).append("\n");
sb.append(" primaryAccountNumber: ").append(toIndentedString(primaryAccountNumber)).append("\n");
sb.append(" recurringIndicator: ").append(toIndentedString(recurringIndicator)).append("\n");
sb.append(" schemeTransactionReference: ").append(toIndentedString(schemeTransactionReference)).append("\n");
sb.append(" tokenRequestorId: ").append(toIndentedString(tokenRequestorId)).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 ");
}
}