Class ExtensibleObject

Base class for all persistent business objects in Commerce Cloud Digital that are customizable through the metadata system. All objects in Digital that have custom attributes derive from ExtensibleObject including both system-defined and custom objects. The describe() method provides access to the related object-type metadata. The method getCustom() is the central point to retrieve and store the objects attribute values themselves.

All Known Subclasses 

ActiveData, Basket, BonusDiscountLineItem, Campaign, Catalog, Category, CategoryAssignment, Content, ContentSearchRefinementDefinition, CouponLineItem, CustomObject, CustomerActiveData, CustomerAddress, CustomerGroup, CustomerPaymentInstrument, EncryptedObject, Folder, GiftCertificate, GiftCertificateLineItem, Library, LineItem, LineItemCtnr, Order, OrderAddress, OrderPaymentInstrument, OrganizationPreferences, PaymentCard, PaymentInstrument, PaymentMethod, PaymentProcessor, PaymentTransaction, PriceAdjustment, PriceBook, Product, ProductActiveData, ProductInventoryList, ProductInventoryRecord, ProductLineItem, ProductList, ProductListItem, ProductListItemPurchase, ProductListRegistrant, ProductOption, ProductOptionValue, ProductSearchRefinementDefinition, ProductShippingLineItem, Profile, Promotion, Recommendation, SearchRefinementDefinition, ServiceConfig, ServiceCredential, ServiceProfile, Shipment, ShippingLineItem, ShippingMethod, SitePreferences, SourceCodeGroup, Store, StoreGroup, Variant, VariationGroup

Property Summary 

PropertyDescription
custom: CustomAttributes (read-only)Returns the custom attributes for this object.

Constructor Summary 

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

Method Summary 

MethodDescription
describe()Returns the meta data of this object.
getCustom()Returns the custom attributes for this object.

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 

custom 

custom: CustomAttributes (read-only)

Returns the custom attributes for this object. The returned object is used for retrieving and storing attribute values. See CustomAttributes for a detailed example of the syntax for working with custom attributes.


Method Details 

describe() 

describe(): ObjectTypeDefinition

Returns the meta data of this object. If no meta data is available the method returns null. The returned ObjectTypeDefinition can be used to retrieve the metadata for any of the custom attributes.

Returns:

  • the meta data of this object. If no meta data is available the method returns null.

getCustom() 

getCustom(): CustomAttributes

Returns the custom attributes for this object. The returned object is used for retrieving and storing attribute values. See CustomAttributes for a detailed example of the syntax for working with custom attributes.

Returns:

  • the custom attributes for this object.