-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathProduct.yaml
46 lines (45 loc) · 950 Bytes
/
Product.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# (c) 2018 OpenTHC, Inc.
# This file is part of OpenTHC API released under MIT License
# SPDX-License-Identifier: MIT
#
# Product Model
# aka: Inventory Type, Item, SKU
#
type: object
properties:
id:
description: The Product Unique Identifer from the CRE
type: string
name:
description: Free-form name of the Product
type: string
type:
$ref: '#/components/schemas/Product_Type'
package:
type: object
properties:
id:
description: Well-known ID of Package Descriptor
type: string
net:
description: Net weight details as object
type: object
net_volume:
type: number
net_weight:
type: number
unit_count:
type: number
serving:
type: object
properties:
qty:
type: number
portion:
type: object
properties:
qty:
type: number
uom:
type: string