TMFTMForumProductOfferingResult

This Data Mapper is used in these IPs:

Input JSON 

1{
2  "vlocity_cmt__EndOfLifeDate__c": 1524156143000,
3  "vlocity_cmt__SellingStartDate__c": 1497830400000,
4  "vlocity_cmt__SpecificationSubType__c": "Bundle",
5  "vlocity_cmt__SpecificationType__c": "Offer",
6  "vlocity_cmt__VersionLabel__c": "2.0",
7  "Description": "Siri works on this iPhone",
8  "IsActive": true,
9  "Name": "iPhone 59",
10  "ProductCode": "I42-340-DX",
11  "attributeAssignments": [
12    {
13      "vlocity_cmt__AttributeDisplayNameOverride__c": "Screen size",
14      "vlocity_cmt__Description__c": "Screen size",
15      "vlocity_cmt__EffectiveFromDate__c": 1492620143000,
16      "vlocity_cmt__EffectiveUntilDate__c": 1495212143000,
17      "vlocity_cmt__IsConfigurable__c": false,
18      "vlocity_cmt__ValueType__c": "Number",
19      "Name": "Screen Size",
20      "attributes": [
21        {
22          "vlocity_cmt__EffectiveFromDate__c": 1600819200000,
23          "vlocity_cmt__EffectiveUntilDate__c": 1669248000000,
24          "isDefault": true,
25          "value": 8,
26          "valueType": "number"
27        }
28      ]
29    },
30    {
31      "vlocity_cmt__AttributeDisplayNameOverride__c": "Colour",
32      "vlocity_cmt__Description__c": "Colour",
33      "vlocity_cmt__EffectiveFromDate__c": 1492620143000,
34      "vlocity_cmt__EffectiveUntilDate__c": 1495212143000,
35      "vlocity_cmt__IsConfigurable__c": true,
36      "vlocity_cmt__ValueType__c": "String",
37      "Name": "Colour",
38      "attributes": [
39        {
40          "vlocity_cmt__EffectiveFromDate__c": 1492620143000,
41          "vlocity_cmt__EffectiveUntilDate__c": 1495212143000,
42          "isDefault": true,
43          "value": "Black",
44          "valueType": "String"
45        },
46        {
47          "vlocity_cmt__EffectiveFromDate__c": 1492620143000,
48          "vlocity_cmt__EffectiveUntilDate__c": 1495212143000,
49          "isDefault": false,
50          "value": "White",
51          "valueType": "String"
52        }
53      ]
54    }
55  ],
56  "createdBy": {
57    "Id": "1234",
58    "Name": "Gustave Flaubert",
59    "UserRole": {
60      "Name": "Owner"
61    }
62  },
63  "priceListEntries": [
64    {
65      "vlocity_cmt__DisplayText__c": "New offer description",
66      "vlocity_cmt__EffectiveFromDate__c": 1492620143000,
67      "vlocity_cmt__EffectiveUntilDate__c": 1555692143000,
68      "vlocity_cmt__PricingElementId__r": {
69        "vlocity_cmt__Amount__c": 1,
70        "vlocity_cmt__CurrencyCode__c": "USD",
71        "vlocity_cmt__PerUsageMeasurementId__r": {
72          "Name": "USD"
73        },
74        "vlocity_cmt__PricingVariableId__r": {
75          "vlocity_cmt__ChargeType__c": "recurring",
76          "vlocity_cmt__RecurringFrequency__c": "monthly"
77        }
78      },
79      "vlocity_cmt__ProductId__r": {
80        "vlocity_cmt__VersionLabel__c": "1.0"
81      },
82      "vlocity_cmt__PromotionId__r": {
83        "vlocity_cmt__DurationTimePlanId__r": {
84          "vlocity_cmt__Description__c": "New offer description2",
85          "vlocity_cmt__EffectiveEndDate__c": 1555692143000,
86          "vlocity_cmt__EffectiveStartDate__c": 1492620143000,
87          "vlocity_cmt__TotalDurationUoM__c": "Paisa",
88          "vlocity_cmt__TotalDuration__c": "2",
89          "Name": "offerNam2"
90        }
91      },
92      "Name": "offerName"
93    },
94    {
95      "vlocity_cmt__DisplayText__c": "New offer description2",
96      "vlocity_cmt__EffectiveFromDate__c": 1492620143000,
97      "vlocity_cmt__EffectiveUntilDate__c": 1555692143000,
98      "vlocity_cmt__PricingElementId__r": {
99        "vlocity_cmt__Amount__c": 1,
100        "vlocity_cmt__CurrencyCode__c": "USD",
101        "vlocity_cmt__PerUsageMeasurementId__r": {
102          "Name": "Paisa"
103        },
104        "vlocity_cmt__PricingVariableId__r": {
105          "vlocity_cmt__ChargeType__c": "recurring",
106          "vlocity_cmt__RecurringFrequency__c": "Daily"
107        }
108      },
109      "vlocity_cmt__ProductId__r": {
110        "vlocity_cmt__VersionLabel__c": "2.0"
111      },
112      "vlocity_cmt__PromotionId__r": {
113        "vlocity_cmt__DurationTimePlanId__r": {
114          "vlocity_cmt__Description__c": "New offer description",
115          "vlocity_cmt__EffectiveEndDate__c": 1555692143000,
116          "vlocity_cmt__EffectiveStartDate__c": 1492620143000,
117          "vlocity_cmt__TotalDurationUoM__c": "Rs",
118          "vlocity_cmt__TotalDuration__c": "1",
119          "Name": "offerName"
120        }
121      },
122      "Name": "offerName2"
123    }
124  ],
125  "productRelationships": [
126    {
127      "vlocity_cmt__RelatedProductId__c": "23",
128      "vlocity_cmt__RelationshipType__c": "Dependency",
129      "RelatedProductId__r": {
130        "vlocity_cmt__SellingStartDate__c": 1492620143000
131      }
132    }
133  ],
134  "resourceSpecifications": [
135    {
136      "vlocity_cmt__VersionLabel__c": "1.0",
137      "Id": "63",
138      "Name": "specification 63"
139    }
140  ],
141  "serviceSpecifications": [
142    {
143      "vlocity_cmt__VersionLabel__c": "1.0",
144      "Id": "22",
145      "Name": "specification 22"
146    }
147  ],
148  "vlocityAttachments": [
149    {
150      "vlocity_cmt__UrlLong__c": "https://mycsp.com:7070/docloader?docnum=774454321",
151      "Document": {
152        "Type": "application/pdf"
153      },
154      "Name": "Product Manual"
155    },
156    {
157      "vlocity_cmt__AttachmentId__c": "01t5f000000igLQAAY",
158      "vlocity_cmt__UrlLong__c": "https://mycsp.com:7070/docloader?docnum=01t5f000000igLQAAY",
159      "Name": "Product Manual"
160    }
161  ]
162}

Output JSON 

1{
2  "outputResponse": [
3    {
4      "bundledProductOffering": {
5        "lifecycleStatus": "Inactive"
6      },
7      "attachment": [
8        {
9          "url": "https://mycsp.com:7070/docloader?docnum=774454321",
10          "name": "Product Manual"
11        },
12        {
13          "url": "https://mycsp.com:7070/docloader?docnum=01t5f000000igLQAAY",
14          "name": "Product Manual"
15        }
16      ],
17      "productOfferingTerm": [
18        {
19          "validFor": {
20            "startDateTime": 1492620143000,
21            "endDateTime": 1555692143000
22          },
23          "duration": {
24            "units": "Paisa",
25            "amount": "2"
26          },
27          "name": "offerNam2",
28          "description": "New offer description2"
29        },
30        {
31          "validFor": {
32            "startDateTime": 1492620143000,
33            "endDateTime": 1555692143000
34          },
35          "duration": {
36            "units": "Rs",
37            "amount": "1"
38          },
39          "name": "offerName",
40          "description": "New offer description"
41        }
42      ],
43      "productOfferingPrice": [
44        {
45          "validFor": {
46            "startDateTime": 1492620143000,
47            "endDateTime": 1555692143000
48          },
49          "name": "offerName",
50          "description": "New offer description",
51          "price": {
52            "unit": "USD",
53            "amount": "1"
54          },
55          "unitOfMeasure": "USD",
56          "version": "1.0",
57          "recurringChargePeriod": "monthly",
58          "priceType": "recurring"
59        },
60        {
61          "validFor": {
62            "startDateTime": 1492620143000,
63            "endDateTime": 1555692143000
64          },
65          "name": "offerName2",
66          "description": "New offer description2",
67          "price": {
68            "unit": "USD",
69            "amount": "1"
70          },
71          "unitOfMeasure": "USD",
72          "version": "2.0",
73          "recurringChargePeriod": "Daily",
74          "priceType": "recurring"
75        }
76      ]
77    }
78  ]
79}