openapi: 3.1.1
info:
  title: CourseConsiderationAttributes
  version: 2.1.0
  description: 'Beckn v2.1 extension schema for the considerationAttributes container. Captures value-exchange specifics for a course enrollment — fee category, payment schedule, installment count, subsidy source, and refund policy. Used when course pricing_type is FULL_FEE, SUBSIDIZED, or SCHOLARSHIP.

    '
  license:
    name: CC-BY-NC-SA 4.0 International
  contact:
    name: Beckn Labs
    url: https://beckn.io
components:
  schemas:
    CourseConsiderationAttributes:
      x-iri: https://schema.nfh.global/CourseConsiderationAttributes/v2.1
      type: object
      x-beckn-container: considerationAttributes
      x-jsonld-context: ./context.jsonld
      properties:
        fee_category:
          type: string
          description: How the fee obligation is structured for this learner.
          x-jsonld-id: ccoa:feeCategory
          enum:
          - FULL_FEE
          - PARTIAL_FEE
          - SPONSORED
          - WAIVED
        payment_schedule:
          type: string
          description: When payment is expected relative to course delivery.
          x-jsonld-id: ccoa:paymentSchedule
          enum:
          - UPFRONT
          - INSTALLMENT
          - POST_COMPLETION
        installment_count:
          type: integer
          description: Number of installments, if payment_schedule is INSTALLMENT.
          x-jsonld-id: ccoa:installmentCount
          minimum: 2
        subsidy_source:
          type: string
          description: Name of the government scheme or sponsoring body covering the subsidy.
          x-jsonld-id: ccoa:subsidySource
        refund_policy:
          type: string
          description: Brief statement of the refund terms applicable to this enrollment.
          x-jsonld-id: ccoa:refundPolicy
