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

com.univapay.sdk.builders.IdempotentRetrofitRequestBuilder Maven / Gradle / Ivy

There is a newer version: 0.2.35
Show newest version
package com.univapay.sdk.builders;

import com.univapay.sdk.models.common.IdempotencyKey;
import com.univapay.sdk.models.response.UnivapayResponse;
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 - 2025 Weber Informatics LLC | Privacy Policy