Class: GOBL::Tax::CategoryTotal

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

Overview

CategoryTotal groups together all rates inside a given category.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL CategoryTotal structure

'https://gobl.org/draft-0/tax/total#/$defs/CategoryTotal'

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

#amountGOBL::Num::Amount (readonly)

Returns:



37
# File 'lib/gobl/tax/category_total.rb', line 37

property :amount, GOBL::Num::Amount

#baseGOBL::Num::Amount (readonly)

Returns:



32
# File 'lib/gobl/tax/category_total.rb', line 32

property :base, GOBL::Num::Amount

#codeGOBL::CBC::Code (readonly)

Returns:



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

property :code, GOBL::CBC::Code

#ratesArray<RateTotal> (readonly)

Returns:



27
# File 'lib/gobl/tax/category_total.rb', line 27

property :rates, [RateTotal]

#retainedBoolean (readonly)

Returns:



23
# File 'lib/gobl/tax/category_total.rb', line 23

property :retained, Boolean

#surchargeGOBL::Num::Amount (readonly)

Returns:



42
# File 'lib/gobl/tax/category_total.rb', line 42

property :surcharge, GOBL::Num::Amount