class

Stripe::ChargeOutcome

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Constants

MAX_LENGTH_FOR__TYPE = 5000
MAX_LENGTH_FOR_NETWORK_STATUS = 5000
MAX_LENGTH_FOR_REASON = 5000
MAX_LENGTH_FOR_RISK_LEVEL = 5000
MAX_LENGTH_FOR_SELLER_MESSAGE = 5000

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, network_status : String | Nil = nil, reason : String | Nil = nil, seller_message : String | Nil = nil, _type : String | Nil = nil, risk_level : String | Nil = nil, risk_score : Int64 | Nil = nil, rule : Stripe::ChargeOutcomeRule | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

_type

Possible values are authorized, manual_review, issuer_declined, blocked, and invalid. See understanding declines and Radar reviews for details.

Source
_type=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] _type Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
network_status

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 after bank authorization, and may temporarily appear as "pending" on a cardholder's statement.

Source
network_status=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] network_status Object to be assigned

Source
reason

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 authorized, blocked, or placed in review by custom rules have the value rule. See understanding declines for more details.

Source
reason=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] reason Object to be assigned

Source
risk_level

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.

Source
risk_level=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] risk_level Object to be assigned

Source
risk_score

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.

Source
risk_score=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] risk_score Object to be assigned

Source
rule
Source
rule=(new_value : Stripe::ChargeOutcomeRule | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] rule Object to be assigned

Source
seller_message

A human-readable description of the outcome type and reason, designed for you (the recipient of the payment), not your customer.

Source
seller_message=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] seller_message Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source