# This file is part of the Sylius package.
# (c) Sylius Sp. z o.o.

sylius_shipping:
    resources:
        shipment:
            classes:
                model: Sylius\Component\Core\Model\Shipment
                repository: Sylius\Bundle\CoreBundle\Doctrine\ORM\ShipmentRepository
        shipment_unit:
            classes:
                model: "%sylius.model.order_item_unit.class%"
        shipping_method:
            classes:
                model: Sylius\Component\Core\Model\ShippingMethod
                repository: Sylius\Bundle\CoreBundle\Doctrine\ORM\ShippingMethodRepository
        shipping_category:
            classes:
                repository: Sylius\Bundle\CoreBundle\Doctrine\ORM\ShippingCategoryRepository

    shipping_method_calculator:
        validation_groups:
            flat_rate:
                - 'sylius'
                - 'sylius_shipping_method_calculator_rate'
            per_unit_rate:
                - 'sylius'
                - 'sylius_shipping_method_calculator_rate'

    shipping_method_rule:
        validation_groups:
            order_total_greater_than_or_equal:
                - 'sylius'
                - 'sylius_shipping_method_rule_order_total'
            order_total_less_than_or_equal:
                - 'sylius'
                - 'sylius_shipping_method_rule_order_total'
