Transaction

constructor(transactionId: String, totalAmount: Double, tax: Double, shipping: Double, currency: String)

Parameters

transactionId

The unique identifier for the transaction.

totalAmount

The total cost of items in the transaction, excluding tax and shipping.

tax

The tax amount applied to the transaction.

shipping

The shipping cost for the transaction.

currency

The currency code for the transaction's monetary values (e.g., "USD").