com.adyen.model.marketpay.notification.PaymentFailureContent 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.marketpay.notification;
import com.adyen.model.marketpay.ErrorFieldType;
import com.adyen.model.marketpay.ErrorFieldTypeContainer;
import com.adyen.model.marketpay.Message;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
public class PaymentFailureContent {
@SerializedName("errorFields")
@JsonProperty("errorFields")
public List errorFieldTypeContainers;
@SerializedName("errorMessage")
public Message errorMessage;
public List getErrorFieldList() {
List errorFieldTypeList = new ArrayList<>();
if (errorFieldTypeContainers == null) {
return errorFieldTypeList;
}
errorFieldTypeContainers.stream().forEach(s -> errorFieldTypeList.add(s.getErrorFieldType()));
return errorFieldTypeList;
}
public List getErrorFieldTypeContainers() {
return errorFieldTypeContainers;
}
public void setErrorFieldTypeContainers(List errorFieldTypeContainers) {
this.errorFieldTypeContainers = errorFieldTypeContainers;
}
public Message getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(Message errorMessage) {
this.errorMessage = errorMessage;
}
@Override
public String toString() {
return "PaymentFailureContent{" + "errorFieldTypeContainers=" + errorFieldTypeContainers + ", errorMessage=" + errorMessage + '}';
}
}