Cart

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

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