Class: Onlyfans::Models::Analytics::Financial::TransactionGetSummaryResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/analytics/financial/transaction_get_summary_response.rb,
sig/onlyfans/models/analytics/financial/transaction_get_summary_response.rbs

Overview

See Also:

  • Onlyfans::Resources::Analytics::Financial::Transactions#get_summary

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(disputed_count: nil, refunded_count: nil, succeeded_count: nil, total_fees: nil, total_gross: nil, total_net: nil) ⇒ Object

Parameters:

  • disputed_count (Integer) (defaults to: nil)
  • refunded_count (Integer) (defaults to: nil)
  • succeeded_count (Integer) (defaults to: nil)
  • total_fees (Float) (defaults to: nil)
  • total_gross (Float) (defaults to: nil)
  • total_net (Float) (defaults to: nil)


# File 'lib/onlyfans/models/analytics/financial/transaction_get_summary_response.rb', line 39

Instance Attribute Details

#disputed_count ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


12
# File 'lib/onlyfans/models/analytics/financial/transaction_get_summary_response.rb', line 12

optional :disputed_count, Integer

#refunded_count ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


17
# File 'lib/onlyfans/models/analytics/financial/transaction_get_summary_response.rb', line 17

optional :refunded_count, Integer

#succeeded_count ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


22
# File 'lib/onlyfans/models/analytics/financial/transaction_get_summary_response.rb', line 22

optional :succeeded_count, Integer

#total_fees ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


27
# File 'lib/onlyfans/models/analytics/financial/transaction_get_summary_response.rb', line 27

optional :total_fees, Float

#total_gross ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


32
# File 'lib/onlyfans/models/analytics/financial/transaction_get_summary_response.rb', line 32

optional :total_gross, Float

#total_net ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


37
# File 'lib/onlyfans/models/analytics/financial/transaction_get_summary_response.rb', line 37

optional :total_net, Float

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


49
# File 'sig/onlyfans/models/analytics/financial/transaction_get_summary_response.rbs', line 49

def to_hash: -> {