Skip to content

Custom and Additional fields lists uninstantiated in datarequest #57

@ghost

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();
		}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions