services:
    oro_ups.connection.validator.request.factory.rate_request:
        class: 'Oro\Bundle\UPSBundle\Connection\Validator\Request\Factory\RateUpsConnectionValidatorRequestFactory'
        public: false
        arguments:
            - '@oro_security.encoder.default'

    oro_ups.connection.validator.result.factory:
        class: 'Oro\Bundle\UPSBundle\Connection\Validator\Result\Factory\UpsConnectionValidatorResultFactory'
        public: false

    Oro\Bundle\UPSBundle\Connection\Validator\UpsConnectionValidator:
        alias: oro_ups.connection.validator

    oro_ups.connection.validator:
        class: 'Oro\Bundle\UPSBundle\Connection\Validator\UpsConnectionValidator'
        public: true
        arguments:
            - '@oro_ups.connection.validator.request.factory.rate_request'
            - '@oro_ups.client.factory_basic'
            - '@oro_ups.connection.validator.result.factory'
            - '@logger'
        calls:
            - [ 'setAccessTokenProvider', [ '@oro_ups.token_provider' ]]
