TEACHER_KEY = 'teacher'
STUDENT_KEY = 'student'

MYSKILLBOX_LICENSES = {
    "978-3-0355-1397-4": {
        'edition': STUDENT_KEY,
        'duration': 4 * 365,
        'name': 'Student 4 years'
    },
    "978-3-0355-1860-3": {
        'edition': STUDENT_KEY,
        'duration': 365,
        'name': 'Student 1 year'
    },
    "978-3-0355-1862-7": {
        'edition': STUDENT_KEY,
        'duration': 30,
        'name': 'Student test 1 month'
    },
    "978-3-0355-1861-0": {
        'edition': TEACHER_KEY,
        'duration': 30,
        'name': 'Teacher test 1 month'
    },
    "978-3-0355-1823-8": {
        'edition': TEACHER_KEY,
        'duration': 365,
        'name': 'Teacher 1 year'
    }
}


def is_myskillbox_product(isbn):
    valid_isbns = list(MYSKILLBOX_LICENSES.keys())
    return isbn in valid_isbns
