'Get a dictionary to be serialized into querystring params based on class settings.'

def get_qs_args(self, check_course, wildcard, badge_class):

    qs_args = {'issuing_component': badge_class.issuing_component, 'slug': badge_class.slug}
    if check_course:
        qs_args['course_id'] = self.get_course_id(wildcard, badge_class)
    return qs_args
