...
Field | Description |
id | Unique identifier of related party |
href | Reference of the relatedParty, could be a party reference or a partyRole reference |
role | Role of the related party |
name | Name of the related party |
UML model:
Notification Resource Models
Five notification types are defined :
- orderCreationNotification
- orderRemoveNotification
- orderStateChangeNotification
- orderValueChangeNotification
- orderInformationRequiredNotification
...
Order Creation Notification
Used to notify that a new order has just been created.
{ "note":[ "appointment":"http://www.doodle.com/1WCV5647438", { |
Order Remove Notification
Used to notify that an order was deleted.
{
"eventId":"00002",
"eventTime":"2013-04-19T16:42:25-30:00",
"eventType":"orderRemoveNotification",
"event":{
"productOrder":{
"id":" 42",
"href":"http://serverlocation:port/orderManagement/productOrder/42",
"externalID":"NiceNameForTheConsumer_42"
}}
}
Order State change Notification
Used to notify that an order state is evolving.
{
"eventId":"00003",
"eventTime":"2013-04-19T16:42:25-30:00",
"eventType":"orderStateChangeNotification",
"event":{
"productOrder":{
"id":" 42",
"href":"http://serverlocation:port/orderManagement/productOrder/42",
"externalID":"NiceNameForTheConsumer_42",
"state":"Completed"
}}
}
Order Value Notification
Used to notify that any data in an order has just changed.
{ "href":"http://serverlocation:port/orderManagement/productOrder/42", "orderItem":[ ] }} |
Order Information Required Notification
Used to notify that some data in the order needs to be filled / is missing.
- "resourcePath" allows to precise if it is a data at order level or at orderItem level (and which one of them) that is missing
- "fieldPath" details which field is missing, its structure is quite similar to GET filter criteria
- "missing=" points at the missing field
- "&<criteria>" can be used to identify a specific element in lists
Simple example : notification contact is missing
{ "eventId":"00005", "eventTime":"2013-04-19T16:42:25-30:00", "eventType":"orderInformationRequiredNotification", "resourcePath":"/order/42 ", "fieldPath":"missing=notificationContact", "event":{ "productOrder":{ "id":" 42", "href":"http://serverlocation:port/orderManagement/productOrder/42", "externalID":"NiceNameForTheConsumer_42" }} } |
...
...
© TM Forum 2015. All Rights Reserved.