Class: GOBL::Bill::Line
- 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
-
#charges ⇒ Array<LineCharge>
readonly
Charges applied to this line.
-
#discounts ⇒ Array<LineDiscount>
readonly
Discounts applied to this line.
-
#i ⇒ Integer
readonly
Line number inside the parent (calculated).
-
#item ⇒ GOBL::Org::Item
readonly
Details about what is being sold.
-
#notes ⇒ Array<GOBL::CBC::Note>
readonly
Set of specific notes for this line that may be required for clarification.
-
#quantity ⇒ GOBL::Num::Amount
readonly
Number of items.
-
#sum ⇒ GOBL::Num::Amount
readonly
Result of quantity multiplied by the item’s price (calculated).
-
#taxes ⇒ GOBL::Tax::Set
readonly
Map of taxes to be applied and used in the invoice totals.
-
#total ⇒ GOBL::Num::Amount
readonly
Total line amount after applying discounts to the sum (calculated).
-
#uuid ⇒ String
readonly
Universally Unique Identifier.
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#charges ⇒ Array<LineCharge> (readonly)
Charges applied to this line
50 |
# File 'lib/generated/gobl/bill/line.rb', line 50 property :charges, [LineCharge] |
#discounts ⇒ Array<LineDiscount> (readonly)
Discounts applied to this line
45 |
# File 'lib/generated/gobl/bill/line.rb', line 45 property :discounts, [LineDiscount] |
#i ⇒ Integer (readonly)
Line number inside the parent (calculated)
23 |
# File 'lib/generated/gobl/bill/line.rb', line 23 property :i, Integer |
#item ⇒ GOBL::Org::Item (readonly)
Details about what is being sold
34 |
# File 'lib/generated/gobl/bill/line.rb', line 34 property :item, GOBL::Org::Item |
#notes ⇒ Array<GOBL::CBC::Note> (readonly)
Set of specific notes for this line that may be required for clarification.
65 |
# File 'lib/generated/gobl/bill/line.rb', line 65 property :notes, [GOBL::CBC::Note] |
#quantity ⇒ GOBL::Num::Amount (readonly)
Number of items
28 |
# File 'lib/generated/gobl/bill/line.rb', line 28 property :quantity, GOBL::Num::Amount |
#sum ⇒ GOBL::Num::Amount (readonly)
Result of quantity multiplied by the item’s price (calculated)
40 |
# File 'lib/generated/gobl/bill/line.rb', line 40 property :sum, GOBL::Num::Amount |
#taxes ⇒ GOBL::Tax::Set (readonly)
Map of taxes to be applied and used in the invoice totals
55 |
# File 'lib/generated/gobl/bill/line.rb', line 55 property :taxes, GOBL::Tax::Set |
#total ⇒ GOBL::Num::Amount (readonly)
Total line amount after applying discounts to the sum (calculated).
60 |
# File 'lib/generated/gobl/bill/line.rb', line 60 property :total, GOBL::Num::Amount |
#uuid ⇒ String (readonly)
Universally Unique Identifier.
18 |
# File 'lib/generated/gobl/bill/line.rb', line 18 property :uuid, String |