Class CustomerContextMgr
Provides helper methods for managing customer context, such as the Effective Time for which the customer is shopping
at
Property Summary
| Property | Description |
|---|
| effectiveTime: Date | Get the effective time associated with the customer. |
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
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
effectiveTime
- effectiveTime: Date
Get the effective time associated with the customer. By default, the effective time is null.
Method Details
getEffectiveTime()
- static getEffectiveTime(): Date
Get the effective time associated with the customer. By default, the effective time is null.
Returns:
- effective time. When null is returned it means no effective time is associated with the customer
setEffectiveTime(Date)
- static setEffectiveTime(effectiveTime: Date): void
Set the effective time for the customer. Null is allowed to remove effective time from the customer.
Parameters:
- effectiveTime - the effective time.