Search
Preparing search index...
The search index is not available
merchisdk
Options
All
Public
Public/Protected
All
Inherited
Menu
merchisdk
entities/cart_item
CartItem
Class CartItem
Hierarchy
Entity
CartItem
Index
Constructors
constructor
Properties
archived
back
Objects
cart
create
creation
Date
currency
id
is
Dirty
key
merchi
notes
product
properties
Map
quantity
subtotal
Cost
tax
Amount
tax
Type
total
Cost
variations
variations
Groups
merchi
Methods
calculate
clean
Dirty
create
Factory
delete
from
Json
get
Primary
Key
Value
recover
requires
Shipment
save
to
Form
Data
to
Json
update
Order
get
list
Constructors
constructor
new
Cart
Item
(
merchi
?:
Merchi
)
:
CartItem
Parameters
Optional
merchi:
Merchi
Returns
CartItem
Properties
Optional
archived
archived
:
null
|
Date
Readonly
back
Objects
back
Objects
:
Set
<
Entity
>
= ...
Optional
cart
cart
:
Cart
create
create
:
(
options
?:
CreateOptions
)
=>
Promise
<
CartItem
>
= ...
Type declaration
(
options
?:
CreateOptions
)
:
Promise
<
CartItem
>
Parameters
Optional
options:
CreateOptions
Returns
Promise
<
CartItem
>
Optional
creation
Date
creation
Date
:
Date
Optional
currency
currency
:
number
Optional
id
id
:
number
is
Dirty
is
Dirty
:
boolean
= false
key
key
:
string
= ...
merchi
merchi
:
Merchi
Optional
notes
notes
:
null
|
string
Optional
product
product
:
Product
properties
Map
properties
Map
:
Map
<
string
,
PropertyInfo
>
Optional
quantity
quantity
:
number
Optional
subtotal
Cost
subtotal
Cost
:
number
Optional
tax
Amount
tax
Amount
:
number
Optional
tax
Type
tax
Type
:
CountryTax
Optional
total
Cost
total
Cost
:
number
Optional
variations
variations
:
Variation
[]
Optional
variations
Groups
variations
Groups
:
VariationsGroup
[]
Static
merchi
merchi
:
Merchi
Methods
calculate
calculate
(
)
:
Promise
<
this
>
Returns
Promise
<
this
>
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
>
requires
Shipment
requires
Shipment
(
)
:
boolean
Returns
boolean
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/cart_
item
Cart
Item
constructor
archived
back
Objects
cart
create
creation
Date
currency
id
is
Dirty
key
merchi
notes
product
properties
Map
quantity
subtotal
Cost
tax
Amount
tax
Type
total
Cost
variations
variations
Groups
merchi
calculate
clean
Dirty
create
Factory
delete
from
Json
get
Primary
Key
Value
recover
requires
Shipment
save
to
Form
Data
to
Json
update
Order
get
list
Generated using
TypeDoc