Package com.stripe.net
Interface StripeResponseGetter
- All Known Implementing Classes:
LiveStripeResponseGetter
public interface StripeResponseGetter
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends StripeObjectInterface>
Trequest
(ApiRequest request, Type typeToken) <T extends StripeObjectInterface>
Trequest
(BaseAddress baseAddress, ApiResource.RequestMethod method, String path, Map<String, Object> params, Type typeToken, RequestOptions options, ApiMode apiMode) Deprecated.default InputStream
requestStream
(ApiRequest request) requestStream
(BaseAddress baseAddress, ApiResource.RequestMethod method, String path, Map<String, Object> params, RequestOptions options, ApiMode apiMode) Deprecated.UserequestStream(ApiRequest)
instead.default void
validateRequestOptions
(RequestOptions options) This method should e.g.
-
Method Details
-
request
@Deprecated <T extends StripeObjectInterface> T request(BaseAddress baseAddress, ApiResource.RequestMethod method, String path, Map<String, Object> params, Type typeToken, RequestOptions options, ApiMode apiMode) throws StripeExceptionDeprecated.Userequest(ApiRequest, Type)
instead.- Throws:
StripeException
-
request
default <T extends StripeObjectInterface> T request(ApiRequest request, Type typeToken) throws StripeException - Throws:
StripeException
-
requestStream
@Deprecated InputStream requestStream(BaseAddress baseAddress, ApiResource.RequestMethod method, String path, Map<String, Object> params, RequestOptions options, ApiMode apiMode) throws StripeExceptionDeprecated.UserequestStream(ApiRequest)
instead.- Throws:
StripeException
-
requestStream
- Throws:
StripeException
-
validateRequestOptions
This method should e.g. throws an ApiKeyMissingError if a proper API Key cannot be determined by the ResponseGetter or from the RequestOptions passed in.
-
request(ApiRequest, Type)
instead.