com.adyen.model.binlookup.ThreeDS2CardRangeDetail Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adyen-java-api-library Show documentation
Show all versions of adyen-java-api-library Show documentation
Adyen API Client Library for Java
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen Java API Library
*
* Copyright (c) 2019 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
package com.adyen.model.binlookup;
import java.util.Objects;
import com.google.gson.annotations.SerializedName;
/**
* ThreeDS2CardRangeDetail
*/
public class ThreeDS2CardRangeDetail {
@SerializedName("brandCode")
private String brandCode = null;
@SerializedName("endRange")
private String endRange = null;
@SerializedName("startRange")
private String startRange = null;
@SerializedName("threeDS2Version")
private String threeDS2Version = null;
@SerializedName("threeDSMethodURL")
private String threeDSMethodURL = null;
public ThreeDS2CardRangeDetail brandCode(String brandCode) {
this.brandCode = brandCode;
return this;
}
/**
* Card brand.
*
* @return brandCode
**/
public String getBrandCode() {
return brandCode;
}
public void setBrandCode(String brandCode) {
this.brandCode = brandCode;
}
public ThreeDS2CardRangeDetail endRange(String endRange) {
this.endRange = endRange;
return this;
}
/**
* BIN end range.
*
* @return endRange
**/
public String getEndRange() {
return endRange;
}
public void setEndRange(String endRange) {
this.endRange = endRange;
}
public ThreeDS2CardRangeDetail startRange(String startRange) {
this.startRange = startRange;
return this;
}
/**
* BIN start range.
*
* @return startRange
**/
public String getStartRange() {
return startRange;
}
public void setStartRange(String startRange) {
this.startRange = startRange;
}
public ThreeDS2CardRangeDetail threeDS2Version(String threeDS2Version) {
this.threeDS2Version = threeDS2Version;
return this;
}
/**
* 3D Secure protocol version.
*
* @return threeDS2Version
**/
public String getThreeDS2Version() {
return threeDS2Version;
}
public void setThreeDS2Version(String threeDS2Version) {
this.threeDS2Version = threeDS2Version;
}
public ThreeDS2CardRangeDetail threeDSMethodURL(String threeDSMethodURL) {
this.threeDSMethodURL = threeDSMethodURL;
return this;
}
/**
* In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to.
*
* @return threeDSMethodURL
**/
public String getThreeDSMethodURL() {
return threeDSMethodURL;
}
public void setThreeDSMethodURL(String threeDSMethodURL) {
this.threeDSMethodURL = threeDSMethodURL;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ThreeDS2CardRangeDetail threeDS2CardRangeDetail = (ThreeDS2CardRangeDetail) o;
return Objects.equals(this.brandCode, threeDS2CardRangeDetail.brandCode)
&& Objects.equals(this.endRange, threeDS2CardRangeDetail.endRange)
&& Objects.equals(this.startRange,
threeDS2CardRangeDetail.startRange)
&& Objects.equals(this.threeDS2Version, threeDS2CardRangeDetail.threeDS2Version)
&& Objects.equals(this.threeDSMethodURL, threeDS2CardRangeDetail.threeDSMethodURL);
}
@Override
public int hashCode() {
return Objects.hash(brandCode, endRange, startRange, threeDS2Version, threeDSMethodURL);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ThreeDS2CardRangeDetail {\n");
sb.append(" brandCode: ").append(toIndentedString(brandCode)).append("\n");
sb.append(" endRange: ").append(toIndentedString(endRange)).append("\n");
sb.append(" startRange: ").append(toIndentedString(startRange)).append("\n");
sb.append(" threeDS2Version: ").append(toIndentedString(threeDS2Version)).append("\n");
sb.append(" threeDSMethodURL: ").append(toIndentedString(threeDSMethodURL)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}