Class: GOBL::Tax::CategoryTotal

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

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:



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

property :amount, GOBL::Num::Amount

#codeGOBL::CBC::Code (readonly)

Returns:



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

property :code, GOBL::CBC::Code

#ratesArray<RateTotal> (readonly)

Returns:



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

property :rates, [RateTotal]

#retainedBoolean (readonly)

Returns:

  • (Boolean)


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

property :retained, Boolean

#surchargeGOBL::Num::Amount (readonly)

Returns:



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

property :surcharge, GOBL::Num::Amount