com.global.api.builders.BaseBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of globalpayments-sdk Show documentation
Show all versions of globalpayments-sdk Show documentation
API for processing payments through Global Payments
package com.global.api.builders;
import com.global.api.builders.validations.Validations;
import com.global.api.entities.exceptions.ApiException;
public abstract class BaseBuilder {
protected Validations validations;
public Validations getValidations() {
return validations;
}
public void setValidations(Validations validations) {
this.validations = validations;
}
public BaseBuilder() {
validations = new Validations();
setupValidations();
}
public TResult execute() throws ApiException {
return execute("default");
}
public TResult execute(String configName) throws ApiException {
validations.validate(this);
return null;
}
public abstract void setupValidations();
}