# 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

```@json
{
    "requestedStartDate": "2019-05-03T08:13:59.506Z",
    "requestedCompletionDate": "2019-05-02T08:13:59.506Z",
    "relatedParty": [
      {
        "role": "",
        "name": "Test Sh1",
        "id": "CD451791",
        "href": "https://host:port/partyManagement/v4/individual/456-dd-df45",
        "@type": "RelatedParty",
        "@referredType": "account"
      }
    ],
    "productOrderItem": [
      {
        "quantity": 1,
        "id": "205ccd31-5934-766e-848f-0bff644e6338",
        "action": "add",
        "@type": "ProductOrderItem"
      }
    ],
    "priority": "1",
    "note": [
      {
        "text": "This is a TMF product order illustration",
        "id": "1",
        "date": "2019-04-30T08:13:59.509Z",
        "author": "Jean Pontus"
      }
    ],
    "externalId": "PO-456",
    "description": "Product Order illustration sample",
    "channel": [
      {
        "role": "Used channel for order capture",
        "name": "Online chanel",
        "id": "1"
      }
    ],
    "category": "B2C product order",
    "@type": "ProductOrder"
  }
```

## Output JSON

```@json
{
  "relatedParty": [
    {
      "SObjectField": "dev_rkr__VendorAccountId__c",
      "SObject": "Account",
      "Name": "Test Sh1",
      "AccountNumber": "CD451791"
    }
  ],
  "productOrderItem": [
    {
      "billingAccount": {
        "role": "Billing"
      },
      "quantity": 1,
      "action": "add",
      "dev_rkr__GlobalGroupKey__c": "205ccd31-5934-766e-848f-0bff644e6338"
    }
  ],
  "effectiveDate": "2019-05-03T08:13:59.506Z",
  "OrderReferenceNumber": "PO-456",
  "Description": "Product Order illustration sample",
  "Catalog": "B2C product order",
  "@type": "ProductOrder",
  "dev_rkr__RequestedStartDate__c": "2019-05-03T08:13:59.506Z",
  "dev_rkr__RequestedCompletionDate__c": "2019-05-02T08:13:59.506Z",
  "dev_rkr__Notes__c": "id:1;date:2019-04-30T08:13:59.509Z;text:This is a TMF product order illustration",
  "dev_rkr__OriginatingChannel__c": "Online chanel"
}
```
