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
,StripeObjectInterface
public class EarlyFraudWarning extends ApiResource implements HasId
-
-
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
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description EarlyFraudWarning()
-
Method Summary
All Methods Static 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.Boolean
getActionable()
An EFW is actionable if it has not received a dispute and has not been fully refunded.java.lang.String
getCharge()
Get ID of expandablecharge
object.Charge
getChargeObject()
Get expandedcharge
.java.lang.Long
getCreated()
Time at which the object was created.java.lang.String
getFraudType()
The type of fraud labelled by the issuer.java.lang.String
getId()
Unique identifier for the object.java.lang.Boolean
getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.java.lang.String
getObject()
String representing the object's type.java.lang.String
getPaymentIntent()
Get ID of expandablepaymentIntent
object.PaymentIntent
getPaymentIntentObject()
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
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of early fraud warnings.static EarlyFraudWarningCollection
list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Returns a list of early fraud warnings.static EarlyFraudWarning
retrieve(java.lang.String earlyFraudWarning)
Retrieves the details of an early fraud warning that has previously been created.static EarlyFraudWarning
retrieve(java.lang.String earlyFraudWarning, RequestOptions options)
Retrieves the details of an early fraud warning that has previously been created.static EarlyFraudWarning
retrieve(java.lang.String earlyFraudWarning, EarlyFraudWarningRetrieveParams params, RequestOptions options)
Retrieves the details of an early fraud warning that has previously been created.static EarlyFraudWarning
retrieve(java.lang.String earlyFraudWarning, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Retrieves the details of an early fraud warning that has previously been created.void
setActionable(java.lang.Boolean actionable)
An EFW is actionable if it has not received a dispute and has not been fully refunded.void
setCharge(java.lang.String id)
void
setChargeObject(Charge expandableObject)
void
setCreated(java.lang.Long created)
Time at which the object was created.void
setFraudType(java.lang.String fraudType)
The type of fraud labelled by the issuer.void
setId(java.lang.String id)
Unique identifier for the object.void
setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setObject(java.lang.String object)
String representing the object's type.void
setPaymentIntent(java.lang.String id)
void
setPaymentIntentObject(PaymentIntent expandableObject)
-
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getCharge
public java.lang.String getCharge()
Get ID of expandablecharge
object.
-
setCharge
public void setCharge(java.lang.String id)
-
getChargeObject
public Charge getChargeObject()
Get expandedcharge
.
-
setChargeObject
public void setChargeObject(Charge expandableObject)
-
getPaymentIntent
public java.lang.String getPaymentIntent()
Get ID of expandablepaymentIntent
object.
-
setPaymentIntent
public void setPaymentIntent(java.lang.String id)
-
getPaymentIntentObject
public PaymentIntent getPaymentIntentObject()
Get expandedpaymentIntent
.
-
setPaymentIntentObject
public void setPaymentIntentObject(PaymentIntent expandableObject)
-
list
public static EarlyFraudWarningCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Returns a list of early fraud warnings.- Throws:
StripeException
-
list
public static EarlyFraudWarningCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Returns 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
public static EarlyFraudWarning retrieve(java.lang.String earlyFraudWarning) 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(java.lang.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(java.lang.String earlyFraudWarning, java.util.Map<java.lang.String,java.lang.Object> 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
-
retrieve
public static EarlyFraudWarning retrieve(java.lang.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
-
getActionable
public java.lang.Boolean 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
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getFraudType
public java.lang.String 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
public java.lang.Boolean getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
radar.early_fraud_warning
.
-
setActionable
public void setActionable(java.lang.Boolean actionable)
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
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setFraudType
public void setFraudType(java.lang.String fraudType)
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
public void setId(java.lang.String id)
Unique identifier for the object.
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
radar.early_fraud_warning
.
-
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
-
-