Implementation

The user exit must extend the com.ibm.paydir.autoadj.user.UserAutoAdjustImpl class to ensure future compatibility. The UserAutoAdjustImpl base class implements the com.ibm.paydir.autoadj.user.UserAutoAdjustInterface class and all the necessary getter and setter methods in the interface. The user must implement the following methods:
  • UserItemRecordsInterface[] getItemChargeBacks(AdjustedItem[] adjItems, Connection dbConn)
  • Boolean getItemChargeBacks(AdjustedItem[] adjItems, UserItemRecordsInterface[] itemsToInsert, Connection dbConn)
These user exit methods have access to the following field:
Presentment
A holder for information about the incoming batch (ICL) including originator RT, destination RT, and other data.
When the user exit code is compiled, the Adjustment_Utilities.jar, txaccessors.jar, and util.jar files must be included in the class path for the compiler. The UserAutoAdjustImpl and UserAutoAdjustInterface classes are packaged in the Adjustment_Utilities.jar file.

Example code for this user exit is provided in the SampleAutoAdjustUserExit.java file. The Java™ interface, UserAutoAdjustInterface, is described in the HTML files that are installed for AutoAdjust. To view the information about this interface, open the index.html file in a web browser and look for the class UserAutoAdjustInterface.

The files that you need are provided in the FTM artifacts pod and must be downloaded from the pod. For more information about getting files from the artifacts container for your offering, see Getting the files from the artifacts container for your FTM offering.

After the user exit is compiled, place it in a JAR file and then install it. For more information about installing compiled user exits, see User exits for the FTM components.