Class: WhopSDK::Models::DepositCreateResponse::Methods::Crypto

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

Defined Under Namespace

Classes: SupportedCurrency

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

#initializeObject



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

def initialize: (

Instance Attribute Details

#deposit_addressString?

Address to send funds to on this network. Null when the provider has not issued one yet.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :deposit_address, String, nil?: true

#icon_urlString?

Network icon URL.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :icon_url, String, nil?: true

#nameString

Network display name, such as Ethereum or Solana.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :name, String

#supported_currenciesArray<WhopSDK::Models::DepositCreateResponse::Methods::Crypto::SupportedCurrency>

Tokens accepted for deposit on this network.



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

required :supported_currencies,
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Models::DepositCreateResponse::Methods::Crypto::SupportedCurrency] }

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {