# -*- coding: utf-8 -*-
from ocyan.core.plugins import OcyanPluginConfig


class OscarSequentialOrderNumbersConfig(OcyanPluginConfig):
    def contribute_to_installed_apps(self, installed_apps):
        installed_apps.ocyan.append(
            "ocyan.plugin.oscar_sequential_order_numbers.apps.OcyanPluginOscarSequentialOrderNumbersAppConfig"
        )
        installed_apps.oscar.register_extension(
            "ocyan.plugin.oscar_sequential_order_numbers.order_extension",
            "ocyan.plugin.oscar_order.order",
        )
        return installed_apps
