Repository URL to install this package:
| 
      
     
      
        
        
        Version: 
        
         
  
        
    
          
          0.4.184  ▾
        
         
  
      
        
      
  
      
  
     | 
    
    lib-py-b2b
  
    /
        order_flow.py
    | 
|---|
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