Custom and Additional fields lists uninstantiated in datarequest
The problem
In BuckarooSdk.DataTypes.RequestBases.DataBase the CustomParameters and AdditionalParameters classes are not instantiated which means the lists of these classes will also not be instantiated.
Thus trying to call the methods AddCustomParameter or AddAdditionalParameter will result in an exception.
Proposed solution
Instantiate classes additionalparameters and customparameters in the constructor of DataBase
public DataBase()
{
this.CustomParameters = new CustomParameters();
this.AdditionalParameters = new AdditionalParameters();
this.Services = new Services.DataRequestServices();
this.OriginalTransactionReference = new TransactionReference();
this.ClientIp = new IpAddress();
}
Custom and Additional fields lists uninstantiated in datarequest
The problem
In BuckarooSdk.DataTypes.RequestBases.DataBase the
CustomParametersandAdditionalParametersclasses are not instantiated which means the lists of these classes will also not be instantiated.Thus trying to call the methods
AddCustomParameterorAddAdditionalParameterwill result in an exception.Proposed solution
Instantiate classes additionalparameters and customparameters in the constructor of DataBase