{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mastercard/main/json-schema/mastercard-enhanced-settlement-rate-issued-wrapper-schema.json",
  "title": "EnhancedSettlementRateIssuedWrapper",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mastercard-rates-api-openapi.yml#/components/schemas/EnhancedSettlementRateIssuedWrapper",
  "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/EnhancedSettlementRateIssued"
    }
  },
  "$defs": {
    "EcbMcRateIssued": {
      "type": "object",
      "properties": {
        "message": {
          "type": "string",
          "description": "User friendly message (if applicable)"
        },
        "reasonCode": {
          "type": "string",
          "description": "User friendly reason code (if applicable)"
        },
        "status": {
          "type": "string",
          "description": "Provides rate status as yes/No"
        }
      }
    },
    "EnhancedSettlementRateIssued": {
      "type": "object",
      "properties": {
        "rateDate": {
          "type": "string",
          "description": "The date of the requested rates"
        },
        "mastercardRateIssued": {
          "$ref": "#/$defs/EcbMcRateIssued"
        },
        "ecbRateIssued": {
          "$ref": "#/$defs/EcbMcRateIssued"
        }
      }
    }
  }
}