Hi,
In TMF669 PartyRoleManagement API, we have events structure as below.
{ "eventId":"00001", "eventTime":"2015-11-16T16:42:25-04:00", "eventType":"PartyRoleCreateEvent", "event": { "partyRole" : {-- SEE PartyRole RESOURCE SAMPLE --} } }
Based on the above sample message, which of below is valid ?
Sample 1:
{
"eventId": "00001",
"eventTime": "2015-11-16T16:42:25-04:00",
"eventType": "PartyRoleCreateEvent",
"event": {
"partyRole": {
"@baseType": "PartyRole",
"@type": "customerServiceAccount",
Sample 2:
{
"eventId": "00001",
"eventTime": "2015-11-16T16:42:25-04:00",
"eventType": "PartyRoleCreateEvent",
"event": {
"customerServiceAccount": {
"@baseType": "PartyRole",
"@type": "customerServiceAccount",
- Is it mandatory to have object name same as the value of @type ? Or can we have them as in Sample 1 ?
- Can we extend base class(i.e. partyRole object ) to add additional attributes ?
Please suggest what's the recommended approach
Thanks,
Uma Mahesh
------------------------------
Uma Mahesh
BT Group plc
------------------------------