TMFTMForumTransformProductOrderRequest

This Data Mapper is responsible for transforming the request from TMForum data model to Vlocity Data Model for ProductOrder POST and GET API

Input JSON 

1{
2    "requestedStartDate": "2019-05-03T08:13:59.506Z",
3    "requestedCompletionDate": "2019-05-02T08:13:59.506Z",
4    "relatedParty": [
5      {
6        "role": "",
7        "name": "Test Sh1",
8        "id": "CD451791",
9        "href": "https://host:port/partyManagement/v4/individual/456-dd-df45",
10        "@type": "RelatedParty",
11        "@referredType": "account"
12      }
13    ],
14    "productOrderItem": [
15      {
16        "quantity": 1,
17        "id": "205ccd31-5934-766e-848f-0bff644e6338",
18        "action": "add",
19        "@type": "ProductOrderItem"
20      }
21    ],
22    "priority": "1",
23    "note": [
24      {
25        "text": "This is a TMF product order illustration",
26        "id": "1",
27        "date": "2019-04-30T08:13:59.509Z",
28        "author": "Jean Pontus"
29      }
30    ],
31    "externalId": "PO-456",
32    "description": "Product Order illustration sample",
33    "channel": [
34      {
35        "role": "Used channel for order capture",
36        "name": "Online chanel",
37        "id": "1"
38      }
39    ],
40    "category": "B2C product order",
41    "@type": "ProductOrder"
42  }

Output JSON 

1{
2  "relatedParty": [
3    {
4      "SObjectField": "dev_rkr__VendorAccountId__c",
5      "SObject": "Account",
6      "Name": "Test Sh1",
7      "AccountNumber": "CD451791"
8    }
9  ],
10  "productOrderItem": [
11    {
12      "billingAccount": {
13        "role": "Billing"
14      },
15      "quantity": 1,
16      "action": "add",
17      "dev_rkr__GlobalGroupKey__c": "205ccd31-5934-766e-848f-0bff644e6338"
18    }
19  ],
20  "effectiveDate": "2019-05-03T08:13:59.506Z",
21  "OrderReferenceNumber": "PO-456",
22  "Description": "Product Order illustration sample",
23  "Catalog": "B2C product order",
24  "@type": "ProductOrder",
25  "dev_rkr__RequestedStartDate__c": "2019-05-03T08:13:59.506Z",
26  "dev_rkr__RequestedCompletionDate__c": "2019-05-02T08:13:59.506Z",
27  "dev_rkr__Notes__c": "id:1;date:2019-04-30T08:13:59.509Z;text:This is a TMF product order illustration",
28  "dev_rkr__OriginatingChannel__c": "Online chanel"
29}