com.adyen.model.checkout.details.LianLianPayDetails 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) 2020 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.checkout.details;
import com.adyen.model.checkout.PaymentMethodDetails;
import com.google.gson.annotations.SerializedName;
import java.util.Objects;
import static com.adyen.util.Util.toIndentedString;
/**
* LianLianPayDetails
*/
public class LianLianPayDetails implements PaymentMethodDetails {
/**
* Possible types
*/
public static final String EBANKING_ENTERPRISE = "lianlianpay_ebanking_enterprise";
public static final String EBANKING_CREDIT = "lianlianpay_ebanking_credit";
public static final String EBANKING_DEBIT = "lianlianpay_ebanking_debit";
@SerializedName("telephoneNumber")
private String telephoneNumber = null;
@SerializedName("type")
private String type = null;
public LianLianPayDetails telephoneNumber(String telephoneNumber) {
this.telephoneNumber = telephoneNumber;
return this;
}
/**
* Get telephoneNumber
*
* @return telephoneNumber
**/
public String getTelephoneNumber() {
return telephoneNumber;
}
public void setTelephoneNumber(String telephoneNumber) {
this.telephoneNumber = telephoneNumber;
}
public LianLianPayDetails type(String type) {
this.type = type;
return this;
}
/**
* Get type
*
* @return type
**/
@Override
public String getType() {
return type;
}
@Override
public void setType(String type) {
this.type = type;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LianLianPayDetails lianLianPayDetails = (LianLianPayDetails) o;
return Objects.equals(this.telephoneNumber, lianLianPayDetails.telephoneNumber) &&
Objects.equals(this.type, lianLianPayDetails.type);
}
@Override
public int hashCode() {
return Objects.hash(telephoneNumber, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LianLianPayDetails {\n");
sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append("}");
return sb.toString();
}
}