{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paytronix/json-schema/paytronix-compute-rewards-reply-schema.json",
  "title": "ComputeRewardsReply",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paytronix-check-api-openapi.yml#/components/schemas/ComputeRewardsReply",
  "type": "object",
  "properties": {
    "result": {
      "type": "string"
    },
    "customerName": {
      "type": "string"
    },
    "tierCode": {
      "type": "string"
    },
    "printedCardNumber": {
      "type": "string"
    },
    "itemDiscounts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "itemCode": {
            "type": "string"
          },
          "discountAmount": {
            "type": "number"
          },
          "rewardName": {
            "type": "string"
          }
        }
      }
    },
    "subtotalDiscounts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "discountAmount": {
            "type": "number"
          },
          "rewardName": {
            "type": "string"
          }
        }
      }
    },
    "walletBalances": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WalletBalance"
      }
    },
    "receiptText": {
      "type": "string"
    }
  },
  "$defs": {
    "WalletBalance": {
      "type": "object",
      "properties": {
        "walletCode": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "balance": {
          "type": "number"
        }
      }
    }
  }
}