Class: WhopSDK::Models::TransferCreateResponse::ClaimLink

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

Defined Under Namespace

Modules: Object Classes: Source

Instance Attribute Summary collapse

Class Method 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(id:, amount:, claim_url:, currency:, expires_at:, object:, redeemable_count:, source:, status:) ⇒ Object

Returned for a claim_link: a shareable URL anyone can open to claim the funds.

Parameters:



# File 'lib/whop_sdk/models/transfer_create_response.rb', line 413

Instance Attribute Details

#amountString

Parameters:

  • value (String)

Returns:

  • (String)


376
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 376

required :amount, String

#claim_urlString

Parameters:

  • value (String)

Returns:

  • (String)


381
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 381

required :claim_url, String

#currencyString

Parameters:

  • value (String)

Returns:

  • (String)


386
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 386

required :currency, String

#expires_atTime?

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


391
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 391

required :expires_at, Time, nil?: true

#idString

Parameters:

  • value (String)

Returns:

  • (String)


371
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 371

required :id, String

#objectSymbol, WhopSDK::Models::TransferCreateResponse::ClaimLink::Object

Parameters:

  • value (WhopSDK::Models::TransferCreateResponse::ClaimLink::object)

Returns:



396
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 396

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

#redeemable_countInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


401
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 401

required :redeemable_count, Integer

#sourceWhopSDK::Models::TransferCreateResponse::ClaimLink::Source



406
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 406

required :source, -> { WhopSDK::Models::TransferCreateResponse::ClaimLink::Source }

#statusString

Parameters:

  • value (String)

Returns:

  • (String)


411
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 411

required :status, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/whop_sdk/models/transfer_create_response.rb', line 432

Instance Method Details

#to_hash{

Returns:

  • ({)


330
# File 'sig/whop_sdk/models/transfer_create_response.rbs', line 330

def to_hash: -> {