plaid-node
plaid-node copied to clipboard
`RemovedTransaction.transaction_id` is optional
The type definition for RemovedTransaction is
/**
* A representation of a removed transaction
* @export
* @interface RemovedTransaction
*/
export interface RemovedTransaction {
/**
* The ID of the removed transaction.
* @type {string}
* @memberof RemovedTransaction
*/
transaction_id?: string;
}
However the docs do not describe transaction_id as nullable:
This is inconsistent - do we have to handle transaction_id === undefined?
Thanks for reporting, and sorry for the slow response! I think that's just an oversight in the OpenAPI file. transaction_id in this context should never be undefined.
This has now been fixed; the fix will be available in the next client library release