com.adyen.model.checkout.PaymentMethodGroup 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) 2018 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;
import com.google.gson.annotations.SerializedName;
import java.util.Objects;
/**
* PaymentMethodGroup
*/
public class PaymentMethodGroup {
@SerializedName("name")
private String name = null;
@SerializedName("paymentMethodData")
private String paymentMethodData = null;
@SerializedName("type")
private String type = null;
public PaymentMethodGroup name(String name) {
this.name = name;
return this;
}
/**
* The name of the group.
*
* @return name
**/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public PaymentMethodGroup paymentMethodData(String paymentMethodData) {
this.paymentMethodData = paymentMethodData;
return this;
}
/**
* Echo data to be used if the payment method is displayed as part of this group.
*
* @return paymentMethodData
**/
public String getPaymentMethodData() {
return paymentMethodData;
}
public void setPaymentMethodData(String paymentMethodData) {
this.paymentMethodData = paymentMethodData;
}
public PaymentMethodGroup type(String type) {
this.type = type;
return this;
}
/**
* The unique code of the group.
*
* @return type
**/
public String getType() {
return type;
}
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;
}
PaymentMethodGroup paymentMethodGroup = (PaymentMethodGroup) o;
return Objects.equals(this.name, paymentMethodGroup.name) &&
Objects.equals(this.paymentMethodData, paymentMethodGroup.paymentMethodData) &&
Objects.equals(this.type, paymentMethodGroup.type);
}
@Override
public int hashCode() {
return Objects.hash(name, paymentMethodData, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PaymentMethodGroup {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" paymentMethodData: ").append(toIndentedString(paymentMethodData)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).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 ");
}
}