clean-jsdoc-theme TypeDoc APIv0.0.0

Price

interface Price { amount: number; currency: string; discountPercent?: number; originalAmount?: number; }

Source: Product.ts:57

Price information structure


Properties

amount: number

Price amount in smallest currency unit (e.g., cents)

Example

CODE
1999 represents $19.99

currency: string

Currency code (ISO 4217)

Example

CODE
'USD', 'EUR', 'CNY'

discountPercent: number

Discount percentage if applicable

originalAmount: number

Optional original price for displaying discounts