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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAn EFW is actionable if it has not received a dispute and has not been fully refunded.Get ID of expandablechargeobject.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 valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.Get ID of expandablepaymentIntentobject.Get expandedpaymentIntent.inthashCode()static EarlyFraudWarningCollectionlist(EarlyFraudWarningListParams params) Returns a list of early fraud warnings.static EarlyFraudWarningCollectionlist(EarlyFraudWarningListParams params, RequestOptions options) Returns a list of early fraud warnings.static EarlyFraudWarningCollectionReturns a list of early fraud warnings.static EarlyFraudWarningCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of early fraud warnings.static EarlyFraudWarningRetrieves the details of an early fraud warning that has previously been created.static EarlyFraudWarningretrieve(String earlyFraudWarning, RequestOptions options) Retrieves the details of an early fraud warning that has previously been created.static EarlyFraudWarningretrieve(String earlyFraudWarning, EarlyFraudWarningRetrieveParams params, RequestOptions options) Retrieves the details of an early fraud warning that has previously been created.static EarlyFraudWarningRetrieves the details of an early fraud warning that has previously been created.voidsetActionable(Boolean actionable) An EFW is actionable if it has not received a dispute and has not been fully refunded.voidvoidsetChargeObject(Charge expandableObject) voidsetCreated(Long created) Time at which the object was created.voidsetFraudType(String fraudType) The type of fraud labelled by the issuer.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidvoidsetPaymentIntentObject(PaymentIntent expandableObject) voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.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
-
EarlyFraudWarning
public EarlyFraudWarning()
-
-
Method Details
-
getCharge
Get ID of expandablechargeobject. -
setCharge
-
getChargeObject
Get expandedcharge. -
setChargeObject
-
getPaymentIntent
Get ID of expandablepaymentIntentobject. -
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:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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.
-