{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mastercard/main/json-schema/mastercard-enhanced-mastercard-currency-wrapper-schema.json",
  "title": "EnhancedMastercardCurrencyWrapper",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mastercard-currencies-api-openapi.yml#/components/schemas/EnhancedMastercardCurrencyWrapper",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the service being requested"
    },
    "description": {
      "type": "string",
      "description": "The description of the API being called"
    },
    "requestDate": {
      "type": "string",
      "description": "The date and time the API is being called in GMT"
    },
    "data": {
      "$ref": "#/$defs/EnhancedMastercardCurrencies"
    }
  },
  "$defs": {
    "EnhancedCurrency": {
      "type": "object",
      "properties": {
        "alphaCd": {
          "type": "string",
          "description": "The currency code for the currency"
        },
        "currName": {
          "type": "string",
          "description": "The full name of the currency"
        }
      }
    },
    "EnhancedMastercardCurrencies": {
      "type": "object",
      "properties": {
        "currencyCount": {
          "type": "integer",
          "format": "int32",
          "description": "Number of Mastercard Currencies"
        },
        "currencies": {
          "type": "array",
          "description": "List of Mastercard Currencies",
          "items": {
            "$ref": "#/$defs/EnhancedCurrency"
          }
        }
      }
    }
  }
}