Package com.stripe.net
Class LiveStripeResponseGetter
java.lang.Object
com.stripe.net.LiveStripeResponseGetter
- All Implemented Interfaces:
StripeResponseGetter
-
Constructor Summary
ConstructorDescriptionInitializes a new instance of theLiveStripeResponseGetter
class with default parameters.LiveStripeResponseGetter
(HttpClient httpClient) Initializes a new instance of theLiveStripeResponseGetter
class.LiveStripeResponseGetter
(StripeResponseGetterOptions options, HttpClient httpClient) -
Method Summary
Modifier and TypeMethodDescription<T extends StripeObjectInterface>
Trequest
(ApiRequest apiRequest, Type typeToken) <T extends StripeObjectInterface>
Trequest
(BaseAddress baseAddress, ApiResource.RequestMethod method, String path, Map<String, Object> params, Type typeToken, RequestOptions options, ApiMode apiMode) requestStream
(ApiRequest apiRequest) requestStream
(BaseAddress baseAddress, ApiResource.RequestMethod method, String path, Map<String, Object> params, RequestOptions options, ApiMode apiMode) void
validateRequestOptions
(RequestOptions options) This method should e.g.
-
Constructor Details
-
LiveStripeResponseGetter
public LiveStripeResponseGetter()Initializes a new instance of theLiveStripeResponseGetter
class with default parameters. -
LiveStripeResponseGetter
Initializes a new instance of theLiveStripeResponseGetter
class.- Parameters:
httpClient
- the HTTP client to use
-
LiveStripeResponseGetter
-
-
Method Details
-
request
public <T extends StripeObjectInterface> T request(ApiRequest apiRequest, Type typeToken) throws StripeException - Specified by:
request
in interfaceStripeResponseGetter
- Throws:
StripeException
-
requestStream
- Specified by:
requestStream
in interfaceStripeResponseGetter
- Throws:
StripeException
-
request
public <T extends StripeObjectInterface> T request(BaseAddress baseAddress, ApiResource.RequestMethod method, String path, Map<String, Object> params, Type typeToken, RequestOptions options, ApiMode apiMode) throws StripeException- Specified by:
request
in interfaceStripeResponseGetter
- Throws:
StripeException
-
requestStream
public InputStream requestStream(BaseAddress baseAddress, ApiResource.RequestMethod method, String path, Map<String, Object> params, RequestOptions options, ApiMode apiMode) throws StripeException- Specified by:
requestStream
in interfaceStripeResponseGetter
- Throws:
StripeException
-
validateRequestOptions
Description copied from interface:StripeResponseGetter
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.- Specified by:
validateRequestOptions
in interfaceStripeResponseGetter
-