src/app/core/models/variant.ts
Properties |
| cost_price |
cost_price:
|
Type : string
|
|
Defined in src/app/core/models/variant.ts:23
|
| depth |
depth:
|
Type : string
|
|
Defined in src/app/core/models/variant.ts:18
|
| description |
description:
|
Type : string
|
|
Defined in src/app/core/models/variant.ts:21
|
| display_price |
display_price:
|
Type : string
|
|
Defined in src/app/core/models/variant.ts:26
|
| height |
height:
|
Type : string
|
|
Defined in src/app/core/models/variant.ts:16
|
| id |
id:
|
Type : number
|
|
Defined in src/app/core/models/variant.ts:11
|
| images |
images:
|
Type : Image[]
|
|
Defined in src/app/core/models/variant.ts:32
|
| in_stock |
in_stock:
|
Type : boolean
|
|
Defined in src/app/core/models/variant.ts:28
|
| is_backorderable |
is_backorderable:
|
Type : boolean
|
|
Defined in src/app/core/models/variant.ts:29
|
| is_destroyed |
is_destroyed:
|
Type : boolean
|
|
Defined in src/app/core/models/variant.ts:30
|
| is_master |
is_master:
|
Type : boolean
|
|
Defined in src/app/core/models/variant.ts:19
|
| is_orderable |
is_orderable:
|
Type : boolean
|
|
Defined in src/app/core/models/variant.ts:31
|
| max_retail_price |
max_retail_price:
|
Type : Price
|
|
Defined in src/app/core/models/variant.ts:35
|
| name |
name:
|
Type : string
|
|
Defined in src/app/core/models/variant.ts:12
|
| option_values |
option_values:
|
Type : OptionValue[]
|
|
Defined in src/app/core/models/variant.ts:24
|
| options |
options:
|
Type : any
|
|
Defined in src/app/core/models/variant.ts:33
|
| options_text |
options_text:
|
Type : string
|
|
Defined in src/app/core/models/variant.ts:27
|
| price |
price:
|
Type : string
|
|
Defined in src/app/core/models/variant.ts:14
|
| selling_price |
selling_price:
|
Type : Price
|
|
Defined in src/app/core/models/variant.ts:34
|
| sku |
sku:
|
Type : string
|
|
Defined in src/app/core/models/variant.ts:13
|
| slug |
slug:
|
Type : string
|
|
Defined in src/app/core/models/variant.ts:20
|
| total_on_hand |
total_on_hand:
|
Type : number
|
|
Defined in src/app/core/models/variant.ts:25
|
| track_inventory |
track_inventory:
|
Type : boolean
|
|
Defined in src/app/core/models/variant.ts:22
|
| weight |
weight:
|
Type : string
|
|
Defined in src/app/core/models/variant.ts:15
|
| width |
width:
|
Type : string
|
|
Defined in src/app/core/models/variant.ts:17
|
import { Image } from './image';
import { OptionValue } from './option_value';
import { Price } from './price';
/*
* Product model
* Detailed info http://guides.spreecommerce.org/developer/products.html#variants
* Public API's http://guides.spreecommerce.org/api/variants.html
*/
export class Variant {
id: number;
name: string;
sku: string;
price: string;
weight: string;
height: string;
width: string;
depth: string;
is_master: boolean;
slug: string;
description: string;
track_inventory: boolean;
cost_price: string;
option_values: OptionValue[];
total_on_hand: number;
display_price: string;
options_text: string;
in_stock: boolean;
is_backorderable: boolean;
is_destroyed: boolean;
is_orderable: boolean;
images: Image[];
options: any;
selling_price: Price;
max_retail_price: Price;
}