# Class ProductListItem

- [TopLevel.Object](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md)
  - [dw.object.PersistentObject](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.PersistentObject.md)
    - [dw.object.ExtensibleObject](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.ExtensibleObject.md)
      - [dw.customer.ProductListItem](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md)

An item in a product list.  Types of items are:

- An item that references a product via the product's SKU.
- An item that represents a gift certificate.

## Constant Summary

| Constant                                                                                                                                | Description                                              |
| --------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| [TYPE_GIFT_CERTIFICATE](#type_gift_certificate): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) = 2 | Constant representing a gift certificate list item type. |
| [TYPE_PRODUCT](#type_product): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) = 1                   | Constant representing a product list item type.          |

## Property Summary

| Property                                                                                                                                                | Description                                                                                                                                  |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| [ID](#id): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                                             | Returns the unique system generated ID of the object.                                                                                        |
| [list](#list): [ProductList](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductList.md) `(read-only)`                            | Returns the product list that this item belongs to.                                                                                          |
| [priority](#priority): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)                                               | Specify the priority level for the item.                                                                                                     |
| [product](#product): [Product](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md)                                             | Returns the referenced product for this item.                                                                                                |
| [productID](#productid): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`                               | Returns the ID of the product referenced by this item.                                                                                       |
| [productOptionModel](#productoptionmodel): [ProductOptionModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductOptionModel.md) | Returns the ProductOptionModel for the product associated with this item,  or null if there is no valid product associated with this item.   |
| [public](#public): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)                                                 | A flag, typically used to determine whether the item should display  in a customer's view of the list (as opposed to the list owner's view). |
| [purchasedQuantity](#purchasedquantity): [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md) `(read-only)`           | Returns the sum of the quantities of all the individual purchase records  for this item.                                                     |
| [purchasedQuantityValue](#purchasedquantityvalue): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) `(read-only)`     | Returns the value part of the underlying purchased quantity object, as distinct  from the unit.                                              |
| [purchases](#purchases): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`                        | Returns all purchases made for this item.                                                                                                    |
| [quantity](#quantity): [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md)                                           | Returns the quantity of the item.                                                                                                            |
| [quantityValue](#quantityvalue): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)                                     | Returns the value part of the underlying quantity object, as distinct  from the unit.                                                        |
| [type](#type): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) `(read-only)`                                         | Returns the type of this product list item.                                                                                                  |

## Constructor Summary

This class does not have a constructor, so you cannot create it directly.

## Method Summary

| Method                                                                                                                                                                                                                                                                                                     | Description                                                                                                                                  |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| [createPurchase](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#createpurchasenumber-string)([Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md), [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)) | Create a purchase record for this item.                                                                                                      |
| [getID](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#getid)()                                                                                                                                                                                                      | Returns the unique system generated ID of the object.                                                                                        |
| [getList](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#getlist)()                                                                                                                                                                                                  | Returns the product list that this item belongs to.                                                                                          |
| [getPriority](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#getpriority)()                                                                                                                                                                                          | Specify the priority level for the item.                                                                                                     |
| [getProduct](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#getproduct)()                                                                                                                                                                                            | Returns the referenced product for this item.                                                                                                |
| [getProductID](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#getproductid)()                                                                                                                                                                                        | Returns the ID of the product referenced by this item.                                                                                       |
| [getProductOptionModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#getproductoptionmodel)()                                                                                                                                                                      | Returns the ProductOptionModel for the product associated with this item,  or null if there is no valid product associated with this item.   |
| [getPurchasedQuantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#getpurchasedquantity)()                                                                                                                                                                        | Returns the sum of the quantities of all the individual purchase records  for this item.                                                     |
| [getPurchasedQuantityValue](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#getpurchasedquantityvalue)()                                                                                                                                                              | Returns the value part of the underlying purchased quantity object, as distinct  from the unit.                                              |
| [getPurchases](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#getpurchases)()                                                                                                                                                                                        | Returns all purchases made for this item.                                                                                                    |
| [getQuantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#getquantity)()                                                                                                                                                                                          | Returns the quantity of the item.                                                                                                            |
| [getQuantityValue](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#getquantityvalue)()                                                                                                                                                                                | Returns the value part of the underlying quantity object, as distinct  from the unit.                                                        |
| [getType](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#gettype)()                                                                                                                                                                                                  | Returns the type of this product list item.                                                                                                  |
| [isPublic](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#ispublic)()                                                                                                                                                                                                | A flag, typically used to determine whether the item should display  in a customer's view of the list (as opposed to the list owner's view). |
| [setPriority](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#setprioritynumber)([Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md))                                                                                                  | Specify the priority level for the item.                                                                                                     |
| ~~[setProduct](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#setproductproduct)([Product](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md))~~                                                                                           | Sets the referenced product for this item by storing the product's id.                                                                       |
| [setProductOptionModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#setproductoptionmodelproductoptionmodel)([ProductOptionModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductOptionModel.md))                                        | Store a product option model with this object.                                                                                               |
| [setPublic](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#setpublicboolean)([Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md))                                                                                                   | Typically used to determine if the item is visible to other customers.                                                                       |
| ~~[setQuantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#setquantityquantity)([Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md))~~                                                                                        | Sets the quantity of the item.                                                                                                               |
| [setQuantityValue](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#setquantityvaluenumber)([Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md))                                                                                        | Set the value part of the underlying quantity object, as distinct from  the unit.                                                            |

### Methods inherited from class ExtensibleObject

[describe](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.ExtensibleObject.md#describe), [getCustom](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.ExtensibleObject.md#getcustom)

### Methods inherited from class PersistentObject

[getCreationDate](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.PersistentObject.md#getcreationdate), [getLastModified](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.PersistentObject.md#getlastmodified), [getUUID](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.PersistentObject.md#getuuid)

### Methods inherited from class Object

[assign](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#assignobject-object), [create](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#createobject), [create](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#createobject-object), [defineProperties](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#definepropertiesobject-object), [defineProperty](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#definepropertyobject-object-object), [entries](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#entriesobject), [freeze](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#freezeobject), [fromEntries](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#fromentriesiterable), [getOwnPropertyDescriptor](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertydescriptorobject-object), [getOwnPropertyNames](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertynamesobject), [getOwnPropertySymbols](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertysymbolsobject), [getPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getprototypeofobject), [hasOwnProperty](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#hasownpropertystring), [is](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isobject-object), [isExtensible](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isextensibleobject), [isFrozen](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isfrozenobject), [isPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isprototypeofobject), [isSealed](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#issealedobject), [keys](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#keysobject), [preventExtensions](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#preventextensionsobject), [propertyIsEnumerable](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#propertyisenumerablestring), [seal](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#sealobject), [setPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#setprototypeofobject-object), [toLocaleString](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#tolocalestring), [toString](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#tostring), [valueOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#valueof), [values](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#valuesobject)

## Constant Details

### TYPE_GIFT_CERTIFICATE

- TYPE_GIFT_CERTIFICATE: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) = 2
  - : Constant representing a gift certificate list item type.

***

### TYPE_PRODUCT

- TYPE_PRODUCT: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) = 1
  - : Constant representing a product list item type.

***

## Property Details

### ID

- ID: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the unique system generated ID of the object.

***

### list

- list: [ProductList](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductList.md) `(read-only)`
  - : Returns the product list that this item belongs to.

***

### priority

- priority: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)
  - : Specify the priority level for the item.  Typically the lower the
    number, the higher the priority. This can be used by the owner of the product list
    to express which items he/she likes to get purchased first.

***

### product

- product: [Product](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md)
  - : Returns the referenced product for this item.  The reference is made
    via the product ID attribute.  This method returns null if there is
    no such product in the system or if the product exists but is not
    assigned to the site catalog.

***

### productID

- productID: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns the ID of the product referenced by this item.
    This attribute is set when a product is assigned via setProduct().
    It is possible for the ID to reference a product that doesn't exist
    anymore.  In this case getProduct() would return null.

***

### productOptionModel

- productOptionModel: [ProductOptionModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductOptionModel.md)
  - : Returns the ProductOptionModel for the product associated with this item,
    or null if there is no valid product associated with this item.

***

### public

- public: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : A flag, typically used to determine whether the item should display
    in a customer's view of the list (as opposed to the list owner's view).

***

### purchasedQuantity

- purchasedQuantity: [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md) `(read-only)`
  - : Returns the sum of the quantities of all the individual purchase records
    for this item.

***

### purchasedQuantityValue

- purchasedQuantityValue: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) `(read-only)`
  - : Returns the value part of the underlying purchased quantity object, as distinct
    from the unit.

***

### purchases

- purchases: [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md) `(read-only)`
  - : Returns all purchases made for this item.

***

### quantity

- quantity: [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md)
  - : Returns the quantity of the item.
    The quantity is the number of products or gift certificates
    that get shipped when purchasing this product list item.

***

### quantityValue

- quantityValue: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)
  - : Returns the value part of the underlying quantity object, as distinct
    from the unit.

***

### type

- type: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md) `(read-only)`
  - : Returns the type of this product list item.

***

## Method Details

### createPurchase(Number, String)

- createPurchase(quantity: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md), purchaserName: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): [ProductListItemPurchase](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItemPurchase.md)
  - : Create a purchase record for this item.

    **Parameters:**

    - quantity - The number of items purchased.
    - purchaserName - The name of the purchaser.

    **Returns:**

    - the purchase record.

***

### getID()

- getID(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the unique system generated ID of the object.

    **Returns:**

    - the ID of object.

***

### getList()

- getList(): [ProductList](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductList.md)
  - : Returns the product list that this item belongs to.

    **Returns:**

    - the list.

***

### getPriority()

- getPriority(): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)
  - : Specify the priority level for the item.  Typically the lower the
    number, the higher the priority. This can be used by the owner of the product list
    to express which items he/she likes to get purchased first.

    **Returns:**

    - the specified priority level.

***

### getProduct()

- getProduct(): [Product](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md)
  - : Returns the referenced product for this item.  The reference is made
    via the product ID attribute.  This method returns null if there is
    no such product in the system or if the product exists but is not
    assigned to the site catalog.

    **Returns:**

    - the product referenced by this item, or null.

***

### getProductID()

- getProductID(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the ID of the product referenced by this item.
    This attribute is set when a product is assigned via setProduct().
    It is possible for the ID to reference a product that doesn't exist
    anymore.  In this case getProduct() would return null.

    **Returns:**

    - the product ID, or null if none exists.

***

### getProductOptionModel()

- getProductOptionModel(): [ProductOptionModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductOptionModel.md)
  - : Returns the ProductOptionModel for the product associated with this item,
    or null if there is no valid product associated with this item.

    **Returns:**

    - the associated ProductOptionModel or null.

***

### getPurchasedQuantity()

- getPurchasedQuantity(): [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md)
  - : Returns the sum of the quantities of all the individual purchase records
    for this item.

    **Returns:**

    - the sum of the quantities of all the individual purchase records
      for this item.

***

### getPurchasedQuantityValue()

- getPurchasedQuantityValue(): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)
  - : Returns the value part of the underlying purchased quantity object, as distinct
    from the unit.

    **Returns:**

    - the value part of the underlying purchased quantity object, as distinct
      from the unit.

***

### getPurchases()

- getPurchases(): [Collection](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.util.Collection.md)
  - : Returns all purchases made for this item.

    **Returns:**

    - the collection of purchase records for this item. Returns an empty list
      if this item has not been purchased yet.

***

### getQuantity()

- getQuantity(): [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md)
  - : Returns the quantity of the item.
    The quantity is the number of products or gift certificates
    that get shipped when purchasing this product list item.

    **Returns:**

    - the quantity of the item.

***

### getQuantityValue()

- getQuantityValue(): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)
  - : Returns the value part of the underlying quantity object, as distinct
    from the unit.

    **Returns:**

    - the value part of the underlying quantity object, as distinct
      from the unit.

***

### getType()

- getType(): [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)
  - : Returns the type of this product list item.

    **Returns:**

    - a code that specifies the type of item (i.e. product or gift certificate).

***

### isPublic()

- isPublic(): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : A flag, typically used to determine whether the item should display
    in a customer's view of the list (as opposed to the list owner's view).

    **Returns:**

    - true if the item is public.

***

### setPriority(Number)

- setPriority(priority: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)): void
  - : Specify the priority level for the item.  Typically the lower the
    number, the higher the priority. This can be used by the owner of the product list
    to express which items he/she likes to get purchased first.

    **Parameters:**

    - priority - The new priority level.

***

### setProduct(Product)

- ~~setProduct(product: [Product](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.Product.md)): void~~
  - : Sets the referenced product for this item by storing the product's id.
    If null is specified, then the id is set to null.

    **Parameters:**

    - product - The referenced product for this item.

    **Deprecated:**

:::warning
Use [ProductList.createProductItem(Product)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductList.md#createproductitemproduct) instead.
:::

***

### setProductOptionModel(ProductOptionModel)

- setProductOptionModel(productOptionModel: [ProductOptionModel](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.catalog.ProductOptionModel.md)): void
  - : Store a product option model with this object.  This stores a copy
    of the specified model, rather than an assocation to the same instance.

    **Parameters:**

    - productOptionModel - The object to store.

***

### setPublic(Boolean)

- setPublic(flag: [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)): void
  - : Typically used to determine if the item is visible to other customers.

    **Parameters:**

    - flag - If true, this product list becomes visible to other customers.  If false, this product list can only be seen by the owner of the product list.

***

### setQuantity(Quantity)

- ~~setQuantity(value: [Quantity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.Quantity.md)): void~~
  - : Sets the quantity of the item.

    **Parameters:**

    - value - the new quantity of the item.

    **Deprecated:**

:::warning
Use [setQuantityValue(Number)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.customer.ProductListItem.md#setquantityvaluenumber) instead.
:::

***

### setQuantityValue(Number)

- setQuantityValue(value: [Number](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Number.md)): void
  - : Set the value part of the underlying quantity object, as distinct from
    the unit.

    **Parameters:**

    - value - the value to use.

***
