Class: Stripe::Radar::EarlyFraudWarning
- Inherits:
-
APIResource
- Object
- StripeObject
- APIResource
- Stripe::Radar::EarlyFraudWarning
- Extended by:
- APIOperations::List
- Defined in:
- lib/stripe/resources/radar/early_fraud_warning.rb
Overview
An early fraud warning indicates that the card issuer has notified us that a charge may be fraudulent.
Related guide: [Early fraud warnings](stripe.com/docs/disputes/measuring#early-fraud-warnings)
Constant Summary collapse
- OBJECT_NAME =
"radar.early_fraud_warning"
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#actionable ⇒ Object
readonly
An EFW is actionable if it has not received a dispute and has not been fully refunded.
-
#charge ⇒ Object
readonly
ID of the charge this early fraud warning is for, optionally expanded.
-
#created ⇒ Object
readonly
Time at which the object was created.
-
#fraud_type ⇒ Object
readonly
The type of fraud labelled by the issuer.
-
#id ⇒ Object
readonly
Unique identifier for the object.
-
#livemode ⇒ Object
readonly
Has the value ‘true` if the object exists in live mode or the value `false` if the object exists in test mode.
-
#object ⇒ Object
readonly
String representing the object’s type.
-
#payment_intent ⇒ Object
readonly
ID of the Payment Intent this early fraud warning is for, optionally expanded.
Attributes inherited from APIResource
Attributes inherited from StripeObject
Class Method Summary collapse
- .field_remappings ⇒ Object
- .inner_class_types ⇒ Object
-
.list(params = {}, opts = {}) ⇒ Object
Returns a list of early fraud warnings.
- .object_name ⇒ Object
Methods included from APIOperations::List
Methods inherited from APIResource
class_name, custom_method, #refresh, #request_stripe_object, resource_url, #resource_url, retrieve, save_nested_resource
Methods included from APIOperations::Request
Methods inherited from StripeObject
#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#actionable ⇒ Object (readonly)
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.
19 20 21 |
# File 'lib/stripe/resources/radar/early_fraud_warning.rb', line 19 def actionable @actionable end |
#charge ⇒ Object (readonly)
ID of the charge this early fraud warning is for, optionally expanded.
21 22 23 |
# File 'lib/stripe/resources/radar/early_fraud_warning.rb', line 21 def charge @charge end |
#created ⇒ Object (readonly)
Time at which the object was created. Measured in seconds since the Unix epoch.
23 24 25 |
# File 'lib/stripe/resources/radar/early_fraud_warning.rb', line 23 def created @created end |
#fraud_type ⇒ Object (readonly)
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`.
25 26 27 |
# File 'lib/stripe/resources/radar/early_fraud_warning.rb', line 25 def fraud_type @fraud_type end |
#id ⇒ Object (readonly)
Unique identifier for the object.
27 28 29 |
# File 'lib/stripe/resources/radar/early_fraud_warning.rb', line 27 def id @id end |
#livemode ⇒ Object (readonly)
Has the value ‘true` if the object exists in live mode or the value `false` if the object exists in test mode.
29 30 31 |
# File 'lib/stripe/resources/radar/early_fraud_warning.rb', line 29 def livemode @livemode end |
#object ⇒ Object (readonly)
String representing the object’s type. Objects of the same type share the same value.
31 32 33 |
# File 'lib/stripe/resources/radar/early_fraud_warning.rb', line 31 def object @object end |
#payment_intent ⇒ Object (readonly)
ID of the Payment Intent this early fraud warning is for, optionally expanded.
33 34 35 |
# File 'lib/stripe/resources/radar/early_fraud_warning.rb', line 33 def payment_intent @payment_intent end |
Class Method Details
.field_remappings ⇒ Object
49 50 51 |
# File 'lib/stripe/resources/radar/early_fraud_warning.rb', line 49 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
45 46 47 |
# File 'lib/stripe/resources/radar/early_fraud_warning.rb', line 45 def self.inner_class_types @inner_class_types = {} end |
.list(params = {}, opts = {}) ⇒ Object
Returns a list of early fraud warnings.
36 37 38 39 40 41 42 43 |
# File 'lib/stripe/resources/radar/early_fraud_warning.rb', line 36 def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/radar/early_fraud_warnings", params: params, opts: opts ) end |
.object_name ⇒ Object
14 15 16 |
# File 'lib/stripe/resources/radar/early_fraud_warning.rb', line 14 def self.object_name "radar.early_fraud_warning" end |