---
schema_version: "1"
id: eb5540a900cde2817316f8c97119737f26b771b8349c8a133f0f1d339cec301b
title: TPM_RTRReportingWrapper_AMS (Base Class)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/cgcloud_rtr_dev_guide/tpm_rtr_class_tpm_rtrreportingwrapper_ams.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.cgcloud_rtr_dev_guide.meta/cgcloud_rtr_dev_guide/tpm_rtr_class_tpm_rtrreportingwrapper_ams.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6e51657da0dc81078fb69f1645092861415a8b2dd8b53b17a5420433491dc638
description: 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.
---
# 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.

![Note](https://developer.salesforce.com/docs/atlas.en-us.cgcloud_rtr_dev_guide.meta/cgcloud_rtr_dev_guide/images/icon_note.png)

#### Note

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.

**Sample Code**

global with sharing class TPM\_RTRReportingWrapper\_AMS {
global class Periodmonth {
global Integer year;
global Integer start;
global Integer total;
}
global class InputPayload {
global List<String> accountsfids;
global List<String> productsfids;
global Periodmonth periodmonth;
global String timelevel;
global List<String> readproductsfids;
global List<String> kpis;
global String responsetype;
global Boolean error;
}
global class OutputRecord {
global String pdim;
global String kdim;
global String tdim;
global Double v;
global OutputRecord(String pdim, String kdim, String tdim, Double v) {
this.pdim = pdim;
this.kdim = kdim;
this.tdim = tdim;
this.v = v;
}
}
}