public final class StripeResponse
extends java.lang.Object
Constructor and Description |
---|
StripeResponse(int code,
HttpHeaders headers,
java.lang.String body)
Initializes a new instance of the
StripeResponse class. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
body()
The body of the response.
|
int |
code()
The HTTP status code of the response.
|
java.time.Instant |
date()
Gets the date of the request, as returned by Stripe.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
HttpHeaders |
headers()
The HTTP headers of the response.
|
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.
|
java.lang.String |
toString() |
public StripeResponse(int code, HttpHeaders headers, java.lang.String body)
StripeResponse
class.code
- the HTTP status code of the responseheaders
- the HTTP headers of the responsebody
- the body of the responsejava.lang.NullPointerException
- if headers
or body
is null
public java.time.Instant date()
public java.lang.String idempotencyKey()
public java.lang.String requestId()
public int code()
public HttpHeaders headers()
public java.lang.String body()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object