Package com.stripe.net
Class RequestOptions
java.lang.Object
com.stripe.net.RequestOptions
- Direct Known Subclasses:
RawRequestOptions
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ModifierConstructorDescriptionprotected
RequestOptions
(String apiKey, String clientId, String idempotencyKey, String stripeAccount, String stripeVersionOverride, String baseUrl, int connectTimeout, int readTimeout, int maxNetworkRetries, Proxy connectionProxy, PasswordAuthentication proxyCredential) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
int
static RequestOptions
int
int
int
hashCode()
protected static String
normalizeApiKey
(String apiKey) protected static String
normalizeBaseUrl
(String baseUrl) protected static String
normalizeClientId
(String clientId) protected static String
normalizeIdempotencyKey
(String idempotencyKey) protected static String
normalizeStripeAccount
(String stripeAccount) protected static String
normalizeStripeVersion
(String stripeVersion) Deprecated.Convert request options to builder, copying all options.static String
-
Constructor Details
-
RequestOptions
-
-
Method Details
-
getDefault
-
getApiKey
-
getClientId
-
getIdempotencyKey
-
getStripeAccount
-
getStripeVersion
-
unsafeGetStripeVersionOverride
-
getReadTimeout
public int getReadTimeout() -
getConnectTimeout
public int getConnectTimeout() -
getMaxNetworkRetries
public int getMaxNetworkRetries() -
getConnectionProxy
-
getProxyCredential
-
getBaseUrl
-
builder
-
toBuilder
Deprecated.prefertoBuilderFullCopy()
which fully copies the request options instead of a subset of its options.Convert request options to builder, retaining invariant values for the integration.- Returns:
- option builder.
-
toBuilderFullCopy
Convert request options to builder, copying all options.- Returns:
- option builder.
-
normalizeApiKey
-
normalizeClientId
-
normalizeStripeVersion
-
normalizeBaseUrl
-
normalizeIdempotencyKey
-
normalizeStripeAccount
-
equals
-
canEqual
-
hashCode
public int hashCode()
-
toBuilderFullCopy()
which fully copies the request options instead of a subset of its options.