Class: Privy::Models::WalletActionEarnIncentiveClaimCreatedWebhookPayload
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::WalletActionEarnIncentiveClaimCreatedWebhookPayload
- Defined in:
- lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb,
sig/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#action_type ⇒ Symbol, Privy::Models::Wallets::WalletActionType
Type of wallet action.
-
#chain ⇒ String
EVM chain name (e.g. "base", "ethereum").
-
#created_at ⇒ String
ISO 8601 timestamp of when the wallet action was created.
-
#rewards ⇒ Array<Privy::Models::Wallets::EarnIncetiveClaimRewardEntry>?
Claimed reward tokens.
-
#status ⇒ Symbol, Privy::Models::WalletActionEarnIncentiveClaimCreatedWebhookPayload::Status
The status of the wallet action.
-
#type ⇒ Symbol, Privy::Models::WalletActionEarnIncentiveClaimCreatedWebhookPayload::Type
The type of webhook event.
-
#wallet_action_id ⇒ String
The ID of the wallet action.
-
#wallet_id ⇒ String
The ID of the wallet involved in the action.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action_type:, chain:, created_at:, rewards:, status:, type:, wallet_action_id:, wallet_id:) ⇒ Object
constructor
Payload for the wallet_action.earn_incentive_claim.created webhook event.
- #to_hash ⇒ {
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(action_type:, chain:, created_at:, rewards:, status:, type:, wallet_action_id:, wallet_id:) ⇒ Object
Payload for the wallet_action.earn_incentive_claim.created webhook event.
|
|
# File 'lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb', line 56
|
Instance Attribute Details
#action_type ⇒ Symbol, Privy::Models::Wallets::WalletActionType
Type of wallet action
10 |
# File 'lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb', line 10 required :action_type, enum: -> { Privy::Wallets::WalletActionType } |
#chain ⇒ String
EVM chain name (e.g. "base", "ethereum").
16 |
# File 'lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb', line 16 required :chain, String |
#created_at ⇒ String
ISO 8601 timestamp of when the wallet action was created.
22 |
# File 'lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb', line 22 required :created_at, String |
#rewards ⇒ Array<Privy::Models::Wallets::EarnIncetiveClaimRewardEntry>?
Claimed reward tokens. Populated after the preparation step fetches from Merkl.
28 29 30 |
# File 'lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb', line 28 required :rewards, -> { Privy::Internal::Type::ArrayOf[Privy::Wallets::EarnIncetiveClaimRewardEntry] }, nil?: true |
#status ⇒ Symbol, Privy::Models::WalletActionEarnIncentiveClaimCreatedWebhookPayload::Status
The status of the wallet action.
36 |
# File 'lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb', line 36 required :status, enum: -> { Privy::WalletActionEarnIncentiveClaimCreatedWebhookPayload::Status } |
#type ⇒ Symbol, Privy::Models::WalletActionEarnIncentiveClaimCreatedWebhookPayload::Type
The type of webhook event.
42 |
# File 'lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb', line 42 required :type, enum: -> { Privy::WalletActionEarnIncentiveClaimCreatedWebhookPayload::Type } |
#wallet_action_id ⇒ String
The ID of the wallet action.
48 |
# File 'lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb', line 48 required :wallet_action_id, String |
#wallet_id ⇒ String
The ID of the wallet involved in the action.
54 |
# File 'lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb', line 54 required :wallet_id, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb', line 83
|
Instance Method Details
#to_hash ⇒ {
43 |
# File 'sig/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rbs', line 43
def to_hash: -> {
|