title: Dashboard Voucher Program Summary
type: object
x-tags:
  - Models
description: Voucher activity for the report period and the stock remaining now. Lifetime issuance counts
  all vouchers ever issued. Issued, revoked and net redeemed quantities cover the selected period.
  Outstanding quantities and status counts describe current stock. Savings are grouped by currency.
required:
  - loyalty_program_uuid
  - loyalty_program_name
  - loyalty_program_type
  - active_customers
  - redemption_summaries
  - quantity_summary
properties:
  loyalty_program_uuid:
    type: string
    format: uuid
  loyalty_program_name:
    type: string
    minLength: 1
    maxLength: 255
  loyalty_program_type:
    type: string
    enum:
      - voucher
  active_customers:
    type: integer
    minimum: 0
    description: Customers with vouchers they can use now.
  redemption_summaries:
    type: array
    items:
      $ref: ./DashboardLoyaltyRedemptionSummary.yaml
  quantity_summary:
    description: Voucher counts are always present, including zero counts when there is no activity.
    type: object
    required:
      - lifetime_issued_quantity
      - issued_quantity
      - revoked_quantity
      - net_redeemed_quantity
      - outstanding_quantity
      - available_quantity
      - not_yet_usable_quantity
      - archived_quantity
      - expired_quantity
    properties:
      lifetime_issued_quantity:
        type: integer
        minimum: 0
        description: All vouchers ever issued, regardless of the report period or their current state.
      issued_quantity: &a1
        type: integer
        minimum: 0
      revoked_quantity: *a1
      net_redeemed_quantity:
        type: integer
      outstanding_quantity: *a1
      available_quantity: *a1
      not_yet_usable_quantity: *a1
      archived_quantity: *a1
      expired_quantity: *a1
