File

src/app/models/price.model.ts

Description

Model class describing a book's pricing information

See: PriceComponent, DiscountPipe

Properties

discountPercentage
discountPercentage: number
Type : number

Discount offered as a percent of the original price

price
price: number
Type : number

Original price in dollars

skuId
skuId: string
Type : string

Id of the book

export class Price {
    /**
     * Id of the book
     */
    skuId: string;

    /**
     * Original price in dollars
     */
    price: number;

    /**
     * Discount offered as a percent of the original price
     */
    discountPercentage: number;
}

results matching ""

    No results matching ""