Class: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
- Defined in:
- lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb
Overview
Defined Under Namespace
Modules: Interval, Scope, Unit
Instance Attribute Summary collapse
-
#interval ⇒ Symbol, ...
The time window for statistical attributes (‘AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`).
-
#scope ⇒ Symbol, ...
The entity scope to evaluate the attribute against.
-
#unit ⇒ Symbol, ...
The unit for impossible travel attributes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(interval: nil, scope: nil, unit: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Parameters for more details.
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, meta_info, 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(interval: nil, scope: nil, unit: nil) ⇒ Object
Some parameter documentations has been truncated, see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters for more details.
Additional parameters for certain attributes. Required when ‘attribute` is one of `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`, `IS_NEW_COUNTRY`, `IS_NEW_MCC`, `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`, `TIME_SINCE_LAST_TRANSACTION`, or `DISTINCT_COUNTRY_COUNT` (require `scope`); or `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION` (require `unit`). Not used for other attributes.
‘TRAVEL_
|
|
# File 'lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb', line 382
|
Instance Attribute Details
#interval ⇒ Symbol, ...
The time window for statistical attributes (‘AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for all-time history or a specific window (`7D`, `30D`, `90D`).
360 361 |
# File 'lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb', line 360 optional :interval, enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval } |
#scope ⇒ Symbol, ...
The entity scope to evaluate the attribute against.
367 368 |
# File 'lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb', line 367 optional :scope, enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope } |
#unit ⇒ Symbol, ...
The unit for impossible travel attributes. Required when ‘attribute` is `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION`.
For ‘TRAVEL_SPEED`: `MPH` (miles per hour) or `KPH` (kilometers per hour).
For ‘DISTANCE_FROM_LAST_TRANSACTION`: `MILES` or `KILOMETERS`.
379 380 |
# File 'lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb', line 379 optional :unit, enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Unit } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb', line 414
|