Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions data/aux_fields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,29 @@
description:
- Free-form identifier for the physical storage location of the container.
- Intended for inventory management workflows (e.g. "Shelf B3", "DB2/S4").

- key: 5
name: purchase_time
type: timestamp
category: user_data
description:
- Timestamp when the material package was purchased by the customer.
- Not filled by the manufacturer, for customer private tracking only.

- key: 6
name: purchase_price
type: number
category: user_data
description:
- Amount (of `purchase_currency`) the user paid for the material package.
- Not filled by the manufacturer, for customer private tracking only.

- key: 7
name: purchase_currency
type: string
max_length: 3
category: user_data
description:
- Currency of `purchase_price`.
- Alphabetic code according to [ISO 4271](https://en.wikipedia.org/wiki/ISO_4217).
- Not filled by the manufacturer, for customer private tracking only.
3 changes: 3 additions & 0 deletions docs_src/nfc_data_format.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ The auxiliary section is intended for dynamic data - typically usage tracking.
#### 6.1.1 Field list (SLA-specific)
{{ fields_table("aux_fields", "sla") }}

#### 6.1.1 Field list (user data)
{{ fields_table("aux_fields", "user_data") }}

### 6.2 Vendor-specific fields
Vendor-specific fields not specified in this document are permitted for keys specified by the following table. Vendors may contact the specification authority to be assigned a key range for them to use.

Expand Down
9 changes: 9 additions & 0 deletions utils/schema/fields.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,15 @@
},
"storage_location": {
"$ref": "field_types.schema.json#/definitions/string"
},
"purchase_time": {
"$ref": "field_types.schema.json#/definitions/timestamp"
},
"purchase_price": {
"$ref": "field_types.schema.json#/definitions/number"
},
"purchase_currency": {
"$ref": "field_types.schema.json#/definitions/string"
}
},
"unevaluatedProperties": false
Expand Down
Loading