forked from OMGStandards/DigitalReceipt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
associate.yaml
132 lines (126 loc) · 3.79 KB
/
associate.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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Employee:
description: |
An employee associated with the Transaction.
type: object
properties:
employeeID:
description: |
A unique ID of the Employee.
type: string
employeeNumber:
description: |
Employee number that can be used for Employee identification.
It typically has some business meaning, for example, as a
reference in external HR system.
type: string
name:
description: |
Name of the Employee.
$ref: "common.yaml#/PersonName"
governmentIssuedPersonIDs:
description: |
Collection of Employee's identifications.
$ref: "common.yaml#/GovernmentPersonIDCollection"
extensibilityData:
description: |
Data that provides extensibility to the defined data structure.
This property is an array of DataSet where each DataSet is a
named collection of name-value pairs.
$ref: "common.yaml#/ExtensibilityData"
additionalProperties: false
Operator:
description: |
An individual or organization that operates a system, equipment or a machines.
type: object
properties:
operatorID:
description: |
A unique ID assigned to Operator.
type: string
loginName:
description: |
A unique string identifying the Operator to a computer system.
type: string
extensibilityData:
description: |
Data that provides extensibility to the defined data structure.
This property is an array of DataSet where each DataSet is a
named collection of name-value pairs.
$ref: "common.yaml#/ExtensibilityData"
additionalProperties: false
Associate:
description: |
A person who performs a variety of activities in a retail store.
They can operate workstations, help customers, perform some
backroom activities, etc.
type: object
properties:
name:
description: |
Name of the Associate.
$ref: "#common.yaml/PersonName"
operator:
description: |
If an associate has access to computer system they are also operators.
$ref: "#/Operator"
employee:
description: |
Employee data of the Associate.
For example, name, employeeNumber, etc.
$ref: "#/Employee"
additionalProperties: false
Salesperson:
description: |
An salesperson associated with the Transaction or line item.
type: object
properties:
associate:
description: |
Salesperson is an Associate.
$ref: "#/Associate"
commissions:
description: |
Commissions to be rewarded to sales person for the Transaction or Line Item.
$ref: "#/CommissionCollection"
required:
- associate
additionalProperties: false
SalespersonCollection:
description: |
Collection of salespeople.
type: array
items:
$ref: "#/Salesperson"
Commission:
description: |
Commission to be awarded to a Salesperson as part of the transaction.
type: object
properties:
commissionPlanID:
description: |
Identifier of the commision plan that is used to calculate the Commission.
type: string
typeCode:
description: |
Type of the commision .
type: string
spiffFlag:
description: |
Flag that indicates that commission is a spiff.
type: boolean
default: false
amount:
description: |
The amount of the commission.
$ref: "common.yaml#/MonetaryAmount"
percent:
description: |
Percent value of the commission.
$ref: "common.yaml#/DecimalString"
additionalProperties: false
CommissionCollection:
description: |
Collection of commissions.
type: array
items:
$ref: "#/Commission"