@staticmethod
def get_item_price_id(core, prices):
    """get item price id"""
    price_id = None
    for price in prices:
        if not price['locationGroupId']:
            capacity_min = int(price.get('capacityRestrictionMinimum', -1))
            capacity_max = int(price.get('capacityRestrictionMaximum', -1))
            if capacity_min == -1 or core is None:
                price_id = price['id']
            elif capacity_min <= int(core) <= capacity_max:
                if 'STORAGE' in price.get('capacityRestrictionType'
                    ) or 'CORE' in price.get('capacityRestrictionType'):
                    price_id = price['id']
    return price_id
