jp.gopay.sdk.utils.builders.QrScanConfigurationBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gopay-java-sdk Show documentation
Show all versions of gopay-java-sdk Show documentation
Official Gyro-n Payments Java SDK
package jp.gopay.sdk.utils.builders;
import jp.gopay.sdk.models.response.store.QrScanConfiguration;
import jp.gopay.sdk.types.Gateway;
import java.util.List;
public class QrScanConfigurationBuilder implements Builder{
private Boolean enabled;
private List forbiddenQrScanGateways;
public Boolean getEnabled() {
return enabled;
}
public List getForbiddenQrScanGateways() {
return forbiddenQrScanGateways;
}
public QrScanConfigurationBuilder withEnabled(Boolean enabled){
this.enabled = true;
return this;
}
public QrScanConfigurationBuilder withForbiddenQrScanGateways(List forbiddenQrScanGateways){
this.forbiddenQrScanGateways = forbiddenQrScanGateways;
return this;
}
@Override
public QrScanConfiguration build(){
return new QrScanConfiguration(enabled, forbiddenQrScanGateways);
}
}