DocumentationAmertaThemeTypesInterfaces

Cart With Calculations

amerta


amerta / amerta/theme/types / CartWithCalculations

Interface: CartWithCalculations

Defined in: amerta/theme/types/index.d.ts:11

Properties

appliedCoupon?

optional appliedCoupon: string | AppliedCoupon | null

Defined in: amerta/theme/types/index.d.ts:17


discount

discount: number

Defined in: amerta/theme/types/index.d.ts:15


id

id: string

Defined in: amerta/theme/types/index.d.ts:12


items?

optional items: { id?: string | null; price: number; product: string | Product; quantity: number; salePrice?: number | null; variantOptions?: { id?: string | null; option: string | ProductOption; value: string; }[] | null; }[] | null

Defined in: amerta/theme/types/index.d.ts:13


status

status: "active" | "completed" | "abandoned"

Defined in: amerta/theme/types/index.d.ts:18


subtotal

subtotal: number

Defined in: amerta/theme/types/index.d.ts:14


total

total: number

Defined in: amerta/theme/types/index.d.ts:16