Package com.stripe.net
Class StripeResponse
java.lang.Object
com.stripe.net.StripeResponse
A response from Stripe's API, with body represented as a String.
-
Constructor Summary
ConstructorDescriptionStripeResponse
(int code, HttpHeaders headers, String body) Initializes a new instance of theStripeResponse
class. -
Method Summary
-
Constructor Details
-
StripeResponse
Initializes a new instance of theStripeResponse
class.- Parameters:
code
- the HTTP status code of the responseheaders
- the HTTP headers of the responsebody
- the body of the response- Throws:
NullPointerException
- ifheaders
orbody
isnull
-
-
Method Details
-
code
public final int code() -
headers
-
body
-
date
Gets the date of the request, as returned by Stripe.- Returns:
- the date of the request, as returned by Stripe
-
idempotencyKey
Gets the idempotency key of the request, as returned by Stripe.- Returns:
- the idempotency key of the request, as returned by Stripe
-
requestId
Gets the ID of the request, as returned by Stripe.- Returns:
- the ID of the request, as returned by Stripe
-