Class: Privy::Models::WalletActionTransferRejectedWebhookPayload

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb,
sig/privy/models/wallet_action_transfer_rejected_webhook_payload.rbs

Defined Under Namespace

Modules: Status, Type

Instance Attribute Summary collapse

Class Method 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(action_type:, created_at:, destination_address:, failure_reason:, rejected_at:, source_chain:, status:, steps:, type:, wallet_action_id:, wallet_id:, source_amount: nil, source_asset: nil, source_asset_address: nil, source_asset_decimals: nil) ⇒ Object

Some parameter documentations has been truncated, see Privy::Models::WalletActionTransferRejectedWebhookPayload for more details.

Payload for the wallet_action.transfer.rejected webhook event.

Parameters:



# File 'lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb', line 100

Instance Attribute Details

#action_typeSymbol, Privy::Models::Wallets::WalletActionType

Type of wallet action

Parameters:

  • value (Privy::Models::Wallets::wallet_action_type)

Returns:



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

required :action_type, enum: -> { Privy::Wallets::WalletActionType }

#created_atString

ISO 8601 timestamp of when the wallet action was created.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :created_at, String

#destination_addressString

Recipient address.

Parameters:

  • value (String)

Returns:

  • (String)


22
# File 'lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb', line 22

required :destination_address, String

#failure_reasonPrivy::Models::Wallets::FailureReason

A description of why a wallet action (or a step within a wallet action) failed.

Parameters:

  • value (Privy::Wallets::FailureReason)

Returns:



28
# File 'lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb', line 28

required :failure_reason, -> { Privy::Wallets::FailureReason }

#rejected_atString

ISO 8601 timestamp of when the wallet action was rejected.

Parameters:

  • value (String)

Returns:

  • (String)


34
# File 'lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb', line 34

required :rejected_at, String

#source_amountString?

Decimal amount sent on the source chain (e.g. "1.5"). Omitted for exact_output cross-chain transfers until the source amount is determined.

Parameters:

  • (String)

Returns:

  • (String, nil)


77
# File 'lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb', line 77

optional :source_amount, String

#source_assetString?

Asset identifier (e.g. "usdc", "eth"). Present when the transfer was initiated with a named asset; omitted for custom-token transfers.

Parameters:

  • (String)

Returns:

  • (String, nil)


84
# File 'lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb', line 84

optional :source_asset, String

#source_asset_addressString?

Token contract address (EVM) or mint address (Solana). Present when the transfer was initiated with asset_address.

Parameters:

  • (String)

Returns:

  • (String, nil)


91
# File 'lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb', line 91

optional :source_asset_address, String

#source_asset_decimalsInteger?

Number of decimals for the transferred token. Present when the transfer was initiated with asset_address and the decimals were resolved onchain.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


98
# File 'lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb', line 98

optional :source_asset_decimals, Integer

#source_chainString

Chain name (e.g. "base", "ethereum").

Parameters:

  • value (String)

Returns:

  • (String)


40
# File 'lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb', line 40

required :source_chain, String

#statusSymbol, Privy::Models::WalletActionTransferRejectedWebhookPayload::Status

The status of the wallet action.

Parameters:

  • value (Privy::Models::WalletActionTransferRejectedWebhookPayload::status)

Returns:



46
# File 'lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb', line 46

required :status, enum: -> { Privy::WalletActionTransferRejectedWebhookPayload::Status }

#typeSymbol, Privy::Models::WalletActionTransferRejectedWebhookPayload::Type

The type of webhook event.

Parameters:

  • value (Privy::Models::WalletActionTransferRejectedWebhookPayload::type_)

Returns:



58
# File 'lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb', line 58

required :type, enum: -> { Privy::WalletActionTransferRejectedWebhookPayload::Type }

#wallet_action_idString

The ID of the wallet action.

Parameters:

  • value (String)

Returns:

  • (String)


64
# File 'lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb', line 64

required :wallet_action_id, String

#wallet_idString

The ID of the wallet involved in the action.

Parameters:

  • value (String)

Returns:

  • (String)


70
# File 'lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb', line 70

required :wallet_id, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb', line 144

Instance Method Details

#to_hash{

Returns:

  • ({)


79
# File 'sig/privy/models/wallet_action_transfer_rejected_webhook_payload.rbs', line 79

def to_hash: -> {