com.adyen.model.PaymentRequest3d 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) 2017 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;
import java.util.Objects;
import com.google.gson.annotations.SerializedName;
/**
* PaymentRequest3d
*/
public class PaymentRequest3d extends AbstractPaymentRequest {
@SerializedName("md")
private String md = null;
@SerializedName("paResponse")
private String paResponse = null;
public PaymentRequest3d set3DRequestData(String md, String paResponse) {
return this.md(md).paResponse(paResponse);
}
public PaymentRequest3d md(String md) {
this.md = md;
return this;
}
/**
* Get md
*
* @return md
**/
public String getMd() {
return md;
}
public void setMd(String md) {
this.md = md;
}
public PaymentRequest3d paResponse(String paResponse) {
this.paResponse = paResponse;
return this;
}
/**
* Get paResponse
*
* @return paResponse
**/
public String getPaResponse() {
return paResponse;
}
public void setPaResponse(String paResponse) {
this.paResponse = paResponse;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PaymentRequest3d paymentRequest3d = (PaymentRequest3d) o;
return super.equals(paymentRequest3d) &&
Objects.equals(this.md, paymentRequest3d.md) &&
Objects.equals(this.paResponse, paymentRequest3d.paResponse);
}
@Override
public int hashCode() {
return Objects.hash(md, paResponse, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PaymentRequest3d {\n");
sb.append(super.toString());
sb.append(" md: ").append(toIndentedString(md)).append("\n");
sb.append(" paResponse: ").append(toIndentedString(paResponse)).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 ");
}
}