Optional
options: OptionsTransparent DB transaction settings not related to the transaction's payment, payer, or recurring options.
Optional
recurringOptions: RecurringOptionsStatic
fromJSONParses and Validates a JSON that's in a TranasctionRequest schema.
json object or json string that has a TransactionRequest shcema.
the parsed TransactionRequest object
Description
Wrapper class for the DirectAPI. This wrapper aims to make life easier for the Developer in a few ways:
TransactionRequest Class vs DirectAPI
The required fields are going to be a bit different from the DirectAPI but if something is optional in this class and required in the direct api, we will make sure that a default value is set.
You trade the directness of the API for the convenience and runtime safeguards of this class. Just because it's less direct doesn't means it's inaccurate though. Since we're using typescript to implement this class, strong typing is still there to ensure when the TransactionRequest converts the parameters into the Library API.
Remarks