Class: GOBL::Tax::Combo

Inherits:
Object show all
Defined in:
lib/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'

Constants included from Hashme

Hashme::Boolean

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:



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

property :cat, GOBL::CBC::Code

#percentGOBL::Num::Percentage (readonly)

Percent defines the percentage set manually or determined from the rate key (calculated if rate present).



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

property :percent, GOBL::Num::Percentage

#rateGOBL::CBC::Key (readonly)

Rate within a category to apply.

Returns:



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

property :rate, GOBL::CBC::Key

#surchargeGOBL::Num::Percentage (readonly)

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



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

property :surcharge, GOBL::Num::Percentage