Skip to content

Add getJSON to ANetApiRequest#112

Open
scs-pedro wants to merge 1 commit into
AuthorizeNet:masterfrom
scs-pedro:master
Open

Add getJSON to ANetApiRequest#112
scs-pedro wants to merge 1 commit into
AuthorizeNet:masterfrom
scs-pedro:master

Conversation

@scs-pedro

Copy link
Copy Markdown

Added an abstract getJSON() function to ANetApiRequest, as all subclasses already contain a getJSON().

The justification is that it will allow for slightly simpler types when using the DefinitelyTyped types. e.g.,

T extends APIContracts.ANetApiRequest & { getJSON(): Record<string, T> }, can be simplified to
T extends APIContracts.ANetApiRequest, if the base class has the getJSON() function guaranteed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant