Skip to content

Commit

Permalink
refactor: [EDXOLDMNG-218] improves doscrtring for certificate_type em…
Browse files Browse the repository at this point in the history
…un and course_is is course_key now for CertificateConfigData container
  • Loading branch information
NikolayBorovenskiy committed Dec 26, 2022
1 parent 54bc269 commit 559938f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions openedx_events/content_authoring/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,18 @@ class CertificateConfigData:
Attributes defined for Open edX CertificateConfig data object.
Arguments:
certificate_type (str): certificate type.
course_id (str): identifier of the course to which the certificate config belongs.
certificate_type (str): certificate type. Possible types are certificate relevant course modes such as credit,
verified, professional, no-id-professional, executive-education, paid-executive-education,
paid-bootcamp, masters.
course_key (CourseKey): identifier of the Course object.
title (str): certificate title.
signatories (List[CertificateSignatoryData]): contains a collection of signatures
that belong to the certificate configuration.
is_active (bool): indicates whether the certifivate configuration is active.
"""

certificate_type = attr.ib(type=str)
course_id = attr.ib(type=str)
course_key = attr.ib(type=CourseKey)
title = attr.ib(type=str)
signatories = attr.ib(type=List[CertificateSignatoryData])
is_active = attr.ib(type=bool, default=False)

0 comments on commit 559938f

Please sign in to comment.