Class: Stripe::Charge::Outcome
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::Charge::Outcome
- Defined in:
- lib/stripe/resources/charge.rb
Defined Under Namespace
Classes: Rule
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#advice_code ⇒ Object
readonly
An enumerated value providing a more detailed explanation on [how to proceed with an error](docs.stripe.com/declines#retrying-issuer-declines).
-
#network_advice_code ⇒ Object
readonly
For charges declined by the network, a 2 digit code which indicates the advice returned by the network on how to proceed with an error.
-
#network_decline_code ⇒ Object
readonly
For charges declined by the network, an alphanumeric code which indicates the reason the charge failed.
-
#network_status ⇒ Object
readonly
Possible values are
approved_by_network,declined_by_network,not_sent_to_network, andreversed_after_approval. -
#reason ⇒ Object
readonly
An enumerated value providing a more detailed explanation of the outcome’s
type. -
#risk_level ⇒ Object
readonly
Stripe Radar’s evaluation of the riskiness of the payment.
-
#risk_score ⇒ Object
readonly
Stripe Radar’s evaluation of the riskiness of the payment.
-
#rule ⇒ Object
readonly
The ID of the Radar rule that matched the payment, if applicable.
-
#seller_message ⇒ Object
readonly
A human-readable description of the outcome type and reason, designed for you (the recipient of the payment), not your customer.
-
#type ⇒ Object
readonly
Possible values are
authorized,manual_review,issuer_declined,blocked, andinvalid.
Attributes inherited from StripeObject
Class Method Summary collapse
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
#advice_code ⇒ Object (readonly)
An enumerated value providing a more detailed explanation on [how to proceed with an error](docs.stripe.com/declines#retrying-issuer-declines).
143 144 145 |
# File 'lib/stripe/resources/charge.rb', line 143 def advice_code @advice_code end |
#network_advice_code ⇒ Object (readonly)
For charges declined by the network, a 2 digit code which indicates the advice returned by the network on how to proceed with an error.
145 146 147 |
# File 'lib/stripe/resources/charge.rb', line 145 def network_advice_code @network_advice_code end |
#network_decline_code ⇒ Object (readonly)
For charges declined by the network, an alphanumeric code which indicates the reason the charge failed.
147 148 149 |
# File 'lib/stripe/resources/charge.rb', line 147 def network_decline_code @network_decline_code end |
#network_status ⇒ Object (readonly)
Possible values are approved_by_network, declined_by_network, not_sent_to_network, and reversed_after_approval. The value reversed_after_approval indicates the payment was [blocked by Stripe](docs.stripe.com/declines#blocked-payments) after bank authorization, and may temporarily appear as “pending” on a cardholder’s statement.
149 150 151 |
# File 'lib/stripe/resources/charge.rb', line 149 def network_status @network_status end |
#reason ⇒ Object (readonly)
An enumerated value providing a more detailed explanation of the outcome’s type. Charges blocked by Radar’s default block rule have the value highest_risk_level. Charges placed in review by Radar’s default review rule have the value elevated_risk_level. Charges blocked because the payment is unlikely to be authorized have the value low_probability_of_authorization. Charges authorized, blocked, or placed in review by custom rules have the value rule. See [understanding declines](docs.stripe.com/declines) for more details.
151 152 153 |
# File 'lib/stripe/resources/charge.rb', line 151 def reason @reason end |
#risk_level ⇒ Object (readonly)
Stripe Radar’s evaluation of the riskiness of the payment. Possible values for evaluated payments are normal, elevated, highest. For non-card payments, and card-based payments predating the public assignment of risk levels, this field will have the value not_assessed. In the event of an error in the evaluation, this field will have the value unknown. This field is only available with Radar.
153 154 155 |
# File 'lib/stripe/resources/charge.rb', line 153 def risk_level @risk_level end |
#risk_score ⇒ Object (readonly)
Stripe Radar’s evaluation of the riskiness of the payment. Possible values for evaluated payments are between 0 and 100. For non-card payments, card-based payments predating the public assignment of risk scores, or in the event of an error during evaluation, this field will not be present. This field is only available with Radar for Fraud Teams.
155 156 157 |
# File 'lib/stripe/resources/charge.rb', line 155 def risk_score @risk_score end |
#rule ⇒ Object (readonly)
The ID of the Radar rule that matched the payment, if applicable.
157 158 159 |
# File 'lib/stripe/resources/charge.rb', line 157 def rule @rule end |
#seller_message ⇒ Object (readonly)
A human-readable description of the outcome type and reason, designed for you (the recipient of the payment), not your customer.
159 160 161 |
# File 'lib/stripe/resources/charge.rb', line 159 def @seller_message end |
#type ⇒ Object (readonly)
Possible values are authorized, manual_review, issuer_declined, blocked, and invalid. See [understanding declines](docs.stripe.com/declines) and [Radar reviews](docs.stripe.com/radar/reviews) for details.
161 162 163 |
# File 'lib/stripe/resources/charge.rb', line 161 def type @type end |
Class Method Details
.field_remappings ⇒ Object
167 168 169 |
# File 'lib/stripe/resources/charge.rb', line 167 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
163 164 165 |
# File 'lib/stripe/resources/charge.rb', line 163 def self.inner_class_types @inner_class_types = { rule: Rule } end |