Class CategoryAssignment

Represents a category assignment in Commerce Cloud Digital.

Property Summary 

PropertyDescription
calloutMsg: MarkupText (read-only)Returns the category assignment’s callout message in the current locale.
category: Category (read-only)Returns the category to which this category assignment is bound.
image: MediaFile (read-only)Returns the category assignment’s image.
longDescription: MarkupText (read-only)Returns the category assignment’s long description in the current locale.
name: String (read-only)Returns the name of the category assignment in the current locale.
product: Product (read-only)Returns the product to which this category assignment is bound.
shortDescription: MarkupText (read-only)Returns the category assignment’s short description in the current locale.

Constructor Summary 

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

Method Summary 

MethodDescription
getCalloutMsg()Returns the category assignment’s callout message in the current locale.
getCategory()Returns the category to which this category assignment is bound.
getImage()Returns the category assignment’s image.
getLongDescription()Returns the category assignment’s long description in the current locale.
getName()Returns the name of the category assignment in the current locale.
getProduct()Returns the product to which this category assignment is bound.
getShortDescription()Returns the category assignment’s short description in the current locale.

Methods inherited from class ExtensibleObject 

describe, getCustom

Methods inherited from class PersistentObject 

getCreationDate, getLastModified, getUUID

Methods inherited from class Object 

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Property Details 

calloutMsg 

calloutMsg: MarkupText (read-only)

Returns the category assignment's callout message in the current locale.


category 

category: Category (read-only)

Returns the category to which this category assignment is bound.


image 

image: MediaFile (read-only)

Returns the category assignment's image.


longDescription 

longDescription: MarkupText (read-only)

Returns the category assignment's long description in the current locale.


name 

name: String (read-only)

Returns the name of the category assignment in the current locale.


product 

product: Product (read-only)

Returns the product to which this category assignment is bound.


shortDescription 

shortDescription: MarkupText (read-only)

Returns the category assignment's short description in the current locale.


Method Details 

getCalloutMsg() 

getCalloutMsg(): MarkupText

Returns the category assignment's callout message in the current locale.

Returns:

  • the category assignment's callout message in the current locale, or null if it wasn't found.

getCategory() 

getCategory(): Category

Returns the category to which this category assignment is bound.

Returns:

  • The category to which this category assignment is bound.

getImage() 

getImage(): MediaFile

Returns the category assignment's image.

Returns:

  • the category assignment's image.

getLongDescription() 

getLongDescription(): MarkupText

Returns the category assignment's long description in the current locale.

Returns:

  • The category assignment's long description in the current locale, or null if it wasn't found.

getName() 

getName(): String

Returns the name of the category assignment in the current locale.

Returns:

  • The name of the category assignment for the current locale, or null if it wasn't found.

getProduct() 

getProduct(): Product

Returns the product to which this category assignment is bound.

Returns:

  • The product to which this category assignment is bound.

getShortDescription() 

getShortDescription(): MarkupText

Returns the category assignment's short description in the current locale.

Returns:

  • the category assignment's short description in the current locale, or null if it wasn't found.

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!