Transaction

data class Transaction(val transactionId: String, val totalAmount: Double, val tax: Double, val shipping: Double, val currency: String)

Represents a transaction with its cost details.

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").

Constructors

Link copied to clipboard
constructor(transactionId: String, totalAmount: Double, tax: Double, shipping: Double, currency: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tax: Double
Link copied to clipboard
Link copied to clipboard