Class: WhopSDK::Models::Referrals::Businesses::EarningListResponse::FinancialActivity

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

Defined Under Namespace

Modules: Type

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(amount:, amount_usd:, category:, created_at:, currency:, type:) ⇒ Object

Parameters:



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

Instance Attribute Details

#amountString

Line amount in its native currency.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :amount, String

#amount_usdString

Line amount in USD.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :amount_usd, String

#categoryString?

Fee or cost category of the line.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :category, String, nil?: true

#created_atTime?

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


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

required :created_at, Time, nil?: true

#currencyString

Currency of the native amount.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :currency, String

#typeSymbol, WhopSDK::Models::Referrals::Businesses::EarningListResponse::FinancialActivity::Type

Whether the line is income Whop collected or a cost Whop paid.

Parameters:

  • value (WhopSDK::Models::Referrals::Businesses::EarningListResponse::FinancialActivity::type_)

Returns:



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

required :type,
enum: -> { WhopSDK::Models::Referrals::Businesses::EarningListResponse::FinancialActivity::Type }

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {