Package com.stripe.model
Class Charge.Outcome
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.model.Charge.Outcome
-
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Charge
public static class Charge.Outcome extends StripeObject
-
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description Outcome()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getNetworkStatus()
Possible values areapproved_by_network
,declined_by_network
,not_sent_to_network
, andreversed_after_approval
.java.lang.String
getReason()
An enumerated value providing a more detailed explanation of the outcome'stype
.java.lang.String
getRiskLevel()
Stripe Radar's evaluation of the riskiness of the payment.java.lang.Long
getRiskScore()
Stripe Radar's evaluation of the riskiness of the payment.java.lang.String
getRule()
Get ID of expandablerule
object.Rule
getRuleObject()
Get expandedrule
.java.lang.String
getSellerMessage()
A human-readable description of the outcome type and reason, designed for you (the recipient of the payment), not your customer.java.lang.String
getType()
Possible values areauthorized
,manual_review
,issuer_declined
,blocked
, andinvalid
.int
hashCode()
void
setNetworkStatus(java.lang.String networkStatus)
Possible values areapproved_by_network
,declined_by_network
,not_sent_to_network
, andreversed_after_approval
.void
setReason(java.lang.String reason)
An enumerated value providing a more detailed explanation of the outcome'stype
.void
setRiskLevel(java.lang.String riskLevel)
Stripe Radar's evaluation of the riskiness of the payment.void
setRiskScore(java.lang.Long riskScore)
Stripe Radar's evaluation of the riskiness of the payment.void
setRule(java.lang.String id)
void
setRuleObject(Rule expandableObject)
void
setSellerMessage(java.lang.String sellerMessage)
A human-readable description of the outcome type and reason, designed for you (the recipient of the payment), not your customer.void
setType(java.lang.String type)
Possible values areauthorized
,manual_review
,issuer_declined
,blocked
, andinvalid
.-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getRule
public java.lang.String getRule()
Get ID of expandablerule
object.
-
setRule
public void setRule(java.lang.String id)
-
getRuleObject
public Rule getRuleObject()
Get expandedrule
.
-
setRuleObject
public void setRuleObject(Rule expandableObject)
-
getNetworkStatus
public java.lang.String getNetworkStatus()
Possible values areapproved_by_network
,declined_by_network
,not_sent_to_network
, andreversed_after_approval
. The valuereversed_after_approval
indicates the payment was blocked by Stripe after bank authorization, and may temporarily appear as "pending" on a cardholder's statement.
-
getReason
public java.lang.String getReason()
An enumerated value providing a more detailed explanation of the outcome'stype
. Charges blocked by Radar's default block rule have the valuehighest_risk_level
. Charges placed in review by Radar's default review rule have the valueelevated_risk_level
. Charges authorized, blocked, or placed in review by custom rules have the valuerule
. See understanding declines for more details.
-
getRiskLevel
public java.lang.String getRiskLevel()
Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated payments arenormal
,elevated
,highest
. For non-card payments, and card-based payments predating the public assignment of risk levels, this field will have the valuenot_assessed
. In the event of an error in the evaluation, this field will have the valueunknown
. This field is only available with Radar.
-
getRiskScore
public java.lang.Long getRiskScore()
Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated payments are between 0 and 100. For non-card payments, card-based payments predating the public assignment of risk scores, or in the event of an error during evaluation, this field will not be present. This field is only available with Radar for Fraud Teams.
-
getSellerMessage
public java.lang.String getSellerMessage()
A human-readable description of the outcome type and reason, designed for you (the recipient of the payment), not your customer.
-
getType
public java.lang.String getType()
Possible values areauthorized
,manual_review
,issuer_declined
,blocked
, andinvalid
. See understanding declines and Radar reviews for details.
-
setNetworkStatus
public void setNetworkStatus(java.lang.String networkStatus)
Possible values areapproved_by_network
,declined_by_network
,not_sent_to_network
, andreversed_after_approval
. The valuereversed_after_approval
indicates the payment was blocked by Stripe after bank authorization, and may temporarily appear as "pending" on a cardholder's statement.
-
setReason
public void setReason(java.lang.String reason)
An enumerated value providing a more detailed explanation of the outcome'stype
. Charges blocked by Radar's default block rule have the valuehighest_risk_level
. Charges placed in review by Radar's default review rule have the valueelevated_risk_level
. Charges authorized, blocked, or placed in review by custom rules have the valuerule
. See understanding declines for more details.
-
setRiskLevel
public void setRiskLevel(java.lang.String riskLevel)
Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated payments arenormal
,elevated
,highest
. For non-card payments, and card-based payments predating the public assignment of risk levels, this field will have the valuenot_assessed
. In the event of an error in the evaluation, this field will have the valueunknown
. This field is only available with Radar.
-
setRiskScore
public void setRiskScore(java.lang.Long riskScore)
Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated payments are between 0 and 100. For non-card payments, card-based payments predating the public assignment of risk scores, or in the event of an error during evaluation, this field will not be present. This field is only available with Radar for Fraud Teams.
-
setSellerMessage
public void setSellerMessage(java.lang.String sellerMessage)
A human-readable description of the outcome type and reason, designed for you (the recipient of the payment), not your customer.
-
setType
public void setType(java.lang.String type)
Possible values areauthorized
,manual_review
,issuer_declined
,blocked
, andinvalid
. See understanding declines and Radar reviews for details.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-