ConfigurationActions (Commerce Engine)
ConfigurationActions (Commerce Engine)
This is for:
DeveloperThe configuration action creators.
See Dispatch Actions.
Loader Function
loadConfigurationActions
Loads the configuration reducer and returns the available commerce configuration action creators.
Parameters
-
engine:
CommerceEngine
The commerce engine.
Returns ConfigurationActionCreators
: The configuration action creators.
ConfigurationActionCreators
disableAnalytics
Disables analytics.
Returns PayloadAction<void>
: A dispatchable action.
enableAnalytics
Enables analytics.
Returns PayloadAction<void>
: A dispatchable action.
updateAnalyticsConfiguration
Updates the analytics configuration.
Parameters
-
payload:
Pick<UpdateAnalyticsConfigurationActionCreatorPayload, 'enabled' | 'source' | 'trackingId'>
The action creator payload.
Returns PayloadAction<UpdateAnalyticsConfigurationPayload>
: A dispatchable action.
updateBasicConfiguration
Updates the basic configuration.
Parameters
-
payload:
UpdateBasicConfigurationActionCreatorPayload
The action creator payload.
Returns PayloadAction<UpdateBasicConfigurationPayload>
: A dispatchable action.