Class: GOBL::Org::Item
- Inherits:
-
GOBL::Object
- Object
- Struct
- GOBL::Object
- GOBL::Org::Item
- Defined in:
- lib/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'
Constants included from Hashme
Instance Attribute Summary collapse
-
#codes ⇒ Array<ItemCode>
readonly
List of additional codes, IDs, or SKUs which can be used to identify the item.
-
#currency ⇒ String
readonly
Currency used for the item’s price.
-
#desc ⇒ String
readonly
Detailed description.
-
#meta ⇒ GOBL::CBC::Meta
readonly
Additional meta information that may be useful.
-
#name ⇒ String
readonly
Brief name of the item.
-
#origin ⇒ GOBL::L10n::CountryCode
readonly
Country code of where this item was from originally.
-
#price ⇒ GOBL::Num::Amount
readonly
Base price of a single unit to be sold.
-
#ref ⇒ String
readonly
Primary reference code that identifies this item.
-
#unit ⇒ GOBL::Org::Unit
readonly
Unit of measure.
-
#uuid ⇒ GOBL::UUID::UUID
readonly
Unique identify of this item independent of the Supplier IDs.
Method Summary
Methods inherited from GOBL::Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#codes ⇒ Array<ItemCode> (readonly)
List of additional codes, IDs, or SKUs which can be used to identify the item. The should be agreed upon between supplier and customer.
56 |
# File 'lib/gobl/org/item.rb', line 56 property :codes, [ItemCode] |
#currency ⇒ String (readonly)
Currency used for the item’s price.
40 |
# File 'lib/gobl/org/item.rb', line 40 property :currency, String |
#desc ⇒ String (readonly)
Detailed description
35 |
# File 'lib/gobl/org/item.rb', line 35 property :desc, String |
#meta ⇒ GOBL::CBC::Meta (readonly)
Additional meta information that may be useful
66 |
# File 'lib/gobl/org/item.rb', line 66 property :meta, GOBL::CBC::Meta |
#name ⇒ String (readonly)
Brief name of the item
29 |
# File 'lib/gobl/org/item.rb', line 29 property :name, String |
#origin ⇒ GOBL::L10n::CountryCode (readonly)
Country code of where this item was from originally.
61 |
# File 'lib/gobl/org/item.rb', line 61 property :origin, GOBL::L10n::CountryCode |
#price ⇒ GOBL::Num::Amount (readonly)
Base price of a single unit to be sold.
45 |
# File 'lib/gobl/org/item.rb', line 45 property :price, GOBL::Num::Amount |
#ref ⇒ String (readonly)
Primary reference code that identifies this item. Additional codes can be provided in the ‘codes’ field.
24 |
# File 'lib/gobl/org/item.rb', line 24 property :ref, String |
#unit ⇒ GOBL::Org::Unit (readonly)
Unit of measure.
51 |
# File 'lib/gobl/org/item.rb', line 51 property :unit, GOBL::Org::Unit |
#uuid ⇒ GOBL::UUID::UUID (readonly)
Unique identify of this item independent of the Supplier IDs
19 |
# File 'lib/gobl/org/item.rb', line 19 property :uuid, GOBL::UUID::UUID |