CartExtension.OptionalCartItem

This object may provide information about a specific CartExtension.CartItem.

Methods 

global static OptionalCartItem of(CartItem cartItem) 

Set specified CartItem

Returns 

TypeDescription
OptionalCartItemOptionalCartItem

global static OptionalCartItem empty() 

Set empty CartItem

Returns 

TypeDescription
OptionalCartItemOptionalCartItem

global CartItem get() 

Get CartItem

Returns 

TypeDescription
CartItemCartItem

Throws 

ExceptionDescription
OptionalNotCheckedExceptionIf the isPresent() method was not called prior to calling this method

global Boolean isPresent() 

Checks if CartItem exists (not null)

Returns 

TypeDescription
BooleanBoolean

Newer Version Available

This content describes an older version of this product. View Latest