(self, section_to_consumption_types=None, consumption_config=None,
                 default_product_list=None, force_consumption_case_filter=None,
                 sync_consumption_ledger=False)
section_to_consumption_types should be a dict of stock section-ids to corresponding
        consumption section-ids. any stock sections not found in the dict will not have
        any consumption data set in the restore.

        force_consumption_case_filter allows you to force sending consumption data even if
        empty for a given CaseStub (id + type)
section_to_consumption_types should be a dict of stock section-ids to corresponding
        consumption section-ids. any stock sections not found in the dict will not have
        any consumption data set in the restore.
section_to_consumption_types should be a dict of stock section - ids to corresponding consumption section - ids . any stock sections not found in the dict will not have any consumption data set in the restore .
def __init__(self, section_to_consumption_types=None, consumption_config=None,
                 default_product_list=None, force_consumption_case_filter=None,
                 sync_consumption_ledger=False):
        """
        section_to_consumption_types should be a dict of stock section-ids to corresponding
        consumption section-ids. any stock sections not found in the dict will not have
        any consumption data set in the restore.

        force_consumption_case_filter allows you to force sending consumption data even if
        empty for a given CaseStub (id + type)
        """
        self.section_to_consumption_types = section_to_consumption_types or {}
        self.consumption_config = consumption_config
        self.default_product_list = default_product_list or []
        self.force_consumption_case_filter = force_consumption_case_filter or (lambda stub: False)
        self.sync_consumption_ledger = sync_consumption_ledger
def __init__ ( self , section_to_consumption_types = None , consumption_config = None , default_product_list = None , force_consumption_case_filter = None , sync_consumption_ledger = False ) : self . section_to_consumption_types = section_to_consumption_types or { } self . consumption_config = consumption_config self . default_product_list = default_product_list or [ ] self . force_consumption_case_filter = force_consumption_case_filter or ( lambda stub : False ) self . sync_consumption_ledger = sync_consumption_ledger