TPM_RTRReportingWrapper_AMS (Base Class)

TPM_RTRReportingWrapper_AMS is a base Apex class that receives the payload that’s constructed by filter selection in the report. The payload contains the KPIs that are defined in the report, the customer, dates, and other important attributes. It then deserializes the payload into an object that can be used in all other related classes.

Ensure that this wrapper class name is the same as the one in the Fund Amount use case. However, to incorporate this class with the fund amount scenario, modify the class.

Note

Sample Code

1global with sharing class TPM_RTRReportingWrapper_AMS {
2global class Periodmonth {
3global Integer year;
4global Integer start;
5global Integer total;
6}
7global class InputPayload {
8global List<String> accountsfids;
9global List<String> productsfids;
10global Periodmonth periodmonth;
11global String timelevel;
12global List<String> readproductsfids;
13global List<String> kpis;
14global String responsetype;
15global Boolean error;
16}
17global class OutputRecord {
18global String pdim;
19global String kdim;
20global String tdim;
21global Double v;
22global OutputRecord(String pdim, String kdim, String tdim, Double v) {
23this.pdim = pdim;
24this.kdim = kdim;
25this.tdim = tdim;
26this.v = v;
27}
28}
29}