public class StripeResponse
extends java.lang.Object
Constructor and Description |
---|
StripeResponse(int code,
java.lang.String body)
Constructs a Stripe response with the specified status code and body.
|
StripeResponse(int code,
java.lang.String body,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
Constructs a Stripe response with the specified status code, body and headers.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
body() |
int |
code() |
StripeHeaders |
headers() |
java.lang.String |
idempotencyKey() |
java.lang.String |
requestId() |
public StripeResponse(int code, java.lang.String body)
public StripeResponse(int code, java.lang.String body, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
public int code()
public java.lang.String body()
public StripeHeaders headers()
public java.lang.String idempotencyKey()
public java.lang.String requestId()