Class: WhopSDK::Models::Referrals::Businesses::EarningListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/whop_sdk/models/referrals/businesses/earning_list_params.rb,
sig/whop_sdk/models/referrals/businesses/earning_list_params.rbs

Overview

See Also:

  • WhopSDK::Resources::Referrals::Businesses::Earnings#list

Defined Under Namespace

Modules: Direction, Order, Status

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, status: nil, request_options: {}) ⇒ Object

Parameters:



# File 'lib/whop_sdk/models/referrals/businesses/earning_list_params.rb', line 67

Instance Attribute Details

#afterString?

Parameters:

  • (String)

Returns:

  • (String, nil)


20
# File 'lib/whop_sdk/models/referrals/businesses/earning_list_params.rb', line 20

optional :after, String

#beforeString?

Parameters:

  • (String)

Returns:

  • (String, nil)


25
# File 'lib/whop_sdk/models/referrals/businesses/earning_list_params.rb', line 25

optional :before, String

#created_afterString?

Only return earnings created after this timestamp.

Parameters:

  • (String)

Returns:

  • (String, nil)


31
# File 'lib/whop_sdk/models/referrals/businesses/earning_list_params.rb', line 31

optional :created_after, String

#created_beforeString?

Only return earnings created before this timestamp.

Parameters:

  • (String)

Returns:

  • (String, nil)


37
# File 'lib/whop_sdk/models/referrals/businesses/earning_list_params.rb', line 37

optional :created_before, String

#directionSymbol, ...

Sort direction.



43
# File 'lib/whop_sdk/models/referrals/businesses/earning_list_params.rb', line 43

optional :direction, enum: -> { WhopSDK::Referrals::Businesses::EarningListParams::Direction }

#firstInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


48
# File 'lib/whop_sdk/models/referrals/businesses/earning_list_params.rb', line 48

optional :first, Integer

#idString

Parameters:

  • value (String)

Returns:

  • (String)


15
# File 'lib/whop_sdk/models/referrals/businesses/earning_list_params.rb', line 15

required :id, String

#lastInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


53
# File 'lib/whop_sdk/models/referrals/businesses/earning_list_params.rb', line 53

optional :last, Integer

#orderSymbol, ...

The field to sort earnings by.



59
# File 'lib/whop_sdk/models/referrals/businesses/earning_list_params.rb', line 59

optional :order, enum: -> { WhopSDK::Referrals::Businesses::EarningListParams::Order }

#statusSymbol, ...

Filter by earning status.



65
# File 'lib/whop_sdk/models/referrals/businesses/earning_list_params.rb', line 65

optional :status, enum: -> { WhopSDK::Referrals::Businesses::EarningListParams::Status }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/whop_sdk/models/referrals/businesses/earning_list_params.rb', line 97

Instance Method Details

#to_hash{

Returns:

  • ({)


82
# File 'sig/whop_sdk/models/referrals/businesses/earning_list_params.rbs', line 82

def to_hash: -> {