Package com.stripe.model.radar
Class EarlyFraudWarning
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.radar.EarlyFraudWarning
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
An early fraud warning indicates that the card issuer has notified us that a charge may be
fraudulent.
Related guide: Early fraud warnings
-
Nested Class Summary
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_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
An EFW is actionable if it has not received a dispute and has not been fully refunded.Get ID of expandablecharge
object.Get expandedcharge
.Time at which the object was created.The type of fraud labelled by the issuer.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.Get ID of expandablepaymentIntent
object.Get expandedpaymentIntent
.int
hashCode()
static EarlyFraudWarningCollection
list
(EarlyFraudWarningListParams params) Returns a list of early fraud warnings.static EarlyFraudWarningCollection
list
(EarlyFraudWarningListParams params, RequestOptions options) Returns a list of early fraud warnings.static EarlyFraudWarningCollection
Returns a list of early fraud warnings.static EarlyFraudWarningCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of early fraud warnings.static EarlyFraudWarning
Retrieves the details of an early fraud warning that has previously been created.static EarlyFraudWarning
retrieve
(String earlyFraudWarning, RequestOptions options) Retrieves the details of an early fraud warning that has previously been created.static EarlyFraudWarning
retrieve
(String earlyFraudWarning, EarlyFraudWarningRetrieveParams params, RequestOptions options) Retrieves the details of an early fraud warning that has previously been created.static EarlyFraudWarning
Retrieves the details of an early fraud warning that has previously been created.void
setActionable
(Boolean actionable) An EFW is actionable if it has not received a dispute and has not been fully refunded.void
void
setChargeObject
(Charge expandableObject) void
setCreated
(Long created) Time at which the object was created.void
setFraudType
(String fraudType) The type of fraud labelled by the issuer.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
void
setPaymentIntentObject
(PaymentIntent expandableObject) void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
EarlyFraudWarning
public EarlyFraudWarning()
-
-
Method Details
-
getCharge
Get ID of expandablecharge
object. -
setCharge
-
getChargeObject
Get expandedcharge
. -
setChargeObject
-
getPaymentIntent
Get ID of expandablepaymentIntent
object. -
setPaymentIntent
-
getPaymentIntentObject
Get expandedpaymentIntent
. -
setPaymentIntentObject
-
list
Returns a list of early fraud warnings.- Throws:
StripeException
-
list
public static EarlyFraudWarningCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of early fraud warnings.- Throws:
StripeException
-
list
public static EarlyFraudWarningCollection list(EarlyFraudWarningListParams params) throws StripeException Returns a list of early fraud warnings.- Throws:
StripeException
-
list
public static EarlyFraudWarningCollection list(EarlyFraudWarningListParams params, RequestOptions options) throws StripeException Returns a list of early fraud warnings.- Throws:
StripeException
-
retrieve
Retrieves the details of an early fraud warning that has previously been created.Please refer to the early fraud warning object reference for more details.
- Throws:
StripeException
-
retrieve
public static EarlyFraudWarning retrieve(String earlyFraudWarning, RequestOptions options) throws StripeException Retrieves the details of an early fraud warning that has previously been created.Please refer to the early fraud warning object reference for more details.
- Throws:
StripeException
-
retrieve
public static EarlyFraudWarning retrieve(String earlyFraudWarning, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an early fraud warning that has previously been created.Please refer to the early fraud warning object reference for more details.
- Throws:
StripeException
-
retrieve
public static EarlyFraudWarning retrieve(String earlyFraudWarning, EarlyFraudWarningRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an early fraud warning that has previously been created.Please refer to the early fraud warning object reference for more details.
- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getActionable
An EFW is actionable if it has not received a dispute and has not been fully refunded. You may wish to proactively refund a charge that receives an EFW, in order to avoid receiving a dispute later. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getFraudType
The type of fraud labelled by the issuer. One ofcard_never_received
,fraudulent_card_application
,made_with_counterfeit_card
,made_with_lost_card
,made_with_stolen_card
,misc
,unauthorized_use_of_card
. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
radar.early_fraud_warning
. -
setActionable
An EFW is actionable if it has not received a dispute and has not been fully refunded. You may wish to proactively refund a charge that receives an EFW, in order to avoid receiving a dispute later. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setFraudType
The type of fraud labelled by the issuer. One ofcard_never_received
,fraudulent_card_application
,made_with_counterfeit_card
,made_with_lost_card
,made_with_stolen_card
,misc
,unauthorized_use_of_card
. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
radar.early_fraud_warning
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-