Class: GOBL::Tax::RateTotalSurcharge

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

Overview

RateTotalSurcharge reflects the sum surcharges inside the rate.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL RateTotalSurcharge structure

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

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:



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

property :amount, GOBL::Num::Amount

#percentGOBL::Num::Percentage (readonly)



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

property :percent, GOBL::Num::Percentage