Class: GOBL::Tax::Total

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

Overview

Total contains a set of Category Totals which in turn contain all the accumulated taxes contained in the document.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Total structure

'https://gobl.org/draft-0/tax/total'

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

#categoriesArray<CategoryTotal> (readonly)

Grouping of all the taxes by their category

Returns:



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

property :categories, [CategoryTotal]

#sumGOBL::Num::Amount (readonly)

Total value of all the taxes applied.

Returns:



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

property :sum, GOBL::Num::Amount