-
Notifications
You must be signed in to change notification settings - Fork 19
Custom and Additional fields lists uninstantiated in datarequest #57
Copy link
Copy link
Open
Description
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();
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels