Class: Privy::Models::YieldClaimConfirmedWebhookPayload::Reward

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

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

Constructor Details

#initialize(caip2:, rewards:, transaction_id:, type:, wallet_id:) ⇒ Object

Payload for the yield.claim.confirmed webhook event.

Parameters:



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/privy/models/yield_claim_confirmed_webhook_payload.rb', line 45

class Reward < Privy::Internal::Type::BaseModel
  # @!attribute amount
  #
  #   @return [String]
  required :amount, String

  # @!attribute token_address
  #
  #   @return [String]
  required :token_address, String

  # @!attribute token_symbol
  #
  #   @return [String]
  required :token_symbol, String

  # @!method initialize(amount:, token_address:, token_symbol:)
  #   @param amount [String]
  #   @param token_address [String]
  #   @param token_symbol [String]
end

Instance Attribute Details

#amountString

Returns:

  • (String)


49
# File 'lib/privy/models/yield_claim_confirmed_webhook_payload.rb', line 49

required :amount, String

#token_addressString

Returns:

  • (String)


54
# File 'lib/privy/models/yield_claim_confirmed_webhook_payload.rb', line 54

required :token_address, String

#token_symbolString

Returns:

  • (String)


59
# File 'lib/privy/models/yield_claim_confirmed_webhook_payload.rb', line 59

required :token_symbol, String