Generating stub file

Merchant Gateway SDK can generate the basic java skeleton code and the file. The basic java skeleton code can be used for the Merchant Gateway class (stub file). The file is used for testing the class. The name of the class as well as the names of the fields are taken from there. Constructor and field initialization is generated, along with the methods that have to be implemented. To generate a stub file, execute ant stub. Stub file generation is based on deployment descriptor.

By default, stub generator assumes that all fields are strings. The only exceptions are the fields that have the attribute check="vIntegerRequired" set. In that case, it will treat field as an integer.