public class StripeError extends StripeObject
PRETTY_PRINT_GSON
Constructor and Description |
---|
StripeError() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getCharge()
For card errors, the ID of the failed charge.
|
java.lang.String |
getCode()
For some errors that could be handled programmatically, a short string indicating the [error
code](https://stripe.com/docs/error-codes) reported.
|
java.lang.String |
getDeclineCode()
For card errors resulting from a card issuer decline, a short string indicating the [card
issuer's reason for the decline](https://stripe.com/docs/declines#issuer-declines) if they
provide one.
|
java.lang.String |
getDocUrl()
A URL to more information about the [error code](https://stripe.com/docs/error-codes) reported.
|
java.lang.String |
getMessage()
A human-readable message providing more details about the error.
|
java.lang.String |
getParam()
If the error is parameter-specific, the parameter related to the error.
|
PaymentIntent |
getPaymentIntent() |
PaymentMethod |
getPaymentMethod() |
SetupIntent |
getSetupIntent() |
PaymentSource |
getSource() |
java.lang.String |
getType()
The type of error returned.
|
int |
hashCode() |
void |
setCharge(java.lang.String charge)
For card errors, the ID of the failed charge.
|
void |
setCode(java.lang.String code)
For some errors that could be handled programmatically, a short string indicating the [error
code](https://stripe.com/docs/error-codes) reported.
|
void |
setDeclineCode(java.lang.String declineCode)
For card errors resulting from a card issuer decline, a short string indicating the [card
issuer's reason for the decline](https://stripe.com/docs/declines#issuer-declines) if they
provide one.
|
void |
setDocUrl(java.lang.String docUrl)
A URL to more information about the [error code](https://stripe.com/docs/error-codes) reported.
|
void |
setMessage(java.lang.String message)
A human-readable message providing more details about the error.
|
void |
setParam(java.lang.String param)
If the error is parameter-specific, the parameter related to the error.
|
void |
setPaymentIntent(PaymentIntent paymentIntent) |
void |
setPaymentMethod(PaymentMethod paymentMethod) |
void |
setSetupIntent(SetupIntent setupIntent) |
void |
setSource(PaymentSource source) |
void |
setType(java.lang.String type)
The type of error returned.
|
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getCharge()
public java.lang.String getCode()
public java.lang.String getDeclineCode()
public java.lang.String getDocUrl()
public java.lang.String getMessage()
public java.lang.String getParam()
public PaymentIntent getPaymentIntent()
public PaymentMethod getPaymentMethod()
public SetupIntent getSetupIntent()
public PaymentSource getSource()
public java.lang.String getType()
public void setCharge(java.lang.String charge)
public void setCode(java.lang.String code)
public void setDeclineCode(java.lang.String declineCode)
public void setDocUrl(java.lang.String docUrl)
public void setMessage(java.lang.String message)
public void setParam(java.lang.String param)
public void setPaymentIntent(PaymentIntent paymentIntent)
public void setPaymentMethod(PaymentMethod paymentMethod)
public void setSetupIntent(SetupIntent setupIntent)
public void setSource(PaymentSource source)
public void setType(java.lang.String type)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object