This Data Mapper is used in the TMFTMForumCreateProductOfferingPrice IP.
Input JSON
{
"vlocity_cmt__PromotionId__r": {
"vlocity_cmt__DurationTimePlanId__r": {
"Id": "a3g5e000000ZOHkAAO",
"vlocity_cmt__TotalDurationUoM__c": "Month",
"vlocity_cmt__TotalDuration__c": 12,
"attributes": {
"url": "/services/data/v55.0/sobjects/vlocity_cmt__TimePlan__c/a3g5e000000ZOHkAAO",
"type": "vlocity_cmt__TimePlan__c"
}
},
"Id": "a3T5e000000IGyTEAW",
"vlocity_cmt__DurationTimePlanId__c": "a3g5e000000ZOHkAAO",
"vlocity_cmt__EffectiveStartDate__c": "2020-09-22T16:42:23.000+0000",
"vlocity_cmt__EffectiveEndDate__c": "2023-09-22T00:00:00.000+0000",
"vlocity_cmt__Description__c": "12 month contract",
"Name": "12 Month",
"attributes": {
"url": "/services/data/v55.0/sobjects/vlocity_cmt__Promotion__c/a3T5e000000IGyTEAW",
"type": "vlocity_cmt__Promotion__c"
}
},
"vlocity_cmt__PricingElementId__r": {
"vlocity_cmt__PricingVariableId__r": {
"Id": "a3J5e000000duIhEAI",
"vlocity_cmt__RecurringFrequency__c": "Monthly",
"vlocity_cmt__ChargeType__c": "Recurring",
"attributes": {
"url": "/services/data/v55.0/sobjects/vlocity_cmt__PricingVariable__c/a3J5e000000duIhEAI",
"type": "vlocity_cmt__PricingVariable__c"
}
},
"Id": "a3F5e000000G1xXEAS",
"vlocity_cmt__PricingVariableId__c": "a3J5e000000duIhEAI",
"vlocity_cmt__CurrencyCode__c": "USD",
"vlocity_cmt__Amount__c": 50,
"attributes": {
"url": "/services/data/v55.0/sobjects/vlocity_cmt__PricingElement__c/a3F5e000000G1xXEAS",
"type": "vlocity_cmt__PricingElement__c"
}
},
"Id": "a3C5e000000KmP5EAK",
"vlocity_cmt__PromotionId__c": "a3T5e000000IGyTEAW",
"vlocity_cmt__PricingElementId__c": "a3F5e000000G1xXEAS",
"vlocity_cmt__EffectiveUntilDate__c": "2023-09-22T00:00:00.000+0000",
"vlocity_cmt__EffectiveFromDate__c": "2020-09-22T00:00:00.000+0000",
"vlocity_cmt__DisplayText__c": "This pricing describes the recurring charge for a firewall service that can be deployed in business customer premise.",
"vlocity_cmt__GlobalKey__c": "5b24c90c-663b-1961-380c-43d3d7ed7fcc",
"Name": "test",
"attributes": {
"url": "/services/data/v55.0/sobjects/vlocity_cmt__PriceListEntry__c/a3C5e000000KmP5EAK",
"type": "vlocity_cmt__PriceListEntry__c"
},
"id": "a3C5e000000KmP5EAK",
"result": null,
"epcResponse": {
"errorCode": "400",
"overallResult": "success",
"entities": [
{
"entity": {
"vlocity_cmt__PromotionId__c": "a3T5e000000IGyTEAW",
"vlocity_cmt__PricingElementId__c": "a3F5e000000G1xXEAS",
"vlocity_cmt__PricingElementGlobalKey__c": "9b29691c-8c1e-e0c4-4cdd-9369cd6ff0d9",
"vlocity_cmt__PricingElementAmount__c": 50,
"vlocity_cmt__PriceListName__c": "B2C",
"vlocity_cmt__IsVirtualPrice__c": false,
"vlocity_cmt__IsOverride__c": false,
"vlocity_cmt__IsBasePrice__c": false,
"vlocity_cmt__IsActive__c": true,
"vlocity_cmt__GlobalKey__c": "5b24c90c-663b-1961-380c-43d3d7ed7fcc",
"vlocity_cmt__EffectiveUntilDate__c": "2023-09-22T00:00:00.000+0000",
"vlocity_cmt__EffectiveFromDate__c": "2020-09-22T00:00:00.000+0000",
"vlocity_cmt__DisplayText__c": "This pricing describes the recurring charge for a firewall service that can be deployed in business customer premise.",
"vlocity_cmt__PriceListId__c": "a3D5e000000LZJUEA4",
"LastReferencedDate": "2022-09-14T16:26:33.000+0000",
"LastViewedDate": "2022-09-14T16:26:33.000+0000",
"SystemModstamp": "2022-09-14T16:26:33.000+0000",
"LastModifiedById": "0055e000001m0OCAAY",
"LastModifiedDate": "2022-09-14T16:26:33.000+0000",
"CreatedById": "0055e000001m0OCAAY",
"CreatedDate": "2022-09-14T16:26:33.000+0000",
"Name": "test",
"IsDeleted": false,
"Id": "a3C5e000000KmP5EAK",
"attributes": {
"url": "/services/data/v55.0/sobjects/vlocity_cmt__PriceListEntry__c/a3C5e000000KmP5EAK",
"type": "vlocity_cmt__PriceListEntry__c"
}
}
}
]
}
}
Output JSON
{
"statusCode": "201",
"validFor": {
"startDateTime": "2020-09-22T00:00:00.000+0000",
"endDateTime": "2023-09-22T00:00:00.000+0000"
},
"productOfferingTerm": [
{
"validFor": {
"endDateTime": "2023-09-22T00:00:00.000+0000",
"startDateTime": "2020-09-22T16:42:23.000+0000"
},
"duration": {
"units": "Month",
"amount": 12
},
"description": "12 month contract",
"name": "12 Month"
}
],
"description": "This pricing describes the recurring charge for a firewall service that can be deployed in business customer premise.",
"id": "5b24c90c-663b-1961-380c-43d3d7ed7fcc",
"name": "test",
"price": {
"unit": "USD",
"value": 50
},
"recurringChargePeriodType": "Monthly",
"priceType": "Recurring"
}