1. Commands and pipelines

Bundle commands, pipelines and blocks

Version:

The following table describes the bundle commands, pipelines and blocks

Command/Pipeline

Description

CreateBundleCommand

CreateBundlePipeline

Creates a new bundle container in the Commerce Engine.

Command parameters include:

  • bundleType: the type of bundle (string).  For example: static

  • bundleID: a unique identifier for the bundle (string).

  • name: the internal name of the bundle (string).

  • displayName: the bundle name displayed on the storefront (string).

  • description: text describing the  bundle (string).

  • brand: the brand of the bundle (string).

  • manufacturer: manufacturer of the bundle (string)

  • typeOfGood: type of good corresponding to bundled products (string)

CreateBundleBlock

Maps arguments from the CreateBundleCommand to the SellableItem entity that represents the bundle.

The bundle item created returns a bundleId along with other bundle parameters as defined in the CreateBundleCommand.

CreateBundleRelationshipsBlock

Establishes relationships between a  bundle and its constituent sellable items.

FinalizeBundleBlock

Defines the finalized bundle.

PrepBundleBlock

Validates the uniqueness of the bundle name (ProductId) in the system.  If a bundle with the same ProductId is found, a validation error is returned.

If you have suggestions for improving this article, let us know!