one.credify.sdk.dto.CredifyApiErrorResponseV1 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
CredifySDK for third parties who want to integrate with Credify ecosystem
package one.credify.sdk.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;
import lombok.experimental.FieldDefaults;
import java.util.List;
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@FieldDefaults(level = AccessLevel.PRIVATE)
@JsonIgnoreProperties(ignoreUnknown = true)
public class CredifyApiErrorResponseV1 {
List errors;
public boolean containsErrorCode(String code) {
if (errors == null || errors.size() == 0) {
return false;
}
return errors.stream().anyMatch(item -> item.getCode().equals(code));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy