Class: GOBL::Org::Item

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

Overview

Item is used to describe a single product or service.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Item structure

'https://gobl.org/draft-0/org/item'

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

#currencyGOBL::Currency::Code (readonly)

Currency used for the item’s price.



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

property :currency, GOBL::Currency::Code

#descString (readonly)

Detailed description

Returns:

  • (String)


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

property :desc, String

#extGOBL::CBC::CodeMap (readonly)

Extension code map for any additional regime specific codes that may be required.

Returns:



71
# File 'lib/generated/gobl/org/item.rb', line 71

property :ext, GOBL::CBC::CodeMap

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

List of additional codes, IDs, or SKUs which can be used to identify the item. They should be agreed upon between supplier and customer.

Returns:



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

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

#keyGOBL::CBC::Key (readonly)

Special key used to classify the item sometimes required by some regimes.

Returns:



29
# File 'lib/generated/gobl/org/item.rb', line 29

property :key, GOBL::CBC::Key

#metaGOBL::CBC::Meta (readonly)

Additional meta information that may be useful

Returns:



76
# File 'lib/generated/gobl/org/item.rb', line 76

property :meta, GOBL::CBC::Meta

#nameString (readonly)

Brief name of the item

Returns:

  • (String)


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

property :name, String

#originGOBL::L10n::CountryCode (readonly)

Country code of where this item was from originally.



66
# File 'lib/generated/gobl/org/item.rb', line 66

property :origin, GOBL::L10n::CountryCode

#priceGOBL::Num::Amount (readonly)

Base price of a single unit to be sold.

Returns:



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

property :price, GOBL::Num::Amount

#refString (readonly)

Primary reference code that identifies this item. Additional codes can be provided in the ‘identities’ property.

Returns:

  • (String)


24
# File 'lib/generated/gobl/org/item.rb', line 24

property :ref, String

#unitGOBL::Org::Unit (readonly)

Unit of measure.

Returns:



61
# File 'lib/generated/gobl/org/item.rb', line 61

property :unit, GOBL::Org::Unit

#uuidGOBL::UUID::UUID (readonly)

Unique identity of this item

Returns:



19
# File 'lib/generated/gobl/org/item.rb', line 19

property :uuid, GOBL::UUID::UUID