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

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

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(deposit_address:, icon_url:, name:, supported_currencies:) ⇒ SupportedCurrency

Some parameter documentations has been truncated, see WhopSDK::Models::DepositCreateResponse::Methods::Crypto for more details.

Parameters:

  • deposit_address (String, nil)

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

  • icon_url (String, nil)

    Network icon URL.

  • name (String)

    Network display name, such as Ethereum or Solana.

  • supported_currencies (Array<WhopSDK::Models::DepositCreateResponse::Methods::Crypto::SupportedCurrency>)

    Tokens accepted for deposit on this network.

  • icon_url: (String, nil)
  • name: (String)


196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# File 'lib/whop_sdk/models/deposit_create_response.rb', line 196

class SupportedCurrency < WhopSDK::Internal::Type::BaseModel
  # @!attribute icon_url
  #   Token icon URL. Null when no icon is available.
  #
  #   @return [String, nil]
  required :icon_url, String, nil?: true

  # @!attribute name
  #   Token symbol, such as `USDC`.
  #
  #   @return [String]
  required :name, String

  # @!method initialize(icon_url:, name:)
  #   @param icon_url [String, nil] Token icon URL. Null when no icon is available.
  #
  #   @param name [String] Token symbol, such as `USDC`.
end

Instance Attribute Details

#icon_urlString?

Token icon URL. Null when no icon is available.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :icon_url, String, nil?: true

#nameString

Token symbol, such as USDC.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :name, String

Instance Method Details

#to_hash{ icon_url: String?, name: String }

Returns:

  • ({ icon_url: String?, name: String })


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

def to_hash: -> { icon_url: String?, name: String }