Class: GOBL::Bill::LineCharge

Inherits:
Object show all
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

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)

Fixed or resulting charge amount to apply (calculated if percent present).

Returns:



24
# File 'lib/generated/gobl/bill/line_charge.rb', line 24

property :amount, GOBL::Num::Amount

#codeString (readonly)

Reference code.

Returns:

  • (String)


29
# File 'lib/generated/gobl/bill/line_charge.rb', line 29

property :code, String

#percentGOBL::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

#reasonString (readonly)

Text description as to why the charge was applied

Returns:

  • (String)


34
# File 'lib/generated/gobl/bill/line_charge.rb', line 34

property :reason, String