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_request_policy.py
Size: Mime:


class OrderRequestPolicy:
    pass

    @property
    def predicates(self):
        return self.predicates

    def evaluate(self, transaction):
        pass

    def serialize(self):
        pass

    @staticmethod
    def deserialize(data: dict):
        pass


class Predicate:
    """
    Has a list of transaction types to which the rule applies.

    """
    def __init__(self, transaction_types):
        self.transaction_types = transaction_types

    def applies_to(self, transaction) -> bool:
        pass

    def evaluate(self, transaction) -> bool:
        pass


class SimplePredicate:
    """
    Boolean value from customer account configuration
    """
    pass


class ComparisonPredicate:
    """
    Allows for comparison
    """