TMFTMForumProductOfferingPriceResult

This Data Mapper is used in the TMFTMForumCreateProductOfferingPrice IP.

Input JSON 

1{
2"vlocity_cmt__PromotionId__r": {
3"vlocity_cmt__DurationTimePlanId__r": {
4"Id": "a3g5e000000ZOHkAAO",
5"vlocity_cmt__TotalDurationUoM__c": "Month",
6"vlocity_cmt__TotalDuration__c": 12,
7"attributes": {
8"url": "/services/data/v55.0/sobjects/vlocity_cmt__TimePlan__c/a3g5e000000ZOHkAAO",
9"type": "vlocity_cmt__TimePlan__c"
10}
11},
12"Id": "a3T5e000000IGyTEAW",
13"vlocity_cmt__DurationTimePlanId__c": "a3g5e000000ZOHkAAO",
14"vlocity_cmt__EffectiveStartDate__c": "2020-09-22T16:42:23.000+0000",
15"vlocity_cmt__EffectiveEndDate__c": "2023-09-22T00:00:00.000+0000",
16"vlocity_cmt__Description__c": "12 month contract",
17"Name": "12 Month",
18"attributes": {
19"url": "/services/data/v55.0/sobjects/vlocity_cmt__Promotion__c/a3T5e000000IGyTEAW",
20"type": "vlocity_cmt__Promotion__c"
21}
22},
23"vlocity_cmt__PricingElementId__r": {
24"vlocity_cmt__PricingVariableId__r": {
25"Id": "a3J5e000000duIhEAI",
26"vlocity_cmt__RecurringFrequency__c": "Monthly",
27"vlocity_cmt__ChargeType__c": "Recurring",
28"attributes": {
29"url": "/services/data/v55.0/sobjects/vlocity_cmt__PricingVariable__c/a3J5e000000duIhEAI",
30"type": "vlocity_cmt__PricingVariable__c"
31}
32},
33"Id": "a3F5e000000G1xXEAS",
34"vlocity_cmt__PricingVariableId__c": "a3J5e000000duIhEAI",
35"vlocity_cmt__CurrencyCode__c": "USD",
36"vlocity_cmt__Amount__c": 50,
37"attributes": {
38"url": "/services/data/v55.0/sobjects/vlocity_cmt__PricingElement__c/a3F5e000000G1xXEAS",
39"type": "vlocity_cmt__PricingElement__c"
40}
41},
42"Id": "a3C5e000000KmP5EAK",
43"vlocity_cmt__PromotionId__c": "a3T5e000000IGyTEAW",
44"vlocity_cmt__PricingElementId__c": "a3F5e000000G1xXEAS",
45"vlocity_cmt__EffectiveUntilDate__c": "2023-09-22T00:00:00.000+0000",
46"vlocity_cmt__EffectiveFromDate__c": "2020-09-22T00:00:00.000+0000",
47"vlocity_cmt__DisplayText__c": "This pricing describes the recurring charge for a firewall service that can be deployed in business customer premise.",
48"vlocity_cmt__GlobalKey__c": "5b24c90c-663b-1961-380c-43d3d7ed7fcc",
49"Name": "test",
50"attributes": {
51"url": "/services/data/v55.0/sobjects/vlocity_cmt__PriceListEntry__c/a3C5e000000KmP5EAK",
52"type": "vlocity_cmt__PriceListEntry__c"
53},
54"id": "a3C5e000000KmP5EAK",
55"result": null,
56"epcResponse": {
57"errorCode": "400",
58"overallResult": "success",
59"entities": [
60{
61"entity": {
62"vlocity_cmt__PromotionId__c": "a3T5e000000IGyTEAW",
63"vlocity_cmt__PricingElementId__c": "a3F5e000000G1xXEAS",
64"vlocity_cmt__PricingElementGlobalKey__c": "9b29691c-8c1e-e0c4-4cdd-9369cd6ff0d9",
65"vlocity_cmt__PricingElementAmount__c": 50,
66"vlocity_cmt__PriceListName__c": "B2C",
67"vlocity_cmt__IsVirtualPrice__c": false,
68"vlocity_cmt__IsOverride__c": false,
69"vlocity_cmt__IsBasePrice__c": false,
70"vlocity_cmt__IsActive__c": true,
71"vlocity_cmt__GlobalKey__c": "5b24c90c-663b-1961-380c-43d3d7ed7fcc",
72"vlocity_cmt__EffectiveUntilDate__c": "2023-09-22T00:00:00.000+0000",
73"vlocity_cmt__EffectiveFromDate__c": "2020-09-22T00:00:00.000+0000",
74"vlocity_cmt__DisplayText__c": "This pricing describes the recurring charge for a firewall service that can be deployed in business customer premise.",
75"vlocity_cmt__PriceListId__c": "a3D5e000000LZJUEA4",
76"LastReferencedDate": "2022-09-14T16:26:33.000+0000",
77"LastViewedDate": "2022-09-14T16:26:33.000+0000",
78"SystemModstamp": "2022-09-14T16:26:33.000+0000",
79"LastModifiedById": "0055e000001m0OCAAY",
80"LastModifiedDate": "2022-09-14T16:26:33.000+0000",
81"CreatedById": "0055e000001m0OCAAY",
82"CreatedDate": "2022-09-14T16:26:33.000+0000",
83"Name": "test",
84"IsDeleted": false,
85"Id": "a3C5e000000KmP5EAK",
86"attributes": {
87"url": "/services/data/v55.0/sobjects/vlocity_cmt__PriceListEntry__c/a3C5e000000KmP5EAK",
88"type": "vlocity_cmt__PriceListEntry__c"
89}
90}
91}
92]
93}
94}

Output JSON 

1{
2"statusCode": "201",
3"validFor": {
4"startDateTime": "2020-09-22T00:00:00.000+0000",
5"endDateTime": "2023-09-22T00:00:00.000+0000"
6},
7"productOfferingTerm": [
8{
9"validFor": {
10"endDateTime": "2023-09-22T00:00:00.000+0000",
11"startDateTime": "2020-09-22T16:42:23.000+0000"
12},
13"duration": {
14"units": "Month",
15"amount": 12
16},
17"description": "12 month contract",
18"name": "12 Month"
19}
20],
21"description": "This pricing describes the recurring charge for a firewall service that can be deployed in business customer premise.",
22"id": "5b24c90c-663b-1961-380c-43d3d7ed7fcc",
23"name": "test",
24"price": {
25"unit": "USD",
26"value": 50
27},
28"recurringChargePeriodType": "Monthly",
29"priceType": "Recurring"
30}