src/app/core/models/product.ts
available_on |
available_on: |
Defined in src/app/core/models/product.ts:18
|
classifications |
classifications: |
Defined in src/app/core/models/product.ts:31
|
description |
description: |
Defined in src/app/core/models/product.ts:15
|
display_price |
display_price: |
Defined in src/app/core/models/product.ts:17
|
has_variants |
has_variants: |
Defined in src/app/core/models/product.ts:26
|
id |
id: |
Defined in src/app/core/models/product.ts:13
|
master |
master: |
Defined in src/app/core/models/product.ts:27
|
meta_description |
meta_description: |
Defined in src/app/core/models/product.ts:21
|
meta_keywords |
meta_keywords: |
Defined in src/app/core/models/product.ts:22
|
name |
name: |
Defined in src/app/core/models/product.ts:14
|
option_types |
option_types: |
Defined in src/app/core/models/product.ts:29
|
price |
price: |
Defined in src/app/core/models/product.ts:16
|
product_properties |
product_properties: |
Defined in src/app/core/models/product.ts:30
|
shipping_category_id |
shipping_category_id: |
Defined in src/app/core/models/product.ts:23
|
slug |
slug: |
Defined in src/app/core/models/product.ts:19
|
taxon_ids |
taxon_ids: |
Defined in src/app/core/models/product.ts:24
|
total_on_hand |
total_on_hand: |
Defined in src/app/core/models/product.ts:25
|
variants |
variants: |
Defined in src/app/core/models/product.ts:28
|
import { OptionType } from './option_type';
import { Classification } from './classification';
import { ProductProperty } from './product_property';
import { Variant } from './variant';
export class Product {
id: number;
name: string;
description: string;
price: string;
display_price: string;
available_on: string;
slug: string;
// meta_title: string; // meta title is present in schema but it is not returned by the spree Api.
meta_description: string;
meta_keywords: string;
shipping_category_id: number;
taxon_ids: number[];
total_on_hand: number;
has_variants: boolean;
master: Variant;
variants: Variant[];
option_types: OptionType[];
product_properties: ProductProperty[];
classifications: Classification[];
}