Class: WhopSDK::Models::DepositCreateResponse

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

Overview

See Also:

  • WhopSDK::Resources::Deposits#create

Defined Under Namespace

Modules: Object Classes: Methods

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(icon_url:, name:) ⇒ Object

Parameters:

  • icon_url (String, nil)

    Token icon URL. Null when no icon is available.

  • name (String)

    Token symbol, such as USDC.



# File 'lib/whop_sdk/models/deposit_create_response.rb', line 42

Instance Attribute Details

#account_idString?

Account ID of the destination owner. Null for raw wallet address destinations.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


11
# File 'lib/whop_sdk/models/deposit_create_response.rb', line 11

required :account_id, String, nil?: true

#amountString?

Requested deposit amount.

Parameters:

  • (String)

Returns:

  • (String, nil)


40
# File 'lib/whop_sdk/models/deposit_create_response.rb', line 40

optional :amount, String

#hosted_urlString?

URL of the hosted deposit page. Only present for business destinations.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


17
# File 'lib/whop_sdk/models/deposit_create_response.rb', line 17

required :hosted_url, String, nil?: true

#metadataHash{Symbol=>Object}

Metadata from the request.

Parameters:

  • value (::Hash[Symbol, top])

Returns:



23
# File 'lib/whop_sdk/models/deposit_create_response.rb', line 23

required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown]

#methods_WhopSDK::Models::DepositCreateResponse::Methods

Available deposit methods for destination.



29
# File 'lib/whop_sdk/models/deposit_create_response.rb', line 29

required :methods_, -> { WhopSDK::Models::DepositCreateResponse::Methods }, api_name: :methods

#objectSymbol, WhopSDK::Models::DepositCreateResponse::Object

Parameters:

  • value (WhopSDK::Models::DepositCreateResponse::object)

Returns:



34
# File 'lib/whop_sdk/models/deposit_create_response.rb', line 34

required :object, enum: -> { WhopSDK::Models::DepositCreateResponse::Object }

Instance Method Details

#to_hash{

Returns:

  • ({)


37
# File 'sig/whop_sdk/models/deposit_create_response.rbs', line 37

def to_hash: -> {