jp.gopay.sdk.settings.GoPaySettings 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.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();
}
}