Cart

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

Represents a shopping cart with pricing details.

Parameters

totalAmount

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

tax

The tax amount applied to the cart.

shipping

The shipping cost for the cart.

currency

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

Constructors

Link copied to clipboard
constructor(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