Class: Vatsense::Models::TaxRate
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Vatsense::Models::TaxRate
- Defined in:
- lib/vatsense/models/tax_rate.rb
Direct Known Subclasses
Defined Under Namespace
Instance Attribute Summary collapse
-
#class_ ⇒ String?
The rate class (e.g. “standard”, “reduced”, “zero”).
-
#description ⇒ String?
A description of what goods/services this rate applies to.
- #object ⇒ Symbol, ...
-
#rate ⇒ Float?
The tax rate percentage.
-
#types ⇒ String, ...
Comma-separated list of product types this rate applies to, or false if it applies generally.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(class_: nil, description: nil, object: nil, rate: nil, types: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see TaxRate for more details.
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(class_: nil, description: nil, object: nil, rate: nil, types: nil) ⇒ Object
Some parameter documentations has been truncated, see Vatsense::Models::TaxRate for more details.
|
|
# File 'lib/vatsense/models/tax_rate.rb', line 36
|
Instance Attribute Details
#class_ ⇒ String?
The rate class (e.g. “standard”, “reduced”, “zero”).
10 |
# File 'lib/vatsense/models/tax_rate.rb', line 10 optional :class_, String, api_name: :class |
#description ⇒ String?
A description of what goods/services this rate applies to.
16 |
# File 'lib/vatsense/models/tax_rate.rb', line 16 optional :description, String |
#object ⇒ Symbol, ...
21 |
# File 'lib/vatsense/models/tax_rate.rb', line 21 optional :object, enum: -> { Vatsense::TaxRate::Object } |
#rate ⇒ Float?
The tax rate percentage.
27 |
# File 'lib/vatsense/models/tax_rate.rb', line 27 optional :rate, Float |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/vatsense/models/tax_rate.rb', line 56
|