Class InventorySyncOptionsBuilder

    • Method Detail

      • of

        public static InventorySyncOptionsBuilder of​(@Nonnull
                                                     io.sphere.sdk.client.SphereClient ctpClient)
        Creates a new instance of InventorySyncOptionsBuilder given a SphereClient responsible for interaction with the target CTP project, with the default batch size ( BATCH_SIZE_DEFAULT = 150).
        Parameters:
        ctpClient - SphereClient responsible for interaction with the target CTP project.
        Returns:
        new instance of InventorySyncOptionsBuilder
      • ensureChannels

        public InventorySyncOptionsBuilder ensureChannels​(boolean ensureChannels)
        Set option that indicates whether sync process should create a supply channel of given key when it doesn't exist in a target project yet. If set to true sync process would try to create new supply channel of given key, otherwise the sync process would log an error and fail to process the draft with the given supply channel key.

        This property is ENSURE_CHANNELS_DEFAULT by default.

        Parameters:
        ensureChannels - boolean that indicates whether sync process should create supply channel of given key when it doesn't exist in a target project yet
        Returns:
        this instance of InventorySyncOptionsBuilder