Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
lib-py-b2b / order_flow.py
Size: Mime:
from enum import Enum


class OrderFlowType(Enum):
    MANUAL = 'manual'
    AUTOMATED_GLOVIA = 'automated_glovia'

    @staticmethod
    def for_(order_flow_type):
        """
        Convert variable to an OrderFlowType type. Will pass an actual OrderFlowType through.
        :param order_flow_type: string or OrderFlowType object
        :return: OrderFlowType
        """
        if isinstance(order_flow_type, str):
            _order_flow_type = OrderFlowType(order_flow_type)
        else:
            _order_flow_type = order_flow_type
        return _order_flow_type