{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-payment-cryptography/json-schema/amazon-payment-cryptography-generate-mac-emv-pin-change-output-schema.json",
  "title": "GenerateMacEmvPinChangeOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-payment-cryptography-operations-api-openapi.yml#/components/schemas/GenerateMacEmvPinChangeOutput",
  "type": "object",
  "properties": {
    "NewPinPekArn": {
      "type": "string",
      "description": "Returns the keyArn of the PEK protecting the incoming new encrypted PIN block."
    },
    "SecureMessagingIntegrityKeyArn": {
      "type": "string",
      "description": "Returns the keyArn of the IMK-SMI used by the operation."
    },
    "SecureMessagingConfidentialityKeyArn": {
      "type": "string",
      "description": "Returns the keyArn of the IMK-SMC used by the operation."
    },
    "Mac": {
      "type": "string",
      "description": "Returns the mac of the issuer script containing message data and appended target encrypted pin block in ISO2 format."
    },
    "EncryptedPinBlock": {
      "type": "string",
      "description": "Returns the incoming new encrpted PIN block."
    },
    "NewPinPekKeyCheckValue": {
      "type": "string",
      "description": "The key check value (KCV) of the PEK uprotecting the incoming new encrypted PIN block."
    },
    "SecureMessagingIntegrityKeyCheckValue": {
      "type": "string",
      "description": "The key check value (KCV) of the SMI issuer master key used by the operation."
    },
    "SecureMessagingConfidentialityKeyCheckValue": {
      "type": "string",
      "description": "The key check value (KCV) of the SMC issuer master key used by the operation."
    },
    "VisaAmexDerivationOutputs": {
      "$ref": "#/$defs/VisaAmexDerivationOutputs"
    }
  },
  "required": [
    "NewPinPekArn",
    "SecureMessagingIntegrityKeyArn",
    "SecureMessagingConfidentialityKeyArn",
    "Mac",
    "EncryptedPinBlock",
    "NewPinPekKeyCheckValue",
    "SecureMessagingIntegrityKeyCheckValue",
    "SecureMessagingConfidentialityKeyCheckValue"
  ],
  "$defs": {
    "VisaAmexDerivationOutputs": {
      "type": "object",
      "properties": {
        "AuthorizationRequestKeyArn": {
          "type": "string",
          "description": "The keyArn of the issuer master key for cryptogram (IMK-AC) used by the operation."
        },
        "AuthorizationRequestKeyCheckValue": {
          "type": "string",
          "description": "The key check value (KCV) of the issuer master key for cryptogram (IMK-AC) used by the operation."
        },
        "CurrentPinPekArn": {
          "type": "string",
          "description": "The keyArn of the current PIN PEK."
        },
        "CurrentPinPekKeyCheckValue": {
          "type": "string",
          "description": "The key check value (KCV) of the current PIN PEK."
        }
      },
      "required": [
        "AuthorizationRequestKeyArn",
        "AuthorizationRequestKeyCheckValue"
      ]
    }
  }
}