File

src/app/core/models/variant.ts

Index

Properties

Properties

cost_price
cost_price: string
Type : string
depth
depth: string
Type : string
description
description: string
Type : string
display_price
display_price: string
Type : string
height
height: string
Type : string
id
id: number
Type : number
images
images: Image[]
Type : Image[]
in_stock
in_stock: boolean
Type : boolean
is_backorderable
is_backorderable: boolean
Type : boolean
is_destroyed
is_destroyed: boolean
Type : boolean
is_master
is_master: boolean
Type : boolean
is_orderable
is_orderable: boolean
Type : boolean
max_retail_price
max_retail_price: Price
Type : Price
name
name: string
Type : string
option_values
option_values: OptionValue[]
Type : OptionValue[]
options
options: any
Type : any
options_text
options_text: string
Type : string
price
price: string
Type : string
selling_price
selling_price: Price
Type : Price
sku
sku: string
Type : string
slug
slug: string
Type : string
total_on_hand
total_on_hand: number
Type : number
track_inventory
track_inventory: boolean
Type : boolean
weight
weight: string
Type : string
width
width: string
Type : string
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;
}

results matching ""

    No results matching ""