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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.BooleangetActionable()An EFW is actionable if it has not received a dispute and has not been fully refunded.java.lang.StringgetCharge()Get ID of expandablechargeobject.ChargegetChargeObject()Get expandedcharge.java.lang.LonggetCreated()Time at which the object was created.java.lang.StringgetFraudType()The type of fraud labelled by the issuer.java.lang.StringgetId()Unique identifier for the object.java.lang.BooleangetLivemode()Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.java.lang.StringgetObject()String representing the object's type.java.lang.StringgetPaymentIntent()Get ID of expandablepaymentIntentobject.PaymentIntentgetPaymentIntentObject()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 EarlyFraudWarningCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params)Returns a list of early fraud warnings.static EarlyFraudWarningCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Returns a list of early fraud warnings.static EarlyFraudWarningretrieve(java.lang.String earlyFraudWarning)Retrieves the details of an early fraud warning that has previously been created.static EarlyFraudWarningretrieve(java.lang.String earlyFraudWarning, RequestOptions options)Retrieves the details of an early fraud warning that has previously been created.static EarlyFraudWarningretrieve(java.lang.String earlyFraudWarning, EarlyFraudWarningRetrieveParams params, RequestOptions options)Retrieves the details of an early fraud warning that has previously been created.static EarlyFraudWarningretrieve(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.voidsetActionable(java.lang.Boolean actionable)An EFW is actionable if it has not received a dispute and has not been fully refunded.voidsetCharge(java.lang.String id)voidsetChargeObject(Charge expandableObject)voidsetCreated(java.lang.Long created)Time at which the object was created.voidsetFraudType(java.lang.String fraudType)The type of fraud labelled by the issuer.voidsetId(java.lang.String id)Unique identifier for the object.voidsetLivemode(java.lang.Boolean livemode)Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetObject(java.lang.String object)String representing the object's type.voidsetPaymentIntent(java.lang.String id)voidsetPaymentIntentObject(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 expandablechargeobject.
-
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 expandablepaymentIntentobject.
-
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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-