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

jp.gopay.sdk.builders.IdempotentRetrofitRequestBuilder Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy