Class: GrowsurfRuby::Models::RewardTaxValuation

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

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(fair_market_value_usd: nil, is_tax_reportable: nil) ⇒ Object

Some parameter documentations has been truncated, see GrowsurfRuby::Models::RewardTaxValuation for more details.

Tax valuation settings for a reward. Only relevant when the program collects tax documentation.

Parameters:

  • fair_market_value_usd (Float, nil) (defaults to: nil)

    Manual fair-market value in USD (major units) used as the fallback when the rewa

  • is_tax_reportable (Boolean, nil) (defaults to: nil)

    Whether the reward's value counts toward 1099 thresholds/totals. null = use th



# File 'lib/growsurf_ruby/models/reward_tax_valuation.rb', line 23

Instance Attribute Details

#fair_market_value_usdFloat?

Manual fair-market value in USD (major units) used as the fallback when the reward value cannot be resolved automatically. null = no manual value.

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


11
# File 'lib/growsurf_ruby/models/reward_tax_valuation.rb', line 11

optional :fair_market_value_usd, Float, api_name: :fairMarketValueUSD, nil?: true

#is_tax_reportableBoolean?

Whether the reward's value counts toward 1099 thresholds/totals. null = use the smart default for the reward's source.

Parameters:

  • value (Boolean, nil)

Returns:

  • (Boolean, nil)


18
19
20
21
# File 'lib/growsurf_ruby/models/reward_tax_valuation.rb', line 18

optional :is_tax_reportable,
GrowsurfRuby::Internal::Type::Boolean,
api_name: :isTaxReportable,
nil?: true

Instance Method Details

#to_hash{ fair_market_value_usd: Float?, is_tax_reportable: bool? }

Returns:

  • ({ fair_market_value_usd: Float?, is_tax_reportable: bool? })


16
# File 'sig/growsurf_ruby/models/reward_tax_valuation.rbs', line 16

def to_hash: -> { fair_market_value_usd: Float?, is_tax_reportable: bool? }