Package com.stripe.net
Class StripeResponseStream
java.lang.Object
com.stripe.net.StripeResponseStream
-
Constructor Summary
ConstructorDescriptionStripeResponseStream
(int code, HttpHeaders headers, InputStream body) Initializes a new instance of theStripeResponseStream
class. -
Method Summary
Modifier and TypeMethodDescriptionfinal InputStream
body()
final int
code()
date()
Gets the date of the request, as returned by Stripe.final HttpHeaders
headers()
Gets the idempotency key of the request, as returned by Stripe.Gets the ID of the request, as returned by Stripe.
-
Constructor Details
-
StripeResponseStream
Initializes a new instance of theStripeResponseStream
class.- Parameters:
code
- the HTTP status code of the responseheaders
- the HTTP headers of the responsebody
- streaming body 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
-