Class: GOBL::Org::Note

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

Overview

Note represents a free text of additional information that may be added to a document.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Note structure

'https://gobl.org/draft-0/org/note'
KEY_ENUM =

Enumeration of possible values for #key with their corresponding descriptions

{
  'goods' => 'Goods Description',
  'payment' => 'Terms of Payment',
  'legal' => 'Legal or regulatory information',
  'dangerous-goods' => 'Dangerous goods additional information',
  'ack' => 'Acknowledgement Description',
  'rate' => 'Rate additional information',
  'reason' => 'Explanation of something relevant to the document',
  'dispute' => 'Details on a dispute.',
  'customer' => 'Customer remarks',
  'glossary' => 'Glossary of terms',
  'customs' => 'Customs declaration information',
  'general' => 'General information',
  'handling' => 'Handling instructions',
  'packaging' => 'Packaging information',
  'loading' => 'Loading instructions',
  'price' => 'Price conditions',
  'priority' => 'Priority information',
  'regulatory' => 'Regulatory information',
  'safety' => 'Safety instructions',
  'ship-line' => 'Ship line',
  'supplier' => 'Supplier remarks',
  'transport' => 'Transportation information',
  'delivery' => 'Delivery information',
  'quarantine' => 'Quarantine information',
  'tax' => 'Tax declaration',
  'other' => 'Mutually defined'
}.freeze

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)

Code used for additional data that may be required to identify the note.

Returns:



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

property :code, GOBL::CBC::Code

#extGOBL::Tax::Extensions (readonly)

Extension data



80
# File 'lib/generated/gobl/org/note.rb', line 80

property :ext, GOBL::Tax::Extensions

#keyGOBL::CBC::Key (readonly)

Key specifying subject of the text

Returns:



53
# File 'lib/generated/gobl/org/note.rb', line 53

property :key, GOBL::CBC::Key

#metaGOBL::CBC::Meta (readonly)

Additional information about the note

Returns:



75
# File 'lib/generated/gobl/org/note.rb', line 75

property :meta, GOBL::CBC::Meta

#srcGOBL::CBC::Key (readonly)

Source of this note, especially useful when auto-generated.

Returns:



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

property :src, GOBL::CBC::Key

#textString (readonly)

The contents of the note

Returns:

  • (String)


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

property :text, String

#uuidString (readonly)

Universally Unique Identifier.

Returns:

  • (String)


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

property :uuid, String