services:
    oro_alternativecheckout.workflow_expression.user_in_group:
        class: 'Oro\Bundle\AlternativeCheckoutBundle\Condition\AssertAccount'
        arguments:
            - '@oro_security.security_facade'
        tags:
            - { name: oro_workflow.condition, alias: assert_account }

    oro_alternativecheckout.conditions.less_order_total_limit:
        class: 'Oro\Bundle\AlternativeCheckoutBundle\Condition\OrderTotalLimit'
        arguments:
            - '@oro_pricing.subtotal_processor.total_processor_provider'
            - '@oro_checkout.data_provider.manager.checkout_line_items'
        tags:
            - { name: oro_workflow.condition, alias: less_order_total_limit }

    oro_alternativecheckout.model.action.checkout_to_quote:
        class: 'Oro\Bundle\AlternativeCheckoutBundle\Model\Action\AlternativeCheckoutByQuote'
        arguments:
            - '@oro_action.context_accessor'
            - '@doctrine'
        tags:
            - { name: oro_action.action, alias: alternative_checkout_to_quote }

    oro_alternativecheckout.block_type.extension.checkout_form_fields:
        parent: oro_layout.block_type.extension.abstract_configurable
        calls:
            - [setOptionsConfig, [{transitionData: ~}]]
            - [setExtendedType, ['checkout_form_fields']]
        tags:
            - { name: layout.block_type_extension, alias: checkout_form_fields }
