Class: GOBL::Tax::RateTotal

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

Overview

RateTotal contains a sum of all the tax rates in the document with a matching category and rate.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL RateTotal structure

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

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)

Total amount of rate, excluding surcharges

Returns:



45
# File 'lib/generated/gobl/tax/rate_total.rb', line 45

property :amount, GOBL::Num::Amount

#baseGOBL::Num::Amount (readonly)

Base amount that the percentage is applied to.

Returns:



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

property :base, GOBL::Num::Amount

#extGOBL::CBC::CodeMap (readonly)

If the rate is defined with extensions, they’ll be used to group by also.

Returns:



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

property :ext, GOBL::CBC::CodeMap

#keyGOBL::CBC::Key (readonly)

Optional rate key is required when grouping.

Returns:



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

property :key, GOBL::CBC::Key

#percentGOBL::Num::Percentage (readonly)

Percentage of the rate, which may be nil for exempt rates.



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

property :percent, GOBL::Num::Percentage

#surchargeRateTotalSurcharge (readonly)

Surcharge applied to the rate.

Returns:



40
# File 'lib/generated/gobl/tax/rate_total.rb', line 40

property :surcharge, RateTotalSurcharge