Skip to content

Type definitions#

Index > PaymentCryptographyDataPlane > Type definitions

Auto-generated documentation for PaymentCryptographyDataPlane type annotations stubs module mypy-boto3-payment-cryptography-data.

AmexCardSecurityCodeVersion1TypeDef#

# AmexCardSecurityCodeVersion1TypeDef definition

class AmexCardSecurityCodeVersion1TypeDef(TypedDict):
    CardExpiryDate: str,

AmexCardSecurityCodeVersion2TypeDef#

# AmexCardSecurityCodeVersion2TypeDef definition

class AmexCardSecurityCodeVersion2TypeDef(TypedDict):
    CardExpiryDate: str,
    ServiceCode: str,

AsymmetricEncryptionAttributesTypeDef#

# AsymmetricEncryptionAttributesTypeDef definition

class AsymmetricEncryptionAttributesTypeDef(TypedDict):
    PaddingType: NotRequired[PaddingTypeType],  # (1)
  1. See PaddingTypeType

CardHolderVerificationValueTypeDef#

# CardHolderVerificationValueTypeDef definition

class CardHolderVerificationValueTypeDef(TypedDict):
    ApplicationTransactionCounter: str,
    PanSequenceNumber: str,
    UnpredictableNumber: str,

CardVerificationValue1TypeDef#

# CardVerificationValue1TypeDef definition

class CardVerificationValue1TypeDef(TypedDict):
    CardExpiryDate: str,
    ServiceCode: str,

CardVerificationValue2TypeDef#

# CardVerificationValue2TypeDef definition

class CardVerificationValue2TypeDef(TypedDict):
    CardExpiryDate: str,

DynamicCardVerificationCodeTypeDef#

# DynamicCardVerificationCodeTypeDef definition

class DynamicCardVerificationCodeTypeDef(TypedDict):
    ApplicationTransactionCounter: str,
    PanSequenceNumber: str,
    TrackData: str,
    UnpredictableNumber: str,

DynamicCardVerificationValueTypeDef#

# DynamicCardVerificationValueTypeDef definition

class DynamicCardVerificationValueTypeDef(TypedDict):
    ApplicationTransactionCounter: str,
    CardExpiryDate: str,
    PanSequenceNumber: str,
    ServiceCode: str,

DiscoverDynamicCardVerificationCodeTypeDef#

# DiscoverDynamicCardVerificationCodeTypeDef definition

class DiscoverDynamicCardVerificationCodeTypeDef(TypedDict):
    ApplicationTransactionCounter: str,
    CardExpiryDate: str,
    UnpredictableNumber: str,

CryptogramVerificationArpcMethod1TypeDef#

# CryptogramVerificationArpcMethod1TypeDef definition

class CryptogramVerificationArpcMethod1TypeDef(TypedDict):
    AuthResponseCode: str,

CryptogramVerificationArpcMethod2TypeDef#

# CryptogramVerificationArpcMethod2TypeDef definition

class CryptogramVerificationArpcMethod2TypeDef(TypedDict):
    CardStatusUpdate: str,
    ProprietaryAuthenticationData: NotRequired[str],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

DukptAttributesTypeDef#

# DukptAttributesTypeDef definition

class DukptAttributesTypeDef(TypedDict):
    DukptDerivationType: DukptDerivationTypeType,  # (1)
    KeySerialNumber: str,
  1. See DukptDerivationTypeType

DukptDerivationAttributesTypeDef#

# DukptDerivationAttributesTypeDef definition

class DukptDerivationAttributesTypeDef(TypedDict):
    KeySerialNumber: str,
    DukptKeyDerivationType: NotRequired[DukptDerivationTypeType],  # (1)
    DukptKeyVariant: NotRequired[DukptKeyVariantType],  # (2)
  1. See DukptDerivationTypeType
  2. See DukptKeyVariantType

DukptEncryptionAttributesTypeDef#

# DukptEncryptionAttributesTypeDef definition

class DukptEncryptionAttributesTypeDef(TypedDict):
    KeySerialNumber: str,
    DukptKeyDerivationType: NotRequired[DukptDerivationTypeType],  # (1)
    DukptKeyVariant: NotRequired[DukptKeyVariantType],  # (2)
    InitializationVector: NotRequired[str],
    Mode: NotRequired[DukptEncryptionModeType],  # (3)
  1. See DukptDerivationTypeType
  2. See DukptKeyVariantType
  3. See DukptEncryptionModeType

EmvEncryptionAttributesTypeDef#

# EmvEncryptionAttributesTypeDef definition

class EmvEncryptionAttributesTypeDef(TypedDict):
    MajorKeyDerivationMode: EmvMajorKeyDerivationModeType,  # (1)
    PanSequenceNumber: str,
    PrimaryAccountNumber: str,
    SessionDerivationData: str,
    InitializationVector: NotRequired[str],
    Mode: NotRequired[EmvEncryptionModeType],  # (2)
  1. See EmvMajorKeyDerivationModeType
  2. See EmvEncryptionModeType

SymmetricEncryptionAttributesTypeDef#

# SymmetricEncryptionAttributesTypeDef definition

class SymmetricEncryptionAttributesTypeDef(TypedDict):
    Mode: EncryptionModeType,  # (1)
    InitializationVector: NotRequired[str],
    PaddingType: NotRequired[PaddingTypeType],  # (2)
  1. See EncryptionModeType
  2. See PaddingTypeType

PinDataTypeDef#

# PinDataTypeDef definition

class PinDataTypeDef(TypedDict):
    PinOffset: NotRequired[str],
    VerificationValue: NotRequired[str],

Ibm3624NaturalPinTypeDef#

# Ibm3624NaturalPinTypeDef definition

class Ibm3624NaturalPinTypeDef(TypedDict):
    DecimalizationTable: str,
    PinValidationData: str,
    PinValidationDataPadCharacter: str,

Ibm3624PinFromOffsetTypeDef#

# Ibm3624PinFromOffsetTypeDef definition

class Ibm3624PinFromOffsetTypeDef(TypedDict):
    DecimalizationTable: str,
    PinOffset: str,
    PinValidationData: str,
    PinValidationDataPadCharacter: str,

Ibm3624PinOffsetTypeDef#

# Ibm3624PinOffsetTypeDef definition

class Ibm3624PinOffsetTypeDef(TypedDict):
    DecimalizationTable: str,
    EncryptedPinBlock: str,
    PinValidationData: str,
    PinValidationDataPadCharacter: str,

Ibm3624PinVerificationTypeDef#

# Ibm3624PinVerificationTypeDef definition

class Ibm3624PinVerificationTypeDef(TypedDict):
    DecimalizationTable: str,
    PinOffset: str,
    PinValidationData: str,
    PinValidationDataPadCharacter: str,

Ibm3624RandomPinTypeDef#

# Ibm3624RandomPinTypeDef definition

class Ibm3624RandomPinTypeDef(TypedDict):
    DecimalizationTable: str,
    PinValidationData: str,
    PinValidationDataPadCharacter: str,

MacAlgorithmDukptTypeDef#

# MacAlgorithmDukptTypeDef definition

class MacAlgorithmDukptTypeDef(TypedDict):
    DukptKeyVariant: DukptKeyVariantType,  # (2)
    KeySerialNumber: str,
    DukptDerivationType: NotRequired[DukptDerivationTypeType],  # (1)
  1. See DukptDerivationTypeType
  2. See DukptKeyVariantType

SessionKeyDerivationValueTypeDef#

# SessionKeyDerivationValueTypeDef definition

class SessionKeyDerivationValueTypeDef(TypedDict):
    ApplicationCryptogram: NotRequired[str],
    ApplicationTransactionCounter: NotRequired[str],

VisaPinTypeDef#

# VisaPinTypeDef definition

class VisaPinTypeDef(TypedDict):
    PinVerificationKeyIndex: int,

VisaPinVerificationValueTypeDef#

# VisaPinVerificationValueTypeDef definition

class VisaPinVerificationValueTypeDef(TypedDict):
    EncryptedPinBlock: str,
    PinVerificationKeyIndex: int,

VisaPinVerificationTypeDef#

# VisaPinVerificationTypeDef definition

class VisaPinVerificationTypeDef(TypedDict):
    PinVerificationKeyIndex: int,
    VerificationValue: str,

SessionKeyAmexTypeDef#

# SessionKeyAmexTypeDef definition

class SessionKeyAmexTypeDef(TypedDict):
    PanSequenceNumber: str,
    PrimaryAccountNumber: str,

SessionKeyEmv2000TypeDef#

# SessionKeyEmv2000TypeDef definition

class SessionKeyEmv2000TypeDef(TypedDict):
    ApplicationTransactionCounter: str,
    PanSequenceNumber: str,
    PrimaryAccountNumber: str,

SessionKeyEmvCommonTypeDef#

# SessionKeyEmvCommonTypeDef definition

class SessionKeyEmvCommonTypeDef(TypedDict):
    ApplicationTransactionCounter: str,
    PanSequenceNumber: str,
    PrimaryAccountNumber: str,

SessionKeyMastercardTypeDef#

# SessionKeyMastercardTypeDef definition

class SessionKeyMastercardTypeDef(TypedDict):
    ApplicationTransactionCounter: str,
    PanSequenceNumber: str,
    PrimaryAccountNumber: str,
    UnpredictableNumber: str,

SessionKeyVisaTypeDef#

# SessionKeyVisaTypeDef definition

class SessionKeyVisaTypeDef(TypedDict):
    PanSequenceNumber: str,
    PrimaryAccountNumber: str,

TranslationPinDataIsoFormat034TypeDef#

# TranslationPinDataIsoFormat034TypeDef definition

class TranslationPinDataIsoFormat034TypeDef(TypedDict):
    PrimaryAccountNumber: str,

CardGenerationAttributesTypeDef#

# CardGenerationAttributesTypeDef definition

class CardGenerationAttributesTypeDef(TypedDict):
    AmexCardSecurityCodeVersion1: NotRequired[AmexCardSecurityCodeVersion1TypeDef],  # (1)
    AmexCardSecurityCodeVersion2: NotRequired[AmexCardSecurityCodeVersion2TypeDef],  # (2)
    CardHolderVerificationValue: NotRequired[CardHolderVerificationValueTypeDef],  # (3)
    CardVerificationValue1: NotRequired[CardVerificationValue1TypeDef],  # (4)
    CardVerificationValue2: NotRequired[CardVerificationValue2TypeDef],  # (5)
    DynamicCardVerificationCode: NotRequired[DynamicCardVerificationCodeTypeDef],  # (6)
    DynamicCardVerificationValue: NotRequired[DynamicCardVerificationValueTypeDef],  # (7)
  1. See AmexCardSecurityCodeVersion1TypeDef
  2. See AmexCardSecurityCodeVersion2TypeDef
  3. See CardHolderVerificationValueTypeDef
  4. See CardVerificationValue1TypeDef
  5. See CardVerificationValue2TypeDef
  6. See DynamicCardVerificationCodeTypeDef
  7. See DynamicCardVerificationValueTypeDef

CardVerificationAttributesTypeDef#

# CardVerificationAttributesTypeDef definition

class CardVerificationAttributesTypeDef(TypedDict):
    AmexCardSecurityCodeVersion1: NotRequired[AmexCardSecurityCodeVersion1TypeDef],  # (1)
    AmexCardSecurityCodeVersion2: NotRequired[AmexCardSecurityCodeVersion2TypeDef],  # (2)
    CardHolderVerificationValue: NotRequired[CardHolderVerificationValueTypeDef],  # (3)
    CardVerificationValue1: NotRequired[CardVerificationValue1TypeDef],  # (4)
    CardVerificationValue2: NotRequired[CardVerificationValue2TypeDef],  # (5)
    DiscoverDynamicCardVerificationCode: NotRequired[DiscoverDynamicCardVerificationCodeTypeDef],  # (6)
    DynamicCardVerificationCode: NotRequired[DynamicCardVerificationCodeTypeDef],  # (7)
    DynamicCardVerificationValue: NotRequired[DynamicCardVerificationValueTypeDef],  # (8)
  1. See AmexCardSecurityCodeVersion1TypeDef
  2. See AmexCardSecurityCodeVersion2TypeDef
  3. See CardHolderVerificationValueTypeDef
  4. See CardVerificationValue1TypeDef
  5. See CardVerificationValue2TypeDef
  6. See DiscoverDynamicCardVerificationCodeTypeDef
  7. See DynamicCardVerificationCodeTypeDef
  8. See DynamicCardVerificationValueTypeDef

CryptogramAuthResponseTypeDef#

# CryptogramAuthResponseTypeDef definition

class CryptogramAuthResponseTypeDef(TypedDict):
    ArpcMethod1: NotRequired[CryptogramVerificationArpcMethod1TypeDef],  # (1)
    ArpcMethod2: NotRequired[CryptogramVerificationArpcMethod2TypeDef],  # (2)
  1. See CryptogramVerificationArpcMethod1TypeDef
  2. See CryptogramVerificationArpcMethod2TypeDef

DecryptDataOutputTypeDef#

# DecryptDataOutputTypeDef definition

class DecryptDataOutputTypeDef(TypedDict):
    KeyArn: str,
    KeyCheckValue: str,
    PlainText: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

EncryptDataOutputTypeDef#

# EncryptDataOutputTypeDef definition

class EncryptDataOutputTypeDef(TypedDict):
    CipherText: str,
    KeyArn: str,
    KeyCheckValue: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GenerateCardValidationDataOutputTypeDef#

# GenerateCardValidationDataOutputTypeDef definition

class GenerateCardValidationDataOutputTypeDef(TypedDict):
    KeyArn: str,
    KeyCheckValue: str,
    ValidationData: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GenerateMacOutputTypeDef#

# GenerateMacOutputTypeDef definition

class GenerateMacOutputTypeDef(TypedDict):
    KeyArn: str,
    KeyCheckValue: str,
    Mac: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ReEncryptDataOutputTypeDef#

# ReEncryptDataOutputTypeDef definition

class ReEncryptDataOutputTypeDef(TypedDict):
    CipherText: str,
    KeyArn: str,
    KeyCheckValue: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

TranslatePinDataOutputTypeDef#

# TranslatePinDataOutputTypeDef definition

class TranslatePinDataOutputTypeDef(TypedDict):
    KeyArn: str,
    KeyCheckValue: str,
    PinBlock: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

VerifyAuthRequestCryptogramOutputTypeDef#

# VerifyAuthRequestCryptogramOutputTypeDef definition

class VerifyAuthRequestCryptogramOutputTypeDef(TypedDict):
    AuthResponseValue: str,
    KeyArn: str,
    KeyCheckValue: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

VerifyCardValidationDataOutputTypeDef#

# VerifyCardValidationDataOutputTypeDef definition

class VerifyCardValidationDataOutputTypeDef(TypedDict):
    KeyArn: str,
    KeyCheckValue: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

VerifyMacOutputTypeDef#

# VerifyMacOutputTypeDef definition

class VerifyMacOutputTypeDef(TypedDict):
    KeyArn: str,
    KeyCheckValue: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

VerifyPinDataOutputTypeDef#

# VerifyPinDataOutputTypeDef definition

class VerifyPinDataOutputTypeDef(TypedDict):
    EncryptionKeyArn: str,
    EncryptionKeyCheckValue: str,
    VerificationKeyArn: str,
    VerificationKeyCheckValue: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

EncryptionDecryptionAttributesTypeDef#

# EncryptionDecryptionAttributesTypeDef definition

class EncryptionDecryptionAttributesTypeDef(TypedDict):
    Asymmetric: NotRequired[AsymmetricEncryptionAttributesTypeDef],  # (1)
    Dukpt: NotRequired[DukptEncryptionAttributesTypeDef],  # (2)
    Emv: NotRequired[EmvEncryptionAttributesTypeDef],  # (3)
    Symmetric: NotRequired[SymmetricEncryptionAttributesTypeDef],  # (4)
  1. See AsymmetricEncryptionAttributesTypeDef
  2. See DukptEncryptionAttributesTypeDef
  3. See EmvEncryptionAttributesTypeDef
  4. See SymmetricEncryptionAttributesTypeDef

ReEncryptionAttributesTypeDef#

# ReEncryptionAttributesTypeDef definition

class ReEncryptionAttributesTypeDef(TypedDict):
    Dukpt: NotRequired[DukptEncryptionAttributesTypeDef],  # (1)
    Symmetric: NotRequired[SymmetricEncryptionAttributesTypeDef],  # (2)
  1. See DukptEncryptionAttributesTypeDef
  2. See SymmetricEncryptionAttributesTypeDef

GeneratePinDataOutputTypeDef#

# GeneratePinDataOutputTypeDef definition

class GeneratePinDataOutputTypeDef(TypedDict):
    EncryptedPinBlock: str,
    EncryptionKeyArn: str,
    EncryptionKeyCheckValue: str,
    GenerationKeyArn: str,
    GenerationKeyCheckValue: str,
    PinData: PinDataTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See PinDataTypeDef
  2. See ResponseMetadataTypeDef

MacAlgorithmEmvTypeDef#

# MacAlgorithmEmvTypeDef definition

class MacAlgorithmEmvTypeDef(TypedDict):
    MajorKeyDerivationMode: MajorKeyDerivationModeType,  # (1)
    PanSequenceNumber: str,
    PrimaryAccountNumber: str,
    SessionKeyDerivationMode: SessionKeyDerivationModeType,  # (2)
    SessionKeyDerivationValue: SessionKeyDerivationValueTypeDef,  # (3)
  1. See MajorKeyDerivationModeType
  2. See SessionKeyDerivationModeType
  3. See SessionKeyDerivationValueTypeDef

PinGenerationAttributesTypeDef#

# PinGenerationAttributesTypeDef definition

class PinGenerationAttributesTypeDef(TypedDict):
    Ibm3624NaturalPin: NotRequired[Ibm3624NaturalPinTypeDef],  # (1)
    Ibm3624PinFromOffset: NotRequired[Ibm3624PinFromOffsetTypeDef],  # (2)
    Ibm3624PinOffset: NotRequired[Ibm3624PinOffsetTypeDef],  # (3)
    Ibm3624RandomPin: NotRequired[Ibm3624RandomPinTypeDef],  # (4)
    VisaPin: NotRequired[VisaPinTypeDef],  # (5)
    VisaPinVerificationValue: NotRequired[VisaPinVerificationValueTypeDef],  # (6)
  1. See Ibm3624NaturalPinTypeDef
  2. See Ibm3624PinFromOffsetTypeDef
  3. See Ibm3624PinOffsetTypeDef
  4. See Ibm3624RandomPinTypeDef
  5. See VisaPinTypeDef
  6. See VisaPinVerificationValueTypeDef

PinVerificationAttributesTypeDef#

# PinVerificationAttributesTypeDef definition

class PinVerificationAttributesTypeDef(TypedDict):
    Ibm3624Pin: NotRequired[Ibm3624PinVerificationTypeDef],  # (1)
    VisaPin: NotRequired[VisaPinVerificationTypeDef],  # (2)
  1. See Ibm3624PinVerificationTypeDef
  2. See VisaPinVerificationTypeDef

SessionKeyDerivationTypeDef#

# SessionKeyDerivationTypeDef definition

class SessionKeyDerivationTypeDef(TypedDict):
    Amex: NotRequired[SessionKeyAmexTypeDef],  # (1)
    Emv2000: NotRequired[SessionKeyEmv2000TypeDef],  # (2)
    EmvCommon: NotRequired[SessionKeyEmvCommonTypeDef],  # (3)
    Mastercard: NotRequired[SessionKeyMastercardTypeDef],  # (4)
    Visa: NotRequired[SessionKeyVisaTypeDef],  # (5)
  1. See SessionKeyAmexTypeDef
  2. See SessionKeyEmv2000TypeDef
  3. See SessionKeyEmvCommonTypeDef
  4. See SessionKeyMastercardTypeDef
  5. See SessionKeyVisaTypeDef

TranslationIsoFormatsTypeDef#

# TranslationIsoFormatsTypeDef definition

class TranslationIsoFormatsTypeDef(TypedDict):
    IsoFormat0: NotRequired[TranslationPinDataIsoFormat034TypeDef],  # (1)
    IsoFormat1: NotRequired[Mapping[str, Any]],
    IsoFormat3: NotRequired[TranslationPinDataIsoFormat03