Class: WhopSDK::Models::Referrals::Businesses::EarningListResponse::Resource::AlternativePaymentMethod

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/whop_sdk/models/referrals/businesses/earning_list_response.rb,
sig/whop_sdk/models/referrals/businesses/earning_list_response.rbs

Overview

See Also:

  • WhopSDK::Models::Referrals::Businesses::EarningListResponse::Resource#alternative_payment_method

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

#initializeAlternativePaymentMethod

Returns a new instance of AlternativePaymentMethod.

Parameters:

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


254
# File 'sig/whop_sdk/models/referrals/businesses/earning_list_response.rbs', line 254

def initialize: (image_url: String?, name: String) -> void

Instance Attribute Details

#image_urlString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


329
# File 'lib/whop_sdk/models/referrals/businesses/earning_list_response.rb', line 329

required :image_url, String, nil?: true

#nameString

Parameters:

  • value (String)

Returns:

  • (String)


334
# File 'lib/whop_sdk/models/referrals/businesses/earning_list_response.rb', line 334

required :name, String

Instance Method Details

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

Returns:

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


256
# File 'sig/whop_sdk/models/referrals/businesses/earning_list_response.rbs', line 256

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