Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Transaction

Transaction Generator Used to generate transaction ids for matching responses with requests

You must instantiate a new Transaction instance to get a fresh transaction id

const transaction = new Transaction();
console.log(transaction.getTransactionId());
assert(transaction.getTransactionId() == transaction.getTransactionId());
export

Hierarchy

  • Transaction

Index

Constructors

Methods

Constructors

constructor

  • Creates an instance of Transaction and initializes a random transactionId

    memberof

    Transaction

    Returns Transaction

Methods

getTransactionId

  • getTransactionId(): string
  • Returns the generated TransactionId

    memberof

    Transaction

    Returns string

Generated using TypeDoc