Class: Privy::Models::WalletActionSwapFailedWebhookPayload
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::WalletActionSwapFailedWebhookPayload
- Defined in:
- lib/privy/models/wallet_action_swap_failed_webhook_payload.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#action_type ⇒ Symbol, Privy::Models::WalletActionType
Type of wallet action.
-
#caip2 ⇒ String
Chain identifier.
-
#failure_reason ⇒ Privy::Models::FailureReason
A description of why a wallet action (or a step within a wallet action) failed.
-
#input_amount ⇒ String?
Amount of input token in base units.
-
#input_token ⇒ String
Token address being sold.
-
#output_token ⇒ String
Token address being bought.
-
#status ⇒ Symbol, Privy::Models::WalletActionSwapFailedWebhookPayload::Status
The status of the 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::WalletActionSwapFailedWebhookPayload::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:, caip2:, failure_reason:, input_amount:, input_token:, output_token:, status:, steps:, type:, wallet_action_id:, wallet_id:) ⇒ Object
constructor
Some parameter documentations has been truncated, see WalletActionSwapFailedWebhookPayload for more details.
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:, 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.
|
|
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 73
|
Instance Attribute Details
#action_type ⇒ Symbol, Privy::Models::WalletActionType
Type of wallet action
10 |
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 10 required :action_type, enum: -> { Privy::WalletActionType } |
#caip2 ⇒ String
Chain identifier.
16 |
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 16 required :caip2, String |
#failure_reason ⇒ Privy::Models::FailureReason
A description of why a wallet action (or a step within a wallet action) failed.
22 |
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 22 required :failure_reason, -> { Privy::FailureReason } |
#input_amount ⇒ String?
Amount of input token in base units. Populated after on-chain confirmation.
28 |
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 28 required :input_amount, String, nil?: true |
#input_token ⇒ String
Token address being sold.
34 |
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 34 required :input_token, String |
#output_token ⇒ String
Token address being bought.
40 |
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 40 required :output_token, String |
#status ⇒ Symbol, Privy::Models::WalletActionSwapFailedWebhookPayload::Status
The status of the wallet action.
46 |
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 46 required :status, enum: -> { Privy::WalletActionSwapFailedWebhookPayload::Status } |
#steps ⇒ Array<Privy::Models::EvmTransactionWalletActionStep, Privy::Models::EvmUserOperationWalletActionStep, Privy::Models::SvmTransactionWalletActionStep, Privy::Models::ExternalTransactionWalletActionStep>
The steps of the wallet action. Completed steps will have transaction hashes; the failing step will have a failure_reason.
53 |
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 53 required :steps, -> { Privy::Internal::Type::ArrayOf[union: Privy::WalletActionStep] } |
#type ⇒ Symbol, Privy::Models::WalletActionSwapFailedWebhookPayload::Type
The type of webhook event.
59 |
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 59 required :type, enum: -> { Privy::WalletActionSwapFailedWebhookPayload::Type } |
#wallet_action_id ⇒ String
The ID of the wallet action.
65 |
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 65 required :wallet_action_id, String |
#wallet_id ⇒ String
The ID of the wallet involved in the action.
71 |
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 71 required :wallet_id, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/privy/models/wallet_action_swap_failed_webhook_payload.rb', line 109
|