openapi: 3.1.1
info:
  title: CourseEnrollmentContractAttributes
  version: 2.1.0
  description: 'Beckn v2.1 extension schema for the contractAttributes container. Represents the transaction-level state of a course enrollment: enrollment reference, cohort assignment, prerequisite verification outcome, and credential issuance tracking. Parties: SKILL_SEEKER and SKILL_PROVIDER.

    '
  license:
    name: CC-BY-NC-SA 4.0 International
  contact:
    name: Beckn Labs
    url: https://beckn.io
components:
  schemas:
    CourseEnrollmentContractAttributes:
      x-iri: https://schema.nfh.global/CourseEnrollmentContractAttributes/v2.1
      type: object
      x-beckn-container: contractAttributes
      x-jsonld-context: ./context.jsonld
      required:
      - enrollment_reference
      - enrolled_at
      properties:
        enrollment_reference:
          type: string
          description: BAP-generated unique reference for this enrollment.
          x-jsonld-id: ceca:enrollmentReference
        cohort_id:
          type: string
          description: Identifier of the cohort or batch the learner is assigned to.
          x-jsonld-id: ceca:cohortId
        prerequisite_verification_summary:
          $ref: https://schema.nfh.global/VerificationSummary/v2.1/attributes.yaml#/components/schemas/VerificationSummary
          x-jsonld-id: ceca:prerequisiteVerificationSummary
        credential_issuance_pending:
          type: boolean
          description: 'Whether the outcome credential VC is pending issuance upon course completion. True after enrollment; false once the VC has been issued.

            '
          x-jsonld-id: ceca:credentialIssuancePending
          default: true
        enrolled_at:
          type: string
          format: date-time
          description: Timestamp when enrollment was confirmed.
          x-jsonld-id: ceca:enrolledAt
