Class: Privy::Models::PolicyRuleResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/policy_rule_response.rb

Overview

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

Instance Attribute Details

#actionSymbol, Privy::Models::PolicyAction

The action to take when a policy rule matches.

Returns:



16
# File 'lib/privy/models/policy_rule_response.rb', line 16

required :action, enum: -> { Privy::PolicyAction }

#conditionsArray<Privy::Models::EthereumTransactionCondition, Privy::Models::EthereumCalldataCondition, Privy::Models::EthereumTypedDataDomainCondition, Privy::Models::EthereumTypedDataMessageCondition, Privy::Models::Ethereum7702AuthorizationCondition, Privy::Models::TempoTransactionCondition, Privy::Models::SolanaProgramInstructionCondition, Privy::Models::SolanaSystemProgramInstructionCondition, Privy::Models::SolanaTokenProgramInstructionCondition, Privy::Models::SystemCondition, Privy::Models::TronTransactionCondition, Privy::Models::TronCalldataCondition, Privy::Models::SuiTransactionCommandCondition, Privy::Models::SuiTransferObjectsCommandCondition, Privy::Models::ActionRequestBodyCondition, Privy::Models::AggregationCondition>



21
# File 'lib/privy/models/policy_rule_response.rb', line 21

required :conditions, -> { Privy::Internal::Type::ArrayOf[union: Privy::PolicyCondition] }

#idString

Returns:

  • (String)


10
# File 'lib/privy/models/policy_rule_response.rb', line 10

required :id, String

#method_Symbol, Privy::Models::PolicyMethod

Method the rule applies to.

Returns:



27
# File 'lib/privy/models/policy_rule_response.rb', line 27

required :method_, enum: -> { Privy::PolicyMethod }, api_name: :method

#nameString

Returns:

  • (String)


32
# File 'lib/privy/models/policy_rule_response.rb', line 32

required :name, String