7.27.3 Examples of Events of VendingAuditEventTypeIn the following, Events of VendingAuditEventType are shown, that would occur on a Vending Machine , having as payment devices a coin device COIN1, a bill device BILL1 and a cashless device CARD1.
The user requests a delivery which costs 9 €, inserts a 1 € coin, a token worth 1 €, a 5 € bill, and then inserts a credit card to pay the remaining 2 €. Afterwards the delivery is executed.
Event for 1 € coin:
Event {
EventId: 123
EventType: VendingAuditEventType (the NodeId)
SourceNode: urn:VENDOR:COIN_READER_MODEL:42 (the NodeId)
SourceName: urn:VENDOR:COIN_READER_MODEL:42
Time: <some time>
ReceiveTime: <some time>
Message: "Coin inserted"
Severity: 300
InMaintenanceMode: False
Category: CoinInCashbox
Counter: 1
MonetaryValue: { Amount: 1,
Currency: {NumericCode: 978, Exponent: 2, AlphabeticCode: EUR, Currency: Euro}}
}
Event for 1 token:
Event {
EventId: 124
EventType: VendingAuditEventType (the NodeId)
SourceNode: urn:VENDOR:COIN_READER_MODEL:42 (the NodeId)
SourceName: urn:VENDOR:COIN_READER_MODEL:42
Time: <some time>
ReceiveTime: <some time>
Message: "Token inserted"
Severity: 300
InMaintenanceMode: False
Category: CoinInCashbox
Counter: 1
MonetaryValue: { Amount: 1,
Currency: {NumericCode: 000, Exponent: 0, AlphabeticCode: TOKEN Currency: ""}}
}
Event for 5 € bill:
Event {
EventId: 125
EventType: VendingAuditEventType (the NodeId)
SourceNode: urn:VENDOR:BILL_READER_MODEL:#54321 (the NodeId)
SourceName: urn:VENDOR:BILL_READER_MODEL:#54321
Time: <some time>
ReceiveTime: <some time>
Message: "Bill inserted"
Severity: 300
InMaintenanceMode: False
Category: BillInStacker
Counter: 1
MonetaryValue: { Amount: 5,
Currency: { NumericCode: 978, Exponent: 2, AlphabeticCode: EUR, Currency: Euro}}
}
Event for presenting a credit card:
Event {
EventId: 126
EventType: VendingAuditEventType (the NodeId)
SourceNode: urn:CARD_VENDOR:DEVICE_MODEL:SN12345 (the NodeId)
SourceName: urn:CARD_VENDOR:DEVICE_MODEL:SN12345
Time: <some time>
ReceiveTime: <some time>
Message: "Card inserted"
Severity: 300
InMaintenanceMode: False
Category: CardIn
UserId: 1234567890
MonetaryValue: { Amount: 100,
Currency: { NumericCode: 978, Exponent: 2, AlphabeticCode: EUR, Currency: Euro}}
}
Event for successful delivery:
Event {
EventId: 127
EventType: VendingAuditEventType (the NodeId)
SourceNode: PAYMENTSERVICE (the NodeId)
SourceName: PAYMENTSERVICE
Time: <some time>
ReceiveTime: <some time>
Message: "request successful delivered"
Severity: 300
InMaintenanceMode: False
Category: DeliverRequestDone
Selection: <some product with options, details left out>
PaymentDetails: Array of
{ // summarizes the 5 € bill and 1 € coin
PaymentMode: Cash
PaymentDevice: ""
UserId: ""
MonetaryValue: { Amount: 6,
Currency: { NumericCode: 978, Exponent: 2, AlphabeticCode: EUR, Currency: Euro}}
}
{ PaymentMode: Cash
PaymentDevice: ""
UserId: ""
MonetaryValue: { Amount: 1,
Currency: {NumericCode: 000, Exponent: 0, AlphabeticCode: TOKEN, Currency: ""}}
}
{ PaymentMode: Cashless
PaymentDevice: urn:CARD_VENDOR:DEVICE_MODEL:SN12345
UserId: 1234567890
MonetaryValue{ Amount: 2,
Currency: { NumericCode: 978, Exponent: 2, AlphabeticCode: EUR, Currency: Euro}}
}
MonetaryValueWithContext:
{ Amount: 9,
Currency: { NumericCode: 978, Exponent: 2, AlphabeticCode: EUR, Currency: Euro}
PriceListId: 1001
Tax: 10.0,
DiscountSurcharge: 0,
}