Class: Privy::Models::EarnIncentiveClaimActionResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::EarnIncentiveClaimActionResponse
- Defined in:
- lib/privy/models/earn_incentive_claim_action_response.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#chain ⇒ String
EVM chain name (e.g. “base”, “ethereum”).
-
#created_at ⇒ Time
ISO 8601 timestamp of when the wallet action was created.
-
#failure_reason ⇒ Privy::Models::FailureReason?
A description of why a wallet action (or a step within a wallet action) failed.
-
#id ⇒ String
The ID of the wallet action.
-
#rewards ⇒ Array<Privy::Models::EarnIncetiveClaimRewardEntry>?
Claimed reward tokens.
-
#status ⇒ Symbol, Privy::Models::WalletActionStatus
Status of a wallet action.
-
#steps ⇒ Array<Privy::Models::EvmTransactionWalletActionStep, Privy::Models::EvmUserOperationWalletActionStep, Privy::Models::SvmTransactionWalletActionStep, Privy::Models::ExternalTransactionWalletActionStep>?
The steps of the wallet action.
- #type ⇒ Symbol, Privy::Models::EarnIncentiveClaimActionResponse::Type
-
#wallet_id ⇒ String
The ID of the wallet involved in the action.
Instance Method Summary collapse
-
#initialize(id:, chain:, created_at:, rewards:, status:, type:, wallet_id:, failure_reason: nil, steps: nil) ⇒ Object
constructor
Response for an earn incentive claim action.
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(id:, chain:, created_at:, rewards:, status:, type:, wallet_id:, failure_reason: nil, steps: nil) ⇒ Object
Response for an earn incentive claim action.
|
|
# File 'lib/privy/models/earn_incentive_claim_action_response.rb', line 63
|
Instance Attribute Details
#chain ⇒ String
EVM chain name (e.g. “base”, “ethereum”).
16 |
# File 'lib/privy/models/earn_incentive_claim_action_response.rb', line 16 required :chain, String |
#created_at ⇒ Time
ISO 8601 timestamp of when the wallet action was created.
22 |
# File 'lib/privy/models/earn_incentive_claim_action_response.rb', line 22 required :created_at, Time |
#failure_reason ⇒ Privy::Models::FailureReason?
A description of why a wallet action (or a step within a wallet action) failed.
55 |
# File 'lib/privy/models/earn_incentive_claim_action_response.rb', line 55 optional :failure_reason, -> { Privy::FailureReason } |
#id ⇒ String
The ID of the wallet action.
10 |
# File 'lib/privy/models/earn_incentive_claim_action_response.rb', line 10 required :id, String |
#rewards ⇒ Array<Privy::Models::EarnIncetiveClaimRewardEntry>?
Claimed reward tokens. Populated after the preparation step fetches from Merkl.
28 29 30 31 32 |
# File 'lib/privy/models/earn_incentive_claim_action_response.rb', line 28 required :rewards, -> { Privy::Internal::Type::ArrayOf[Privy::EarnIncetiveClaimRewardEntry] }, nil?: true |
#status ⇒ Symbol, Privy::Models::WalletActionStatus
Status of a wallet action.
38 |
# File 'lib/privy/models/earn_incentive_claim_action_response.rb', line 38 required :status, enum: -> { Privy::WalletActionStatus } |
#steps ⇒ Array<Privy::Models::EvmTransactionWalletActionStep, Privy::Models::EvmUserOperationWalletActionStep, Privy::Models::SvmTransactionWalletActionStep, Privy::Models::ExternalTransactionWalletActionStep>?
The steps of the wallet action. Only returned if ‘?include=steps` is provided.
61 |
# File 'lib/privy/models/earn_incentive_claim_action_response.rb', line 61 optional :steps, -> { Privy::Internal::Type::ArrayOf[union: Privy::WalletActionStep] } |
#type ⇒ Symbol, Privy::Models::EarnIncentiveClaimActionResponse::Type
43 |
# File 'lib/privy/models/earn_incentive_claim_action_response.rb', line 43 required :type, enum: -> { Privy::EarnIncentiveClaimActionResponse::Type } |
#wallet_id ⇒ String
The ID of the wallet involved in the action.
49 |
# File 'lib/privy/models/earn_incentive_claim_action_response.rb', line 49 required :wallet_id, String |