Class: Privy::Models::PolicyIntentResponse

Inherits:
BaseIntentResponse show all
Defined in:
lib/privy/models/policy_intent_response.rb

Overview

Defined Under Namespace

Modules: IntentType Classes: RequestDetails

Instance Attribute Summary collapse

Attributes inherited from BaseIntentResponse

#authorization_details, #created_at, #created_by_display_name, #created_by_id, #custom_expiry, #dismissal_reason, #dismissed_at, #expires_at, #intent_id, #rejected_at, #resource_id, #status

Class Method Summary collapse

Methods inherited from BaseIntentResponse

#initialize

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Privy::Models::BaseIntentResponse

Instance Attribute Details

#action_resultPrivy::Models::BaseActionResult?

Result of policy update execution (only present if status is ‘executed’ or ‘failed’)



23
# File 'lib/privy/models/policy_intent_response.rb', line 23

optional :action_result, -> { Privy::BaseActionResult }

#current_resource_dataPrivy::Models::Policy?

A policy for controlling wallet operations.

Returns:



29
# File 'lib/privy/models/policy_intent_response.rb', line 29

optional :current_resource_data, -> { Privy::Policy }

#intent_typeSymbol, Privy::Models::PolicyIntentResponse::IntentType



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

required :intent_type, enum: -> { Privy::PolicyIntentResponse::IntentType }

#request_detailsPrivy::Models::PolicyIntentResponse::RequestDetails

The original policy update request that would be sent to the policy endpoint



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

required :request_details, -> { Privy::PolicyIntentResponse::RequestDetails }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/privy/models/policy_intent_response.rb', line 50