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

jp.gopay.sdk.settings.GoPaySettings Maven / Gradle / Ivy

There is a newer version: 0.11.17
Show newest version
package jp.gopay.sdk.settings;

import jp.gopay.sdk.models.common.auth.AuthStrategy;
import jp.gopay.sdk.utils.GoPayClient;
import okhttp3.ConnectionPool;
import okhttp3.OkHttpClient;

public class GoPaySettings extends AbstractSDKSettings {

    @Override
    public GoPaySettings copy() {
        return new GoPaySettings()
                .withEndpoint(this.endpoint)
                .withTimeoutSeconds(this.timeout)
                .attachOrigin(this.origin);
    }

    @Override
    public OkHttpClient getClient(AuthStrategy authStrategy){
        return GoPayClient
                .getDefaultClientBuilder(authStrategy, this)
                .build();
    }

    @Override
    public OkHttpClient getClient(AuthStrategy authStrategy, ConnectionPool connectionPool) {
        return GoPayClient
                .getDefaultClientBuilder(authStrategy, this)
                .connectionPool(connectionPool)
                .build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy