Class: GOBL::Bill::Line

Inherits:
Object show all
Defined in:
lib/generated/gobl/bill/line.rb

Overview

Line is a single row in an invoice.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Line structure

'https://gobl.org/draft-0/bill/invoice#/$defs/Line'

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

#chargesArray<LineCharge> (readonly)

Charges applied to this line

Returns:



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

property :charges, [LineCharge]

#discountsArray<LineDiscount> (readonly)

Discounts applied to this line

Returns:



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

property :discounts, [LineDiscount]

#iInteger (readonly)

Line number inside the parent (calculated)

Returns:

  • (Integer)


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

property :i, Integer

#itemGOBL::Org::Item (readonly)

Details about what is being sold

Returns:



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

property :item, GOBL::Org::Item

#notesArray<GOBL::CBC::Note> (readonly)

Set of specific notes for this line that may be required for clarification.

Returns:



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

property :notes, [GOBL::CBC::Note]

#quantityGOBL::Num::Amount (readonly)

Number of items

Returns:



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

property :quantity, GOBL::Num::Amount

#sumGOBL::Num::Amount (readonly)

Result of quantity multiplied by the item’s price (calculated)

Returns:



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

property :sum, GOBL::Num::Amount

#taxesGOBL::Tax::Set (readonly)

Map of taxes to be applied and used in the invoice totals

Returns:



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

property :taxes, GOBL::Tax::Set

#totalGOBL::Num::Amount (readonly)

Total line amount after applying discounts to the sum (calculated).

Returns:



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

property :total, GOBL::Num::Amount

#uuidString (readonly)

Universally Unique Identifier.

Returns:

  • (String)


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

property :uuid, String