Class: Lithic::Models::AuthRules::AuthRule

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/auth_rules/auth_rule.rb

Overview

Defined Under Namespace

Modules: State, Type Classes: CurrentVersion, DraftVersion

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, 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.

Parameters:

  • token (String)

    Auth Rule Token

  • 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, nil)
  • draft_version (Lithic::Models::AuthRules::AuthRule::DraftVersion, nil)
  • event_stream (Symbol, Lithic::Models::AuthRules::EventStream)

    The event stream during which the rule will be evaluated.

  • lithic_managed (Boolean)

    Indicates whether this auth rule is managed by Lithic. If true, the rule cannot

  • name (String, nil)

    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

  • type (Symbol, Lithic::Models::AuthRules::AuthRule::Type)

    The type of Auth Rule. For certain rule types, this determines the event stream

  • excluded_card_tokens (Array<String>) (defaults to: nil)

    Card tokens to which the Auth Rule does not apply.



# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 94

Instance Attribute Details

#account_tokensArray<String>

Account tokens to which the Auth Rule applies.

Returns:

  • (Array<String>)


18
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 18

required :account_tokens, Lithic::Internal::Type::ArrayOf[String]

#business_account_tokensArray<String>

Business Account tokens to which the Auth Rule applies.

Returns:

  • (Array<String>)


24
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 24

required :business_account_tokens, Lithic::Internal::Type::ArrayOf[String]

#card_tokensArray<String>

Card tokens to which the Auth Rule applies.

Returns:

  • (Array<String>)


30
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 30

required :card_tokens, Lithic::Internal::Type::ArrayOf[String]

#current_versionLithic::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_versionLithic::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_streamSymbol, 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_tokensArray<String>?

Card tokens to which the Auth Rule does not apply.

Returns:

  • (Array<String>, nil)


92
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 92

optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]

#lithic_managedBoolean

Indicates whether this auth rule is managed by Lithic. If true, the rule cannot be modified or deleted by the user

Returns:

  • (Boolean)


53
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 53

required :lithic_managed, Lithic::Internal::Type::Boolean

#nameString?

Auth Rule Name

Returns:

  • (String, nil)


59
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 59

required :name, String, nil?: true

#program_levelBoolean

Whether the Auth Rule applies to all authorizations on the card program.

Returns:

  • (Boolean)


65
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 65

required :program_level, Lithic::Internal::Type::Boolean

#stateSymbol, 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 }

#tokenString

Auth Rule Token

Returns:

  • (String)


12
# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 12

required :token, String

#typeSymbol, 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

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/lithic/models/auth_rules/auth_rule.rb', line 233