pCon.basket - Plugin Development
    Preparing search index...

    Interface ManufacturerDatabase

    Plugin used to register additional (non-OFML) manufacturers.

    • Plugin category = ManufacturerDatabase
    interface ManufacturerDatabase {
        isAvailable?: boolean;
        name: string;
        getManufacturers(
            pContext: EaiwsContext,
            pOptions: GetManufacturersOptions,
        ): Promise<Manufacturer[]>;
        initialize(
            pDescriptor: PluginDescriptor,
            pSettings: unknown,
        ): Promise<void>;
    }

    Hierarchy (View Summary)

    Index
    isAvailable?: boolean

    Optional, if false this plugin will not be used.

    name: string
    • Returns a list of additional manufacturers for the given session. The ID of the manufacturer should be unique and should not conflict with the ID of an OFML manufacturer. Conflicting/duplicate manufacturers will be ignored.

      Parameters

      Returns Promise<Manufacturer[]>

    • Will be called once after the plugin was loaded.

      Parameters

      • pDescriptor: PluginDescriptor

        Plugin descriptor for this plugin.

      • pSettings: unknown

        Optional plugin specific settings which may be defined as part of the application settings.

      Returns Promise<void>