services:
    oro_payment.mass_action.status.enable:
        class: 'Oro\Bundle\RuleBundle\Datagrid\Extension\MassAction\Actions\StatusEnableMassAction'
        arguments:
            - 'oro_payment.mass_action.status_handler'
            - 'oro_payment_methods_configs_massaction'
            - true
        shared: false
        tags:
            - { name: oro_datagrid.extension.mass_action.type, type: paymentruleenable }

    oro_payment.mass_action.status.disable:
        class: 'Oro\Bundle\RuleBundle\Datagrid\Extension\MassAction\Actions\StatusEnableMassAction'
        arguments:
            - 'oro_payment.mass_action.status_handler'
            - 'oro_payment_methods_configs_massaction'
            - false
        shared: false
        tags:
            - { name: oro_datagrid.extension.mass_action.type, type: paymentruledisable }

    oro_payment.mass_action.status_handler:
        class: 'Oro\Bundle\RuleBundle\Datagrid\Extension\MassAction\StatusMassActionHandler'
        public: true
        arguments:
            - 'oro.payment.datagrid.status.success_message'
            - 'OroPaymentBundle:PaymentMethodsConfigsRule'
            - '@doctrine.orm.entity_manager'
            - '@translator'
