Class: Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/auth_rules/rule_feature.rb,
sig/lithic/models/auth_rules/rule_feature.rbs

Defined Under Namespace

Modules: Scope

Instance Attribute 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, 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(period:, scope:, filters: nil, name: nil, type: :SPEND_VELOCITY) ⇒ Object

Parameters:



# File 'lib/lithic/models/auth_rules/rule_feature.rb', line 290

Instance Attribute Details

#filtersLithic::Models::AuthRules::VelocityLimitFilters?



282
# File 'lib/lithic/models/auth_rules/rule_feature.rb', line 282

optional :filters, -> { Lithic::AuthRules::VelocityLimitFilters }

#nameString?

The variable name for this feature in the rule function signature

Parameters:

  • (String)

Returns:

  • (String, nil)


288
# File 'lib/lithic/models/auth_rules/rule_feature.rb', line 288

optional :name, String

#periodLithic::Models::AuthRules::VelocityLimitPeriod::TrailingWindowObject, ...

Velocity over the current day since 00:00 / 12 AM in Eastern Time



266
# File 'lib/lithic/models/auth_rules/rule_feature.rb', line 266

required :period, union: -> { Lithic::AuthRules::VelocityLimitPeriod }

#scopeSymbol, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature::Scope

The scope the velocity is calculated for

Parameters:

  • value (Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature::scope)

Returns:



272
# File 'lib/lithic/models/auth_rules/rule_feature.rb', line 272

required :scope, enum: -> { Lithic::AuthRules::RuleFeature::SpendVelocityFeature::Scope }

#typeSymbol, :SPEND_VELOCITY

Parameters:

  • value (:SPEND_VELOCITY)

Returns:

  • (Symbol, :SPEND_VELOCITY)


277
# File 'lib/lithic/models/auth_rules/rule_feature.rb', line 277

required :type, const: :SPEND_VELOCITY

Instance Method Details

#to_hash{

Returns:

  • ({)


200
# File 'sig/lithic/models/auth_rules/rule_feature.rbs', line 200

def to_hash: -> {