src/app/models/price.model.ts
Model class describing a book's pricing information
See: PriceComponent, DiscountPipe
discountPercentage |
discountPercentage: |
Type : number
|
Defined in src/app/models/price.model.ts:20
|
Discount offered as a percent of the original price |
price |
price: |
Type : number
|
Defined in src/app/models/price.model.ts:15
|
Original price in dollars |
skuId |
skuId: |
Type : string
|
Defined in src/app/models/price.model.ts:10
|
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;
}