Class: Increase::Models::RealTimeDecisionActionParams::CardAuthorization

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/real_time_decision_action_params.rb

Defined Under Namespace

Modules: Decision, DeclineReason

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(decision: , decline_reason: nil) ⇒ Object

Some parameter documentations has been truncated, see Increase::Models::RealTimeDecisionActionParams::CardAuthorization for more details.

If the Real-Time Decision relates to a card authorization attempt, this object contains your response to the authorization.

Parameters:



# File 'lib/increase/models/real_time_decision_action_params.rb', line 150

Instance Attribute Details

#decisionSymbol, Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decision

Whether the card authorization should be approved or declined.



140
# File 'lib/increase/models/real_time_decision_action_params.rb', line 140

required :decision, enum: -> { Increase::RealTimeDecisionActionParams::CardAuthorization::Decision }

#decline_reasonSymbol, ...

The reason the card authorization was declined. This translates to a specific decline code that is sent to the card network.



147
148
# File 'lib/increase/models/real_time_decision_action_params.rb', line 147

optional :decline_reason,
enum: -> { Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/increase/models/real_time_decision_action_params.rb', line 174