This repository has been archived by the owner on Sep 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuyerUtilityBundle.json
111 lines (110 loc) · 2.75 KB
/
buyerUtilityBundle.json
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"currencyUnit":"USD",
"utility":{
"cake":{
"type":"unitvaluePlusSupplement",
"unit":"each",
"parameters":{
"unitvalue":25,
"supplement":{
"chocolate":{
"type":"trapezoid",
"unit":"ounce",
"parameters":{
"minQuantity":3,
"maxQuantity":6,
"minValue":3,
"maxValue":6
}
},
"vanilla":{
"type":"trapezoid",
"unit":"teaspoon",
"parameters":{
"minQuantity":2,
"maxQuantity":4,
"minValue":2,
"maxValue":4
}
}
}
}
},
"pancake":{
"type":"unitvaluePlusSupplement",
"unit":"each",
"parameters":{
"unitvalue":10,
"supplement":{
"chocolate":{
"type":"trapezoid",
"unit":"ounce",
"parameters":{
"minQuantity":3,
"maxQuantity":6,
"minValue":3,
"maxValue":6
}
},
"blueberry":{
"type":"trapezoid",
"unit":"packet",
"parameters":{
"minQuantity":1,
"maxQuantity":3,
"minValue":1,
"maxValue":3
}
}
}
}
}
},
"bundle":{
"cost":20,
"products":{
"cake":{
"unit": "each",
"quantity":3,
"supplement":[
{
"chocolate":{
"unit":"ounce",
"quantity":2
},
"vanilla":{
"unit":"teaspoon",
"quantity":2
}
},
{
"chocolate":{
"unit":"ounce",
"quantity":3
}
},
{
"vanilla":{
"unit":"teaspoon",
"quantity":1
}
}
]
},
"pancake":{
"unit": "each",
"quantity":2,
"supplement":[
{
"blueberry":{
"unit":"packet",
"quantity":2
}
},
{
}
]
}
}
}
}