Class: WhopSDK::Models::DepositCreateResponse

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

Overview

Defined Under Namespace

Modules: Object Classes: DepositAddress, Destination

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(address:, currency:, network:, account_id: nil) ⇒ Object

Parameters:

  • address (String)
  • currency (String)
  • network (String)
  • account_id (String, nil) (defaults to: nil)


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

Instance Attribute Details

#amountString

Returns:

  • (String)


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

required :amount, String

#deposit_addressWhopSDK::Models::DepositCreateResponse::DepositAddress



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

required :deposit_address, -> { WhopSDK::Models::DepositCreateResponse::DepositAddress }

#destinationWhopSDK::Models::DepositCreateResponse::Destination



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

required :destination, -> { WhopSDK::Models::DepositCreateResponse::Destination }

#hosted_urlString?

Returns:

  • (String, nil)


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

required :hosted_url, String, nil?: true

#metadataHash{Symbol=>Object}

Returns:



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

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

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



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

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