TMFTMForumProductOfferingResult

This Data Mapper is used in these IPs:

Input JSON

{
  "vlocity_cmt__EndOfLifeDate__c": 1524156143000,
  "vlocity_cmt__SellingStartDate__c": 1497830400000,
  "vlocity_cmt__SpecificationSubType__c": "Bundle",
  "vlocity_cmt__SpecificationType__c": "Offer",
  "vlocity_cmt__VersionLabel__c": "2.0",
  "Description": "Siri works on this iPhone",
  "IsActive": true,
  "Name": "iPhone 59",
  "ProductCode": "I42-340-DX",
  "attributeAssignments": [
    {
      "vlocity_cmt__AttributeDisplayNameOverride__c": "Screen size",
      "vlocity_cmt__Description__c": "Screen size",
      "vlocity_cmt__EffectiveFromDate__c": 1492620143000,
      "vlocity_cmt__EffectiveUntilDate__c": 1495212143000,
      "vlocity_cmt__IsConfigurable__c": false,
      "vlocity_cmt__ValueType__c": "Number",
      "Name": "Screen Size",
      "attributes": [
        {
          "vlocity_cmt__EffectiveFromDate__c": 1600819200000,
          "vlocity_cmt__EffectiveUntilDate__c": 1669248000000,
          "isDefault": true,
          "value": 8,
          "valueType": "number"
        }
      ]
    },
    {
      "vlocity_cmt__AttributeDisplayNameOverride__c": "Colour",
      "vlocity_cmt__Description__c": "Colour",
      "vlocity_cmt__EffectiveFromDate__c": 1492620143000,
      "vlocity_cmt__EffectiveUntilDate__c": 1495212143000,
      "vlocity_cmt__IsConfigurable__c": true,
      "vlocity_cmt__ValueType__c": "String",
      "Name": "Colour",
      "attributes": [
        {
          "vlocity_cmt__EffectiveFromDate__c": 1492620143000,
          "vlocity_cmt__EffectiveUntilDate__c": 1495212143000,
          "isDefault": true,
          "value": "Black",
          "valueType": "String"
        },
        {
          "vlocity_cmt__EffectiveFromDate__c": 1492620143000,
          "vlocity_cmt__EffectiveUntilDate__c": 1495212143000,
          "isDefault": false,
          "value": "White",
          "valueType": "String"
        }
      ]
    }
  ],
  "createdBy": {
    "Id": "1234",
    "Name": "Gustave Flaubert",
    "UserRole": {
      "Name": "Owner"
    }
  },
  "priceListEntries": [
    {
      "vlocity_cmt__DisplayText__c": "New offer description",
      "vlocity_cmt__EffectiveFromDate__c": 1492620143000,
      "vlocity_cmt__EffectiveUntilDate__c": 1555692143000,
      "vlocity_cmt__PricingElementId__r": {
        "vlocity_cmt__Amount__c": 1,
        "vlocity_cmt__CurrencyCode__c": "USD",
        "vlocity_cmt__PerUsageMeasurementId__r": {
          "Name": "USD"
        },
        "vlocity_cmt__PricingVariableId__r": {
          "vlocity_cmt__ChargeType__c": "recurring",
          "vlocity_cmt__RecurringFrequency__c": "monthly"
        }
      },
      "vlocity_cmt__ProductId__r": {
        "vlocity_cmt__VersionLabel__c": "1.0"
      },
      "vlocity_cmt__PromotionId__r": {
        "vlocity_cmt__DurationTimePlanId__r": {
          "vlocity_cmt__Description__c": "New offer description2",
          "vlocity_cmt__EffectiveEndDate__c": 1555692143000,
          "vlocity_cmt__EffectiveStartDate__c": 1492620143000,
          "vlocity_cmt__TotalDurationUoM__c": "Paisa",
          "vlocity_cmt__TotalDuration__c": "2",
          "Name": "offerNam2"
        }
      },
      "Name": "offerName"
    },
    {
      "vlocity_cmt__DisplayText__c": "New offer description2",
      "vlocity_cmt__EffectiveFromDate__c": 1492620143000,
      "vlocity_cmt__EffectiveUntilDate__c": 1555692143000,
      "vlocity_cmt__PricingElementId__r": {
        "vlocity_cmt__Amount__c": 1,
        "vlocity_cmt__CurrencyCode__c": "USD",
        "vlocity_cmt__PerUsageMeasurementId__r": {
          "Name": "Paisa"
        },
        "vlocity_cmt__PricingVariableId__r": {
          "vlocity_cmt__ChargeType__c": "recurring",
          "vlocity_cmt__RecurringFrequency__c": "Daily"
        }
      },
      "vlocity_cmt__ProductId__r": {
        "vlocity_cmt__VersionLabel__c": "2.0"
      },
      "vlocity_cmt__PromotionId__r": {
        "vlocity_cmt__DurationTimePlanId__r": {
          "vlocity_cmt__Description__c": "New offer description",
          "vlocity_cmt__EffectiveEndDate__c": 1555692143000,
          "vlocity_cmt__EffectiveStartDate__c": 1492620143000,
          "vlocity_cmt__TotalDurationUoM__c": "Rs",
          "vlocity_cmt__TotalDuration__c": "1",
          "Name": "offerName"
        }
      },
      "Name": "offerName2"
    }
  ],
  "productRelationships": [
    {
      "vlocity_cmt__RelatedProductId__c": "23",
      "vlocity_cmt__RelationshipType__c": "Dependency",
      "RelatedProductId__r": {
        "vlocity_cmt__SellingStartDate__c": 1492620143000
      }
    }
  ],
  "resourceSpecifications": [
    {
      "vlocity_cmt__VersionLabel__c": "1.0",
      "Id": "63",
      "Name": "specification 63"
    }
  ],
  "serviceSpecifications": [
    {
      "vlocity_cmt__VersionLabel__c": "1.0",
      "Id": "22",
      "Name": "specification 22"
    }
  ],
  "vlocityAttachments": [
    {
      "vlocity_cmt__UrlLong__c": "https://mycsp.com:7070/docloader?docnum=774454321",
      "Document": {
        "Type": "application/pdf"
      },
      "Name": "Product Manual"
    },
    {
      "vlocity_cmt__AttachmentId__c": "01t5f000000igLQAAY",
      "vlocity_cmt__UrlLong__c": "https://mycsp.com:7070/docloader?docnum=01t5f000000igLQAAY",
      "Name": "Product Manual"
    }
  ]
}

Output JSON

{
  "outputResponse": [
    {
      "bundledProductOffering": {
        "lifecycleStatus": "Inactive"
      },
      "attachment": [
        {
          "url": "https://mycsp.com:7070/docloader?docnum=774454321",
          "name": "Product Manual"
        },
        {
          "url": "https://mycsp.com:7070/docloader?docnum=01t5f000000igLQAAY",
          "name": "Product Manual"
        }
      ],
      "productOfferingTerm": [
        {
          "validFor": {
            "startDateTime": 1492620143000,
            "endDateTime": 1555692143000
          },
          "duration": {
            "units": "Paisa",
            "amount": "2"
          },
          "name": "offerNam2",
          "description": "New offer description2"
        },
        {
          "validFor": {
            "startDateTime": 1492620143000,
            "endDateTime": 1555692143000
          },
          "duration": {
            "units": "Rs",
            "amount": "1"
          },
          "name": "offerName",
          "description": "New offer description"
        }
      ],
      "productOfferingPrice": [
        {
          "validFor": {
            "startDateTime": 1492620143000,
            "endDateTime": 1555692143000
          },
          "name": "offerName",
          "description": "New offer description",
          "price": {
            "unit": "USD",
            "amount": "1"
          },
          "unitOfMeasure": "USD",
          "version": "1.0",
          "recurringChargePeriod": "monthly",
          "priceType": "recurring"
        },
        {
          "validFor": {
            "startDateTime": 1492620143000,
            "endDateTime": 1555692143000
          },
          "name": "offerName2",
          "description": "New offer description2",
          "price": {
            "unit": "USD",
            "amount": "1"
          },
          "unitOfMeasure": "USD",
          "version": "2.0",
          "recurringChargePeriod": "Daily",
          "priceType": "recurring"
        }
      ]
    }
  ]
}