title: Order Cashback Evaluation
type: object
x-tags:
  - Models
description: Frozen first-capture cashback evaluation and terminal full-void correction. Current program
  identity/name, original configuration and resulting tier UUID. These monetary entitlements are distinct from
  actual source-linked ledger movements. Deleted customers retain evaluations after their pools and receipts
  are removed.
required:
  - loyalty_program
  - configuration_snapshot
  - customer_tier_uuid
  - observed_amount
  - awarded_amount
  - invalidated_amount
  - deducted_amount
  - undeducted_amount
  - voided_at
properties:
  loyalty_program:
    $ref: ./LoyaltyProgramReference.yaml
  configuration_snapshot:
    $ref: ./CashbackConfiguration.yaml
  customer_tier_uuid:
    type:
      - string
      - "null"
    format: uuid
    description: Tier resulting from capture progression, or null when no tier was held. Retained if the tier is
      later removed.
  observed_amount:
    $ref: ./NonNegativeMoney.yaml
    description: Calculated base entitlement plus any applicable awarded bonus. Tier-ineligible captures can
      observe base entitlement while awarding zero.
  awarded_amount:
    $ref: ./NonNegativeMoney.yaml
    description: Base and bonus value actually granted, including a frozen zero result.
  invalidated_amount:
    oneOf: &a1
      - type: "null"
      - $ref: ./NonNegativeMoney.yaml
    description: Awarded entitlement invalidated by a full void, or null before void correction.
  deducted_amount:
    oneOf: *a1
    description: Actual value recovered from the unexpired pool on full void. Zero is a completed correction,
      distinct from null.
  undeducted_amount:
    oneOf: *a1
    description: Invalidated value minus actual deductions. This shortfall is permanently written off, never
      recovered from future earning. Null before void correction.
  voided_at:
    type:
      - string
      - "null"
    format: date-time
    description: When the full-void correction was recorded, including zero deductions; null before correction.
