Class EarlyFraudWarning

All Implemented Interfaces:
HasId, StripeActiveObject, StripeObjectInterface

public class EarlyFraudWarning extends ApiResource implements HasId
An early fraud warning indicates that the card issuer has notified us that a charge may be fraudulent.

Related guide: Early fraud warnings

  • Constructor Details

    • EarlyFraudWarning

      public EarlyFraudWarning()
  • Method Details

    • getCharge

      public String getCharge()
      Get ID of expandable charge object.
    • setCharge

      public void setCharge(String id)
    • getChargeObject

      public Charge getChargeObject()
      Get expanded charge.
    • setChargeObject

      public void setChargeObject(Charge expandableObject)
    • getPaymentIntent

      public String getPaymentIntent()
      Get ID of expandable paymentIntent object.
    • setPaymentIntent

      public void setPaymentIntent(String id)
    • getPaymentIntentObject

      public PaymentIntent getPaymentIntentObject()
      Get expanded paymentIntent.
    • setPaymentIntentObject

      public void setPaymentIntentObject(PaymentIntent expandableObject)
    • list

      public static EarlyFraudWarningCollection list(Map<String,Object> params) throws StripeException
      Returns a list of early fraud warnings.
      Throws:
      StripeException
    • list

      public static EarlyFraudWarningCollection list(Map<String,Object> params, RequestOptions options) throws StripeException
      Returns a list of early fraud warnings.
      Throws:
      StripeException
    • list

      Returns a list of early fraud warnings.
      Throws:
      StripeException
    • list

      Returns a list of early fraud warnings.
      Throws:
      StripeException
    • retrieve

      public static EarlyFraudWarning retrieve(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(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 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, 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

      public void setResponseGetter(StripeResponseGetter responseGetter)
      Description copied from interface: StripeActiveObject
      Method is used by the containing object or StripeResponseGetter implementations to set the StripeResponseGetter instance used to make further requests.
      Specified by:
      setResponseGetter in interface StripeActiveObject
      Overrides:
      setResponseGetter in class ApiResource
      Parameters:
      responseGetter - the StripeResponseGetter instance to use for making further requests.
    • getActionable

      public 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 Long getCreated()
      Time at which the object was created. Measured in seconds since the Unix epoch.
    • getFraudType

      public String getFraudType()
      The type of fraud labelled by the issuer. One of card_never_received, fraudulent_card_application, made_with_counterfeit_card, made_with_lost_card, made_with_stolen_card, misc, unauthorized_use_of_card.
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getObject

      public 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(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(Long created)
      Time at which the object was created. Measured in seconds since the Unix epoch.
    • setFraudType

      public void setFraudType(String fraudType)
      The type of fraud labelled by the issuer. One of card_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(String id)
      Unique identifier for the object.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setObject

      public void setObject(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(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getId

      public String getId()
      Unique identifier for the object.
      Specified by:
      getId in interface HasId