Package com.stripe.model.radar
Class PaymentEvaluation
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.radar.PaymentEvaluation
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
Payment Evaluations represent the risk lifecycle of an externally processed payment. It includes
the Radar risk score from Stripe, payment outcome taken by the merchant or processor, and any
post transaction events, such as refunds or disputes. See the Radar API guide for integration steps.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClient device metadata attached to this payment evaluation.static classCustomer details attached to this payment evaluation.static classEvent reported for this payment evaluation.static classOutcome details for this payment evaluation.static classPayment details attached to this payment evaluation.static classCollection of signals for this payment evaluation.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic PaymentEvaluationcreate(PaymentEvaluationCreateParams params) Request a Radar API fraud risk score from Stripe for a payment before sending it for external processor authorization.static PaymentEvaluationcreate(PaymentEvaluationCreateParams params, RequestOptions options) Request a Radar API fraud risk score from Stripe for a payment before sending it for external processor authorization.static PaymentEvaluationRequest a Radar API fraud risk score from Stripe for a payment before sending it for external processor authorization.static PaymentEvaluationcreate(Map<String, Object> params, RequestOptions options) Request a Radar API fraud risk score from Stripe for a payment before sending it for external processor authorization.booleanClient device metadata attached to this payment evaluation.Time at which the object was created.Customer details attached to this payment evaluation.Event information associated with the payment evaluation, such as refunds, dispute, early fraud warnings, or user interventions.getId()Unique identifier for the object.If the object exists in live mode, the value istrue.Set of key-value pairs that you can attach to an object.String representing the object's type.Indicates the final outcome for the payment evaluation.Payment details attached to this payment evaluation.Recommended action based on the score of the fraudulent_payment signal.Collection of signals for this payment evaluation.inthashCode()voidsetClientDeviceMetadataDetails(PaymentEvaluation.ClientDeviceMetadataDetails clientDeviceMetadataDetails) Client device metadata attached to this payment evaluation.voidsetCreatedAt(Long createdAt) Time at which the object was created.voidsetCustomerDetails(PaymentEvaluation.CustomerDetails customerDetails) Customer details attached to this payment evaluation.voidsetEvents(List<PaymentEvaluation.Event> events) Event information associated with the payment evaluation, such as refunds, dispute, early fraud warnings, or user interventions.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) If the object exists in live mode, the value istrue.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidsetOutcome(PaymentEvaluation.Outcome outcome) Indicates the final outcome for the payment evaluation.voidsetPaymentDetails(PaymentEvaluation.PaymentDetails paymentDetails) Payment details attached to this payment evaluation.voidsetRecommendedAction(String recommendedAction) Recommended action based on the score of the fraudulent_payment signal.voidsetResponseGetter(StripeResponseGetter responseGetter) Score for this insight.voidsetSignals(PaymentEvaluation.Signals signals) Collection of signals for this payment evaluation.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
PaymentEvaluation
public PaymentEvaluation()
-
-
Method Details
-
create
Request a Radar API fraud risk score from Stripe for a payment before sending it for external processor authorization.- Throws:
StripeException
-
create
public static PaymentEvaluation create(Map<String, Object> params, RequestOptions options) throws StripeExceptionRequest a Radar API fraud risk score from Stripe for a payment before sending it for external processor authorization.- Throws:
StripeException
-
create
Request a Radar API fraud risk score from Stripe for a payment before sending it for external processor authorization.- Throws:
StripeException
-
create
public static PaymentEvaluation create(PaymentEvaluationCreateParams params, RequestOptions options) throws StripeException Request a Radar API fraud risk score from Stripe for a payment before sending it for external processor authorization.- Throws:
StripeException
-
setResponseGetter
Score for this insight. Possible values for evaluated payments are -1 and any value between 0 and 100. The value is returned with two decimal places. A score of -1 indicates a test integration and higher scores indicate a higher likelihood of the signal being true.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getClientDeviceMetadataDetails
Client device metadata attached to this payment evaluation. -
getCreatedAt
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCustomerDetails
Customer details attached to this payment evaluation. -
getEvents
Event information associated with the payment evaluation, such as refunds, dispute, early fraud warnings, or user interventions. -
getLivemode
If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
radar.payment_evaluation. -
getOutcome
Indicates the final outcome for the payment evaluation. -
getPaymentDetails
Payment details attached to this payment evaluation. -
getRecommendedAction
Recommended action based on the score of the fraudulent_payment signal. Possible values areblockandcontinue.One of
block, orcontinue. -
getSignals
Collection of signals for this payment evaluation. -
setClientDeviceMetadataDetails
public void setClientDeviceMetadataDetails(PaymentEvaluation.ClientDeviceMetadataDetails clientDeviceMetadataDetails) Client device metadata attached to this payment evaluation. -
setCreatedAt
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCustomerDetails
Customer details attached to this payment evaluation. -
setEvents
Event information associated with the payment evaluation, such as refunds, dispute, early fraud warnings, or user interventions. -
setId
Unique identifier for the object. -
setLivemode
If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
radar.payment_evaluation. -
setOutcome
Indicates the final outcome for the payment evaluation. -
setPaymentDetails
Payment details attached to this payment evaluation. -
setRecommendedAction
Recommended action based on the score of the fraudulent_payment signal. Possible values areblockandcontinue.One of
block, orcontinue. -
setSignals
Collection of signals for this payment evaluation. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-