com.stripe.net.StripeResponseGetter Maven / Gradle / Ivy
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