Class: GOBL::Tax::Combo

Inherits:
Object show all
Defined in:
lib/generated/gobl/tax/combo.rb

Overview

Combo represents the tax combination of a category code and rate key.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Combo structure

'https://gobl.org/draft-0/tax/set#/$defs/Combo'

Instance Attribute Summary collapse

Method Summary

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#catGOBL::CBC::Code (readonly)

Tax category code from those available inside a region.

Returns:



18
# File 'lib/generated/gobl/tax/combo.rb', line 18

property :cat, GOBL::CBC::Code

#extGOBL::Tax::Extensions (readonly)

Local codes that apply for a given rate or percentage that need to be identified and validated.



39
# File 'lib/generated/gobl/tax/combo.rb', line 39

property :ext, GOBL::Tax::Extensions

#percentGOBL::Num::Percentage (readonly)

Percent defines the percentage set manually or determined from the rate key (calculated if rate present). A nil percent implies that this tax combo is exempt from tax.



29
# File 'lib/generated/gobl/tax/combo.rb', line 29

property :percent, GOBL::Num::Percentage

#rateGOBL::CBC::Key (readonly)

Rate within a category to apply.

Returns:



24
# File 'lib/generated/gobl/tax/combo.rb', line 24

property :rate, GOBL::CBC::Key

#surchargeGOBL::Num::Percentage (readonly)

Some countries require an additional surcharge (calculated if rate present).



34
# File 'lib/generated/gobl/tax/combo.rb', line 34

property :surcharge, GOBL::Num::Percentage