Class: GOBL::Bill::Invoice
- Defined in:
- lib/gobl/bill/invoice.rb
Overview
Invoice represents a payment claim for goods or services supplied under conditions agreed between the supplier and the customer.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL Invoice structure
'https://gobl.org/draft-0/bill/invoice'
Constants included from Hashme
Instance Attribute Summary collapse
-
#charges ⇒ Array<Charge>
readonly
Charges or surcharges applied to the complete invoice.
-
#code ⇒ String
readonly
Sequential code used to identify this invoice in tax declarations.
-
#currency ⇒ GOBL::Currency::Code
readonly
Currency for all invoice totals.
-
#customer ⇒ GOBL::Org::Party
readonly
Legal entity receiving the goods or services, may be empty in certain circumstances such as simplified invoices.
- #delivery ⇒ Delivery readonly
-
#discounts ⇒ Array<Discount>
readonly
Discounts or allowances applied to the complete invoice.
-
#exchange_rates ⇒ ExchangeRates
readonly
Exchange rates to be used when converting the invoices monetary values into other currencies.
-
#issue_date ⇒ GOBL::Cal::Date
readonly
When the invoice was created.
-
#lines ⇒ Array<Line>
readonly
List of invoice lines representing each of the items sold to the customer.
-
#meta ⇒ GOBL::CBC::Meta
readonly
Additional semi-structured data that doesn’t fit into the body of the invoice.
-
#notes ⇒ Array<GOBL::CBC::Note>
readonly
Unstructured information that is relevant to the invoice, such as correction or additional legal details.
-
#op_date ⇒ GOBL::Cal::Date
readonly
Date when the operation defined by the invoice became effective.
- #ordering ⇒ Ordering readonly
-
#outlays ⇒ Array<Outlay>
readonly
Expenses paid for by the supplier but invoiced directly to the customer.
- #payment ⇒ Payment readonly
-
#preceding ⇒ Array<Preceding>
readonly
Key information regarding previous invoices and potentially details as to why they were corrected.
-
#series ⇒ String
readonly
Used in addition to the Code in some regions.
-
#supplier ⇒ GOBL::Org::Party
readonly
The taxable entity supplying the goods or services.
-
#tax ⇒ Tax
readonly
Special tax configuration for billing.
-
#totals ⇒ Totals
readonly
Summary of all the invoice totals, including taxes (calculated).
-
#type ⇒ InvoiceType
readonly
Optional invoice type, leave empty unless needed for a specific situation.
-
#uuid ⇒ GOBL::UUID::UUID
readonly
Unique document ID.
-
#value_date ⇒ GOBL::Cal::Date
readonly
When the taxes of this invoice become accountable, if none set, the issue date is used.
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#charges ⇒ Array<Charge> (readonly)
Charges or surcharges applied to the complete invoice
98 |
# File 'lib/gobl/bill/invoice.rb', line 98 property :charges, [Charge] |
#code ⇒ String (readonly)
Sequential code used to identify this invoice in tax declarations.
24 |
# File 'lib/gobl/bill/invoice.rb', line 24 property :code, String |
#currency ⇒ GOBL::Currency::Code (readonly)
Currency for all invoice totals.
40 |
# File 'lib/gobl/bill/invoice.rb', line 40 property :currency, GOBL::Currency::Code |
#customer ⇒ GOBL::Org::Party (readonly)
Legal entity receiving the goods or services, may be empty in certain circumstances such as simplified invoices.
83 |
# File 'lib/gobl/bill/invoice.rb', line 83 property :customer, GOBL::Org::Party |
#delivery ⇒ Delivery (readonly)
115 |
# File 'lib/gobl/bill/invoice.rb', line 115 property :delivery, Delivery |
#discounts ⇒ Array<Discount> (readonly)
Discounts or allowances applied to the complete invoice
93 |
# File 'lib/gobl/bill/invoice.rb', line 93 property :discounts, [Discount] |
#exchange_rates ⇒ ExchangeRates (readonly)
Exchange rates to be used when converting the invoices monetary values into other currencies.
46 |
# File 'lib/gobl/bill/invoice.rb', line 46 property :exchange_rates, ExchangeRates |
#issue_date ⇒ GOBL::Cal::Date (readonly)
When the invoice was created.
61 |
# File 'lib/gobl/bill/invoice.rb', line 61 property :issue_date, GOBL::Cal::Date |
#lines ⇒ Array<Line> (readonly)
List of invoice lines representing each of the items sold to the customer.
88 |
# File 'lib/gobl/bill/invoice.rb', line 88 property :lines, [Line] |
#meta ⇒ GOBL::CBC::Meta (readonly)
Additional semi-structured data that doesn’t fit into the body of the invoice.
130 |
# File 'lib/gobl/bill/invoice.rb', line 130 property :meta, GOBL::CBC::Meta |
#notes ⇒ Array<GOBL::CBC::Note> (readonly)
Unstructured information that is relevant to the invoice, such as correction or additional legal details.
125 |
# File 'lib/gobl/bill/invoice.rb', line 125 property :notes, [GOBL::CBC::Note] |
#op_date ⇒ GOBL::Cal::Date (readonly)
Date when the operation defined by the invoice became effective.
67 |
# File 'lib/gobl/bill/invoice.rb', line 67 property :op_date, GOBL::Cal::Date |
#ordering ⇒ Ordering (readonly)
107 |
# File 'lib/gobl/bill/invoice.rb', line 107 property :ordering, Ordering |
#outlays ⇒ Array<Outlay> (readonly)
Expenses paid for by the supplier but invoiced directly to the customer.
103 |
# File 'lib/gobl/bill/invoice.rb', line 103 property :outlays, [Outlay] |
#payment ⇒ Payment (readonly)
111 |
# File 'lib/gobl/bill/invoice.rb', line 111 property :payment, Payment |
#preceding ⇒ Array<Preceding> (readonly)
Key information regarding previous invoices and potentially details as to why they were corrected.
56 |
# File 'lib/gobl/bill/invoice.rb', line 56 property :preceding, [Preceding] |
#series ⇒ String (readonly)
Used in addition to the Code in some regions.
30 |
# File 'lib/gobl/bill/invoice.rb', line 30 property :series, String |
#supplier ⇒ GOBL::Org::Party (readonly)
The taxable entity supplying the goods or services.
77 |
# File 'lib/gobl/bill/invoice.rb', line 77 property :supplier, GOBL::Org::Party |
#tax ⇒ Tax (readonly)
Special tax configuration for billing.
51 |
# File 'lib/gobl/bill/invoice.rb', line 51 property :tax, Tax |
#totals ⇒ Totals (readonly)
Summary of all the invoice totals, including taxes (calculated).
120 |
# File 'lib/gobl/bill/invoice.rb', line 120 property :totals, Totals |
#type ⇒ InvoiceType (readonly)
Optional invoice type, leave empty unless needed for a specific situation.
35 |
# File 'lib/gobl/bill/invoice.rb', line 35 property :type, InvoiceType |
#uuid ⇒ GOBL::UUID::UUID (readonly)
Unique document ID. Not required, but always recommended in addition to the Code.
19 |
# File 'lib/gobl/bill/invoice.rb', line 19 property :uuid, GOBL::UUID::UUID |
#value_date ⇒ GOBL::Cal::Date (readonly)
When the taxes of this invoice become accountable, if none set, the issue date is used.
72 |
# File 'lib/gobl/bill/invoice.rb', line 72 property :value_date, GOBL::Cal::Date |