Class: Privy::Models::WalletActionSwapFailedWebhookPayload

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/wallet_action_swap_failed_webhook_payload.rb,
sig/privy/models/wallet_action_swap_failed_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:, caip2:, created_at:, failed_at:, failure_reason:, input_amount:, input_token:, output_token:, status:, steps:, type:, wallet_action_id:, wallet_id:) ⇒ Object

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

Payload for the wallet_action.swap.failed webhook event.

Parameters:



# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 85

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_swap_failed_webhook_payload.rb', line 10

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

#caip2String

Chain identifier.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :caip2, String

#created_atString

ISO 8601 timestamp of when the wallet action was created.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :created_at, String

#failed_atString

ISO 8601 timestamp of when the wallet action failed.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :failed_at, 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:



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

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

#input_amountString?

Amount of input token in base units. Populated after onchain confirmation.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :input_amount, String, nil?: true

#input_tokenString

Token address being sold.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :input_token, String

#output_tokenString

Token address being bought.

Parameters:

  • value (String)

Returns:

  • (String)


52
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 52

required :output_token, String

#statusSymbol, Privy::Models::WalletActionSwapFailedWebhookPayload::Status

The status of the wallet action.

Parameters:

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

Returns:



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

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

#typeSymbol, Privy::Models::WalletActionSwapFailedWebhookPayload::Type

The type of webhook event.

Parameters:

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

Returns:



71
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 71

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

#wallet_action_idString

The ID of the wallet action.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :wallet_action_id, String

#wallet_idString

The ID of the wallet involved in the action.

Parameters:

  • value (String)

Returns:

  • (String)


83
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 83

required :wallet_id, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 125

Instance Method Details

#to_hash{

Returns:

  • ({)


63
# File 'sig/privy/models/wallet_action_swap_failed_webhook_payload.rbs', line 63

def to_hash: -> {