jp.gopay.sdk.builders.IdempotentRetrofitRequestBuilder 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.builders;
import jp.gopay.sdk.models.common.IdempotencyKey;
import jp.gopay.sdk.models.response.GoPayResponse;
import retrofit2.Retrofit;
public abstract class IdempotentRetrofitRequestBuilder
extends RetrofitRequestBuilder implements IdempotentRequestBuilder{
protected IdempotencyKey idempotencyKey;
public IdempotentRetrofitRequestBuilder(Retrofit retrofit) {
super(retrofit);
}
@Override
public B withIdempotencyKey(IdempotencyKey idempotencyKey) {
this.idempotencyKey = idempotencyKey;
return (B)this;
}
@Override
public IdempotencyKey getIdempotencyKey() {
return idempotencyKey;
}
}