This repository has been archived by the owner on Feb 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
orderstatus.html
67 lines (64 loc) · 2.14 KB
/
orderstatus.html
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
<script type="text/javascript">
RED.nodes.registerType('readorderstatus',{
category: 'yaas',
color: '#1b91e2',
defaults: {
yaasCredentials: {type:"yaas-credentials", required:true}
},
inputs: 1,
outputs: 1,
icon: "yaas.png",
paletteLabel: 'orderstatus',
label: function() {
return 'orderstatus';
}
});
</script>
<script type="text/x-red" data-template-name="readorderstatus">
<div class="form-row">
<label for="node-input-yaasCredentials"><i class="fa fa-user-secret"></i> Credentials</label>
<input type="text" id="node-input-yaasCredentials">
</div>
</script>
<script type="text/x-red" data-help-name="readorderstatus">
<p>
Read the order status from <code>orderId</code> in or of <code>msg.payload</code>.
</p>
</script>
<script type="text/javascript">
RED.nodes.registerType('changeorderstatus',{
category: 'yaas',
color: '#1b91e2',
defaults: {
yaasCredentials: {type:"yaas-credentials", required:true}
},
inputs: 1,
outputs: 0,
icon: "yaas.png",
paletteLabel: 'orderstatus',
label: function() {
return 'orderstatus';
}
});
</script>
<script type="text/x-red" data-template-name="changeorderstatus">
<div class="form-row">
<label for="node-input-yaasCredentials"><i class="fa fa-user-secret"></i> Credentials</label>
<input type="text" id="node-input-yaasCredentials">
</div>
</script>
<script type="text/x-red" data-help-name="changeorderstatus">
<p>
<code>orderId</code> and <code>status</code> in the <code>msg.payload</code> object.
</p>
<p>
Every order at any point in time has one of the following statuses (as string):
<ul>
<li>CREATED: New order</li>
<li>CONFIRMED: Seller confirmed the order</li>
<li>DECLINED: Seller declined the order</li>
<li>COMPLETED: Order has been successfully fulfilled</li>
<li>SHIPPED: Order goods have been successfully shipped</li>
</ul>
</p>
</script>