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

com.stripe.net.StripeResponseGetter Maven / Gradle / Ivy

There is a newer version: 28.2.0
Show newest version
package com.stripe.net;

import com.stripe.exception.StripeException;
import com.stripe.model.StripeObjectInterface;
import java.io.InputStream;
import java.util.Map;

public interface StripeResponseGetter {
   T request(
      ApiResource.RequestMethod method,
      String url,
      Map params,
      Class clazz,
      RequestOptions options)
      throws StripeException;

   T oauthRequest(
      ApiResource.RequestMethod method,
      String url,
      Map params,
      Class clazz,
      RequestOptions options)
      throws StripeException;

  default InputStream requestStream(
      ApiResource.RequestMethod method,
      String url,
      Map params,
      RequestOptions options)
      throws StripeException {
    throw new UnsupportedOperationException(
        "requestStream is unimplemented for this StripeResponseGetter");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy