Package com.stripe.net
Class StripeResponseStream
- java.lang.Object
-
- com.stripe.net.StripeResponseStream
-
public class StripeResponseStream extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StripeResponseStream(int code, HttpHeaders headers, java.io.InputStream body)
Initializes a new instance of theStripeResponseStream
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
body()
int
code()
java.time.Instant
date()
Gets the date of the request, as returned by Stripe.HttpHeaders
headers()
java.lang.String
idempotencyKey()
Gets the idempotency key of the request, as returned by Stripe.java.lang.String
requestId()
Gets the ID of the request, as returned by Stripe.
-
-
-
Constructor Detail
-
StripeResponseStream
public StripeResponseStream(int code, HttpHeaders headers, java.io.InputStream body)
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:
java.lang.NullPointerException
- ifheaders
orbody
isnull
-
-
Method Detail
-
code
public final int code()
-
headers
public final HttpHeaders headers()
-
body
public final T body()
-
date
public java.time.Instant date()
Gets the date of the request, as returned by Stripe.- Returns:
- the date of the request, as returned by Stripe
-
idempotencyKey
public java.lang.String idempotencyKey()
Gets the idempotency key of the request, as returned by Stripe.- Returns:
- the idempotency key of the request, as returned by Stripe
-
requestId
public java.lang.String requestId()
Gets the ID of the request, as returned by Stripe.- Returns:
- the ID of the request, as returned by Stripe
-
-