Class: Lithic::Models::AuthRules::AuthRule
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Lithic::Models::AuthRules::AuthRule
- Defined in:
- lib/lithic/models/auth_rules/auth_rule.rb
Overview
Defined Under Namespace
Modules: State, Type Classes: CurrentVersion, DraftVersion
Instance Attribute Summary collapse
-
#account_tokens ⇒ Array<String>
Account tokens to which the Auth Rule applies.
-
#business_account_tokens ⇒ Array<String>
Business Account tokens to which the Auth Rule applies.
-
#card_tokens ⇒ Array<String>
Card tokens to which the Auth Rule applies.
- #current_version ⇒ Lithic::Models::AuthRules::AuthRule::CurrentVersion?
- #draft_version ⇒ Lithic::Models::AuthRules::AuthRule::DraftVersion?
-
#event_stream ⇒ Symbol, Lithic::Models::AuthRules::EventStream
The event stream during which the rule will be evaluated.
-
#excluded_card_tokens ⇒ Array<String>?
Card tokens to which the Auth Rule does not apply.
-
#lithic_managed ⇒ Boolean
Indicates whether this auth rule is managed by Lithic.
-
#name ⇒ String?
Auth Rule Name.
-
#program_level ⇒ Boolean
Whether the Auth Rule applies to all authorizations on the card program.
-
#state ⇒ Symbol, Lithic::Models::AuthRules::AuthRule::State
The state of the Auth Rule.
-
#token ⇒ String
Auth Rule Token.
-
#type ⇒ Symbol, Lithic::Models::AuthRules::AuthRule::Type
The type of Auth Rule.
Class Method Summary collapse
- .values ⇒ Array<Symbol>
- .variants ⇒ Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters)
Instance Method Summary collapse
-
#initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see AuthRule 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(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil) ⇒ Object
Some parameter documentations has been truncated, see Lithic::Models::AuthRules::AuthRule for more details.
|
|
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 94
|
Instance Attribute Details
#account_tokens ⇒ Array<String>
Account tokens to which the Auth Rule applies.
18 |
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 18 required :account_tokens, Lithic::Internal::Type::ArrayOf[String] |
#business_account_tokens ⇒ Array<String>
Business Account tokens to which the Auth Rule applies.
24 |
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 24 required :business_account_tokens, Lithic::Internal::Type::ArrayOf[String] |
#card_tokens ⇒ Array<String>
Card tokens to which the Auth Rule applies.
30 |
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 30 required :card_tokens, Lithic::Internal::Type::ArrayOf[String] |
#current_version ⇒ Lithic::Models::AuthRules::AuthRule::CurrentVersion?
35 |
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 35 required :current_version, -> { Lithic::AuthRules::AuthRule::CurrentVersion }, nil?: true |
#draft_version ⇒ Lithic::Models::AuthRules::AuthRule::DraftVersion?
40 |
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 40 required :draft_version, -> { Lithic::AuthRules::AuthRule::DraftVersion }, nil?: true |
#event_stream ⇒ Symbol, Lithic::Models::AuthRules::EventStream
The event stream during which the rule will be evaluated.
46 |
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 46 required :event_stream, enum: -> { Lithic::AuthRules::EventStream } |
#excluded_card_tokens ⇒ Array<String>?
Card tokens to which the Auth Rule does not apply.
92 |
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 92 optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String] |
#lithic_managed ⇒ Boolean
Indicates whether this auth rule is managed by Lithic. If true, the rule cannot be modified or deleted by the user
53 |
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 53 required :lithic_managed, Lithic::Internal::Type::Boolean |
#name ⇒ String?
Auth Rule Name
59 |
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 59 required :name, String, nil?: true |
#program_level ⇒ Boolean
Whether the Auth Rule applies to all authorizations on the card program.
65 |
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 65 required :program_level, Lithic::Internal::Type::Boolean |
#state ⇒ Symbol, Lithic::Models::AuthRules::AuthRule::State
The state of the Auth Rule
71 |
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 71 required :state, enum: -> { Lithic::AuthRules::AuthRule::State } |
#token ⇒ String
Auth Rule Token
12 |
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 12 required :token, String |
#type ⇒ Symbol, Lithic::Models::AuthRules::AuthRule::Type
The type of Auth Rule. For certain rule types, this determines the event stream during which it will be evaluated. For rules that can be applied to one of several event streams, the effective one is defined by the separate ‘event_stream` field.
-
‘CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
-
‘VELOCITY_LIMIT`: AUTHORIZATION event stream.
-
‘MERCHANT_LOCK`: AUTHORIZATION event stream.
-
‘CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION, ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
86 |
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 86 required :type, enum: -> { Lithic::AuthRules::AuthRule::Type } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 233
|
.variants ⇒ Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters)
|
|
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 169
|