Package com.stripe.net
Class StripeResponseStream
java.lang.Object
com.stripe.net.StripeResponseStream
-
Constructor Summary
ConstructorsConstructorDescriptionStripeResponseStream(int code, HttpHeaders headers, InputStream body) Initializes a new instance of theStripeResponseStreamclass. -
Method Summary
Modifier and TypeMethodDescriptionfinal InputStreambody()final intcode()date()Gets the date of the request, as returned by Stripe.final HttpHeadersheaders()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 theStripeResponseStreamclass.- Parameters:
code- the HTTP status code of the responseheaders- the HTTP headers of the responsebody- streaming body response- Throws:
NullPointerException- ifheadersorbodyisnull
-
-
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
-