transparency_epias/consumption/consumptionClient.py
def consumption_eligible(self, date):

        '''
        This function returns a list including;
            -Date information as first item.
            -Eligible consumer consumption amount as second item.

        Parameters:

        date: Specific date in YYYY-MM-DD format.
        companyId (Optional) = Specific company id.
        provinceId (Optional) = Specific province id.

        '''

        val.date_format_check(date)

        query = "consumption/swv-v2?"+"period="+f'{date}'

        json_result = self.get_request_result(query)

        key_list = list(json_result['body'].keys())

        key_name = key_list[0]

        response_list = json_result['body'][f'{key_name}']

        date_list = []
        svw2_list = []

        for item in response_list:
            date_list.append(item['vc_gec_trh'])
            svw2_list.append(item['st'])

        return date_list, svw2_list

        This function returns a list including;
            -Date information as first item.
            -Eligible consumer consumption amount as second item.

        Parameters:

        date: Specific date in YYYY-MM-DD format.
        companyId (Optional) = Specific company id.
        provinceId (Optional) = Specific province id.

        
This function returns a list including;
Date information as first item.
Eligible consumer consumption amount as second item.



Specific date in YYYY-MM-DD format.
companyId (Optional) = Specific company id.
provinceId (Optional) = Specific province id.
This function returns a list including ; Date information as first item . Eligible consumer consumption amount as second item . Specific date in YYYY - MM - DD format . companyId ( Optional ) = Specific company id . provinceId ( Optional ) = Specific province id .
def consumption_eligible(self, date):
        val.date_format_check(date)
        query = "consumption/swv-v2?"+"period="+f'{date}'
        json_result = self.get_request_result(query)
        key_list = list(json_result['body'].keys())
        key_name = key_list[0]
        response_list = json_result['body'][f'{key_name}']
        date_list = []
        svw2_list = []
        for item in response_list:
            date_list.append(item['vc_gec_trh'])
            svw2_list.append(item['st'])
        return date_list, svw2_list
def consumption_eligible ( self , date ) : val . date_format_check ( date ) query = "consumption/swv-v2?" + "period=" + f'{date}' json_result = self . get_request_result ( query ) key_list = list ( json_result [ 'body' ] . keys ( ) ) key_name = key_list [ 0 ] response_list = json_result [ 'body' ] [ f'{key_name}' ] date_list = [ ] svw2_list = [ ] for item in response_list : date_list . append ( item [ 'vc_gec_trh' ] ) svw2_list . append ( item [ 'st' ] ) return date_list , svw2_list
This function returns a list including;
Date information as first item.
This function returns a list including ; Date information as first item .
'''
        This function returns a list including;
            -Date information as first item.
            -Eligible consumer consumption amount as second item.

        Parameters:

        date: Specific date in YYYY-MM-DD format.
        companyId (Optional) = Specific company id.
        provinceId (Optional) = Specific province id.

        '''
self
date