Class: GOBL::Org::DocumentRef

Inherits:
GOBL::Object show all
Defined in:
lib/generated/gobl/org/document_ref.rb

Overview

DocumentRef is used to describe an existing document or a specific part of it’s contents.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL DocumentRef structure

'https://gobl.org/draft-0/org/document-ref'

Instance Attribute Summary collapse

Method Summary

Methods inherited from GOBL::Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#codeGOBL::CBC::Code (readonly)

Source document’s code or other identifier.

Returns:



38
# File 'lib/generated/gobl/org/document_ref.rb', line 38

property :code, GOBL::CBC::Code

#currencyGOBL::Currency::Code (readonly)

Currency used in the document, if different from the parent’s currency.



44
# File 'lib/generated/gobl/org/document_ref.rb', line 44

property :currency, GOBL::Currency::Code

#descriptionString (readonly)

Additional details about the document.

Returns:

  • (String)


69
# File 'lib/generated/gobl/org/document_ref.rb', line 69

property :description, String

#extGOBL::Tax::Extensions (readonly)

Extensions for additional codes that may be required.



94
# File 'lib/generated/gobl/org/document_ref.rb', line 94

property :ext, GOBL::Tax::Extensions

#identitiesArray<GOBL::Org::Identity> (readonly)

List of additional codes, IDs, or SKUs which can be used to identify the document or its contents, agreed upon by the supplier and customer.

Returns:



54
# File 'lib/generated/gobl/org/document_ref.rb', line 54

property :identities, [GOBL::Org::Identity]

#issue_dateGOBL::Cal::Date (readonly)

IssueDate reflects the date the document was issued.

Returns:



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

property :issue_date, GOBL::Cal::Date

#linesArray<Integer> (readonly)

Line index numbers inside the document, if relevant.

Returns:

  • (Array<Integer>)


49
# File 'lib/generated/gobl/org/document_ref.rb', line 49

property :lines, [Integer]

#metaGOBL::CBC::Meta (readonly)

Meta contains additional information about the document.

Returns:



99
# File 'lib/generated/gobl/org/document_ref.rb', line 99

property :meta, GOBL::CBC::Meta

#payableGOBL::Num::Amount (readonly)

Payable is the total amount that is payable in the referenced document. Only needed for specific tax regimes or addons. This may also be used in some scenarios to determine the proportion of the referenced document that has been paid, and calculate the remaining amount due and taxes.

Returns:



89
# File 'lib/generated/gobl/org/document_ref.rb', line 89

property :payable, GOBL::Num::Amount

#periodGOBL::Cal::Period (readonly)

Tax period in which the referred document had an effect required by some tax regimes and formats.

Returns:



59
# File 'lib/generated/gobl/org/document_ref.rb', line 59

property :period, GOBL::Cal::Period

#reasonString (readonly)

Human readable description on why this reference is here or needs to be used.

Returns:

  • (String)


64
# File 'lib/generated/gobl/org/document_ref.rb', line 64

property :reason, String

#seriesGOBL::CBC::Code (readonly)

Series the referenced document belongs to.

Returns:



33
# File 'lib/generated/gobl/org/document_ref.rb', line 33

property :series, GOBL::CBC::Code

#stampsArray<GOBL::Head::Stamp> (readonly)

Seals of approval from other organizations that may need to be listed.

Returns:



74
# File 'lib/generated/gobl/org/document_ref.rb', line 74

property :stamps, [GOBL::Head::Stamp]

#taxGOBL::Tax::Total (readonly)

Tax total breakdown from the original document in the provided currency. Should only be included if required by a specific tax regime or addon.

Returns:



84
# File 'lib/generated/gobl/org/document_ref.rb', line 84

property :tax, GOBL::Tax::Total

#typeGOBL::CBC::Key (readonly)

Type of the document referenced.

Returns:



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

property :type, GOBL::CBC::Key

#urlString (readonly)

Link to the source document.

Returns:

  • (String)


79
# File 'lib/generated/gobl/org/document_ref.rb', line 79

property :url, String

#uuidString (readonly)

Universally Unique Identifier.

Returns:

  • (String)


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

property :uuid, String