Search
Preparing search index...
The search index is not available
merchisdk
Options
All
Public
Public/Protected
All
Inherited
Menu
merchisdk
entities/variation_option
VariationOption
Class VariationOption
Hierarchy
Entity
VariationOption
Index
Constructors
constructor
Properties
back
Objects
colour
create
currency
default
field
Name
is
Dirty
key
linked
File
merchi
once
Off
Cost
option
Id
position
properties
Map
quantity
total
Cost
unit
Cost
unit
Cost
Total
value
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
Option
(
merchi
?:
Merchi
)
:
VariationOption
Parameters
Optional
merchi:
Merchi
Returns
VariationOption
Properties
Readonly
back
Objects
back
Objects
:
Set
<
Entity
>
= ...
Optional
colour
colour
:
null
|
string
create
create
:
(
options
?:
CreateOptions
)
=>
Promise
<
VariationOption
>
= ...
Type declaration
(
options
?:
CreateOptions
)
:
Promise
<
VariationOption
>
Parameters
Optional
options:
CreateOptions
Returns
Promise
<
VariationOption
>
Optional
currency
currency
:
string
Optional
default
default
:
boolean
Optional
field
Name
field
Name
:
string
is
Dirty
is
Dirty
:
boolean
= false
key
key
:
string
= ...
Optional
linked
File
linked
File
:
null
|
MerchiFile
merchi
merchi
:
Merchi
Optional
once
Off
Cost
once
Off
Cost
:
number
Optional
option
Id
option
Id
:
number
Optional
position
position
:
number
properties
Map
properties
Map
:
Map
<
string
,
PropertyInfo
>
Optional
quantity
quantity
:
number
Optional
total
Cost
total
Cost
:
number
Optional
unit
Cost
unit
Cost
:
number
Optional
unit
Cost
Total
unit
Cost
Total
:
number
Optional
value
value
:
null
|
string
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_
option
Variation
Option
constructor
back
Objects
colour
create
currency
default
field
Name
is
Dirty
key
linked
File
merchi
once
Off
Cost
option
Id
position
properties
Map
quantity
total
Cost
unit
Cost
unit
Cost
Total
value
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