Search
Preparing search index...
The search index is not available
merchisdk
Options
All
Public
Public/Protected
All
Inherited
Menu
merchisdk
entities/variation
Variation
Class Variation
Hierarchy
Entity
Variation
Index
Constructors
constructor
Properties
archived
back
Objects
cart
Item
cost
create
currency
id
is
Dirty
job
key
merchi
once
Off
Cost
properties
Map
quantity
selectable
Options
selected
Options
unit
Cost
unit
Cost
Total
value
variation
Field
variation
Files
variations
Group
merchi
Methods
clean
Dirty
create
Factory
delete
from
Json
get
Primary
Key
Value
recover
save
to
Form
Data
to
Json
update
Order
get
list
Constructors
constructor
new
Variation
(
merchi
?:
Merchi
)
:
Variation
Parameters
Optional
merchi:
Merchi
Returns
Variation
Properties
Optional
archived
archived
:
null
|
Date
Readonly
back
Objects
back
Objects
:
Set
<
Entity
>
= ...
Optional
cart
Item
cart
Item
:
null
|
CartItem
Optional
cost
cost
:
number
create
create
:
(
options
?:
CreateOptions
)
=>
Promise
<
Variation
>
= ...
Type declaration
(
options
?:
CreateOptions
)
:
Promise
<
Variation
>
Parameters
Optional
options:
CreateOptions
Returns
Promise
<
Variation
>
Optional
currency
currency
:
string
Optional
id
id
:
number
is
Dirty
is
Dirty
:
boolean
= false
Optional
job
job
:
null
|
Job
key
key
:
string
= ...
merchi
merchi
:
Merchi
Optional
once
Off
Cost
once
Off
Cost
:
number
properties
Map
properties
Map
:
Map
<
string
,
PropertyInfo
>
Optional
quantity
quantity
:
number
Optional
selectable
Options
selectable
Options
:
VariationOption
[]
Optional
selected
Options
selected
Options
:
VariationOption
[]
Optional
unit
Cost
unit
Cost
:
number
Optional
unit
Cost
Total
unit
Cost
Total
:
number
Optional
value
value
:
null
|
string
Optional
variation
Field
variation
Field
:
VariationField
Optional
variation
Files
variation
Files
:
MerchiFile
[]
Optional
variations
Group
variations
Group
:
null
|
VariationsGroup
Static
merchi
merchi
:
Merchi
Methods
clean
Dirty
clean
Dirty
(
)
:
void
Returns
void
create
Factory
create
Factory
(
__namedParameters
:
Object
)
:
(
options
?:
CreateOptions
)
=>
Promise
<
this
>
Parameters
__namedParameters:
Object
Returns
(
options
?:
CreateOptions
)
=>
Promise
<
this
>
(
options
?:
CreateOptions
)
:
Promise
<
this
>
Parameters
Optional
options:
CreateOptions
Returns
Promise
<
this
>
delete
delete
(
options
?:
DeleteOptions
)
:
Promise
<
this
>
Parameters
Optional
options:
DeleteOptions
Returns
Promise
<
this
>
from
Json
from
Json
(
json
:
any
, options
?:
FromJsonOptions
)
:
this
Parameters
json:
any
Optional
options:
FromJsonOptions
Returns
this
get
Primary
Key
Value
get
Primary
Key
Value
(
)
:
any
Returns
any
recover
recover
(
options
?:
SaveOptions
)
:
Promise
<
this
>
Parameters
Optional
options:
SaveOptions
Returns
Promise
<
this
>
save
save
(
options
?:
SaveOptions
)
:
Promise
<
this
>
Parameters
Optional
options:
SaveOptions
Returns
Promise
<
this
>
to
Form
Data
to
Form
Data
(
options
?:
SerialiseOptions
, fileIndex
?:
Counter
)
:
FormData
Parameters
Optional
options:
SerialiseOptions
Optional
fileIndex:
Counter
Returns
FormData
to
Json
to
Json
(
)
:
any
Returns
any
update
Order
update
Order
(
property
:
string
)
:
void
Parameters
property:
string
Returns
void
Static
get
get<T>
(
key
:
string
|
number
, options
?:
GetOptions
)
:
Promise
<
InstanceType
<
T
>
>
Type parameters
T
:
typeof
Entity
Parameters
key:
string
|
number
Optional
options:
GetOptions
Returns
Promise
<
InstanceType
<
T
>
>
Static
list
list<T>
(
options
?:
ListOptions
)
:
Promise
<
ListResponse
<
InstanceType
<
T
>
>
>
Type parameters
T
:
typeof
Entity
Parameters
Optional
options:
ListOptions
Returns
Promise
<
ListResponse
<
InstanceType
<
T
>
>
>
Modules
entities/variation
Variation
constructor
archived
back
Objects
cart
Item
cost
create
currency
id
is
Dirty
job
key
merchi
once
Off
Cost
properties
Map
quantity
selectable
Options
selected
Options
unit
Cost
unit
Cost
Total
value
variation
Field
variation
Files
variations
Group
merchi
clean
Dirty
create
Factory
delete
from
Json
get
Primary
Key
Value
recover
save
to
Form
Data
to
Json
update
Order
get
list
Generated using
TypeDoc