Class: GrowsurfRuby::Models::RewardTaxValuation
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- GrowsurfRuby::Models::RewardTaxValuation
- Defined in:
- lib/growsurf_ruby/models/reward_tax_valuation.rb,
sig/growsurf_ruby/models/reward_tax_valuation.rbs
Instance Attribute Summary collapse
-
#fair_market_value_usd ⇒ Float?
Manual fair-market value in USD (major units) used as the fallback when the reward value cannot be resolved automatically.
-
#is_tax_reportable ⇒ Boolean?
Whether the reward's value counts toward 1099 thresholds/totals.
Instance Method Summary collapse
-
#initialize(fair_market_value_usd: nil, is_tax_reportable: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see RewardTaxValuation for more details.
- #to_hash ⇒ { fair_market_value_usd: Float?, is_tax_reportable: bool? }
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.
|
|
# File 'lib/growsurf_ruby/models/reward_tax_valuation.rb', line 23
|
Instance Attribute Details
#fair_market_value_usd ⇒ Float?
Manual fair-market value in USD (major units) used as the fallback when the
reward value cannot be resolved automatically. null = no manual value.
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_reportable ⇒ Boolean?
Whether the reward's value counts toward 1099 thresholds/totals. null = use
the smart default for the reward's source.
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? }
16 |
# File 'sig/growsurf_ruby/models/reward_tax_valuation.rbs', line 16
def to_hash: -> { fair_market_value_usd: Float?, is_tax_reportable: bool? }
|