in clients/client-payment-cryptography-data/src/models/models_0.ts [3813:3907]
DiscoverDynamicCardVerificationCode: DiscoverDynamicCardVerificationCodeFilterSensitiveLog(
obj.DiscoverDynamicCardVerificationCode
),
};
if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
};
/**
* @internal
*/
export const CryptogramVerificationArpcMethod2FilterSensitiveLog = (obj: CryptogramVerificationArpcMethod2): any => ({
...obj,
...(obj.ProprietaryAuthenticationData && { ProprietaryAuthenticationData: SENSITIVE_STRING }),
});
/**
* @internal
*/
export const CryptogramAuthResponseFilterSensitiveLog = (obj: CryptogramAuthResponse): any => {
if (obj.ArpcMethod1 !== undefined) return { ArpcMethod1: obj.ArpcMethod1 };
if (obj.ArpcMethod2 !== undefined)
return { ArpcMethod2: CryptogramVerificationArpcMethod2FilterSensitiveLog(obj.ArpcMethod2) };
if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
};
/**
* @internal
*/
export const DukptEncryptionAttributesFilterSensitiveLog = (obj: DukptEncryptionAttributes): any => ({
...obj,
...(obj.InitializationVector && { InitializationVector: SENSITIVE_STRING }),
});
/**
* @internal
*/
export const EmvEncryptionAttributesFilterSensitiveLog = (obj: EmvEncryptionAttributes): any => ({
...obj,
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
...(obj.SessionDerivationData && { SessionDerivationData: SENSITIVE_STRING }),
...(obj.InitializationVector && { InitializationVector: SENSITIVE_STRING }),
});
/**
* @internal
*/
export const SymmetricEncryptionAttributesFilterSensitiveLog = (obj: SymmetricEncryptionAttributes): any => ({
...obj,
...(obj.InitializationVector && { InitializationVector: SENSITIVE_STRING }),
});
/**
* @internal
*/
export const EncryptionDecryptionAttributesFilterSensitiveLog = (obj: EncryptionDecryptionAttributes): any => {
if (obj.Symmetric !== undefined) return { Symmetric: SymmetricEncryptionAttributesFilterSensitiveLog(obj.Symmetric) };
if (obj.Asymmetric !== undefined) return { Asymmetric: obj.Asymmetric };
if (obj.Dukpt !== undefined) return { Dukpt: DukptEncryptionAttributesFilterSensitiveLog(obj.Dukpt) };
if (obj.Emv !== undefined) return { Emv: EmvEncryptionAttributesFilterSensitiveLog(obj.Emv) };
if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
};
/**
* @internal
*/
export const EcdhDerivationAttributesFilterSensitiveLog = (obj: EcdhDerivationAttributes): any => ({
...obj,
...(obj.PublicKeyCertificate && { PublicKeyCertificate: SENSITIVE_STRING }),
});
/**
* @internal
*/
export const WrappedKeyMaterialFilterSensitiveLog = (obj: WrappedKeyMaterial): any => {
if (obj.Tr31KeyBlock !== undefined) return { Tr31KeyBlock: SENSITIVE_STRING };
if (obj.DiffieHellmanSymmetricKey !== undefined)
return { DiffieHellmanSymmetricKey: EcdhDerivationAttributesFilterSensitiveLog(obj.DiffieHellmanSymmetricKey) };
if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
};
/**
* @internal
*/
export const WrappedKeyFilterSensitiveLog = (obj: WrappedKey): any => ({
...obj,
...(obj.WrappedKeyMaterial && { WrappedKeyMaterial: WrappedKeyMaterialFilterSensitiveLog(obj.WrappedKeyMaterial) }),
});
/**
* @internal
*/
export const DecryptDataInputFilterSensitiveLog = (obj: DecryptDataInput): any => ({
...obj,
...(obj.CipherText && { CipherText: SENSITIVE_STRING }),
...(obj.DecryptionAttributes && {