All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jp.gopay.sdk.utils.builders.QrScanConfigurationBuilder Maven / Gradle / Ivy

There is a newer version: 0.11.17
Show newest version
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);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy