Class: GOBL::Bill::LineCharge
- Defined in:
- lib/generated/gobl/bill/line_charge.rb
Overview
LineCharge represents an amount added to the line, and will be applied before taxes.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL LineCharge structure
'https://gobl.org/draft-0/bill/invoice#/$defs/LineCharge'
Instance Attribute Summary collapse
-
#amount ⇒ GOBL::Num::Amount
readonly
Fixed or resulting charge amount to apply (calculated if percent present).
-
#code ⇒ String
readonly
Reference code.
-
#percent ⇒ GOBL::Num::Percentage
readonly
Percentage if fixed amount not applied.
-
#reason ⇒ String
readonly
Text description as to why the charge was applied.
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#amount ⇒ GOBL::Num::Amount (readonly)
Fixed or resulting charge amount to apply (calculated if percent present).
24 |
# File 'lib/generated/gobl/bill/line_charge.rb', line 24 property :amount, GOBL::Num::Amount |
#code ⇒ String (readonly)
Reference code.
29 |
# File 'lib/generated/gobl/bill/line_charge.rb', line 29 property :code, String |
#percent ⇒ GOBL::Num::Percentage (readonly)
Percentage if fixed amount not applied
19 |
# File 'lib/generated/gobl/bill/line_charge.rb', line 19 property :percent, GOBL::Num::Percentage |
#reason ⇒ String (readonly)
Text description as to why the charge was applied
34 |
# File 'lib/generated/gobl/bill/line_charge.rb', line 34 property :reason, String |