aws-sdk-paymentcryptographydata 1.24.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,7 @@ module Aws::PaymentCryptographyData
15
15
  include Seahorse::Model
16
16
 
17
17
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
+ AmexAttributes = Shapes::StructureShape.new(name: 'AmexAttributes')
18
19
  AmexCardSecurityCodeVersion1 = Shapes::StructureShape.new(name: 'AmexCardSecurityCodeVersion1')
19
20
  AmexCardSecurityCodeVersion2 = Shapes::StructureShape.new(name: 'AmexCardSecurityCodeVersion2')
20
21
  ApplicationCryptogramType = Shapes::StringShape.new(name: 'ApplicationCryptogramType')
@@ -28,12 +29,15 @@ module Aws::PaymentCryptographyData
28
29
  CardVerificationValue1 = Shapes::StructureShape.new(name: 'CardVerificationValue1')
29
30
  CardVerificationValue2 = Shapes::StructureShape.new(name: 'CardVerificationValue2')
30
31
  CipherTextType = Shapes::StringShape.new(name: 'CipherTextType')
32
+ CommandMessageDataType = Shapes::StringShape.new(name: 'CommandMessageDataType')
31
33
  CryptogramAuthResponse = Shapes::UnionShape.new(name: 'CryptogramAuthResponse')
32
34
  CryptogramVerificationArpcMethod1 = Shapes::StructureShape.new(name: 'CryptogramVerificationArpcMethod1')
33
35
  CryptogramVerificationArpcMethod2 = Shapes::StructureShape.new(name: 'CryptogramVerificationArpcMethod2')
36
+ CurrentPinAttributes = Shapes::StructureShape.new(name: 'CurrentPinAttributes')
34
37
  DecimalizationTableType = Shapes::StringShape.new(name: 'DecimalizationTableType')
35
38
  DecryptDataInput = Shapes::StructureShape.new(name: 'DecryptDataInput')
36
39
  DecryptDataOutput = Shapes::StructureShape.new(name: 'DecryptDataOutput')
40
+ DerivationMethodAttributes = Shapes::UnionShape.new(name: 'DerivationMethodAttributes')
37
41
  DiscoverDynamicCardVerificationCode = Shapes::StructureShape.new(name: 'DiscoverDynamicCardVerificationCode')
38
42
  DukptAttributes = Shapes::StructureShape.new(name: 'DukptAttributes')
39
43
  DukptDerivationAttributes = Shapes::StructureShape.new(name: 'DukptDerivationAttributes')
@@ -43,6 +47,8 @@ module Aws::PaymentCryptographyData
43
47
  DukptKeyVariant = Shapes::StringShape.new(name: 'DukptKeyVariant')
44
48
  DynamicCardVerificationCode = Shapes::StructureShape.new(name: 'DynamicCardVerificationCode')
45
49
  DynamicCardVerificationValue = Shapes::StructureShape.new(name: 'DynamicCardVerificationValue')
50
+ Emv2000Attributes = Shapes::StructureShape.new(name: 'Emv2000Attributes')
51
+ EmvCommonAttributes = Shapes::StructureShape.new(name: 'EmvCommonAttributes')
46
52
  EmvEncryptionAttributes = Shapes::StructureShape.new(name: 'EmvEncryptionAttributes')
47
53
  EmvEncryptionMode = Shapes::StringShape.new(name: 'EmvEncryptionMode')
48
54
  EmvMajorKeyDerivationMode = Shapes::StringShape.new(name: 'EmvMajorKeyDerivationMode')
@@ -53,6 +59,8 @@ module Aws::PaymentCryptographyData
53
59
  EncryptionMode = Shapes::StringShape.new(name: 'EncryptionMode')
54
60
  GenerateCardValidationDataInput = Shapes::StructureShape.new(name: 'GenerateCardValidationDataInput')
55
61
  GenerateCardValidationDataOutput = Shapes::StructureShape.new(name: 'GenerateCardValidationDataOutput')
62
+ GenerateMacEmvPinChangeInput = Shapes::StructureShape.new(name: 'GenerateMacEmvPinChangeInput')
63
+ GenerateMacEmvPinChangeOutput = Shapes::StructureShape.new(name: 'GenerateMacEmvPinChangeOutput')
56
64
  GenerateMacInput = Shapes::StructureShape.new(name: 'GenerateMacInput')
57
65
  GenerateMacOutput = Shapes::StructureShape.new(name: 'GenerateMacOutput')
58
66
  GeneratePinDataInput = Shapes::StructureShape.new(name: 'GeneratePinDataInput')
@@ -86,10 +94,16 @@ module Aws::PaymentCryptographyData
86
94
  MacOutputType = Shapes::StringShape.new(name: 'MacOutputType')
87
95
  MacType = Shapes::StringShape.new(name: 'MacType')
88
96
  MajorKeyDerivationMode = Shapes::StringShape.new(name: 'MajorKeyDerivationMode')
97
+ MasterCardAttributes = Shapes::StructureShape.new(name: 'MasterCardAttributes')
89
98
  MessageDataType = Shapes::StringShape.new(name: 'MessageDataType')
90
99
  NumberLengthEquals2 = Shapes::StringShape.new(name: 'NumberLengthEquals2')
91
100
  PaddingType = Shapes::StringShape.new(name: 'PaddingType')
101
+ PinBlockFormatForEmvPinChange = Shapes::StringShape.new(name: 'PinBlockFormatForEmvPinChange')
92
102
  PinBlockFormatForPinData = Shapes::StringShape.new(name: 'PinBlockFormatForPinData')
103
+ PinBlockLengthEquals16 = Shapes::StringShape.new(name: 'PinBlockLengthEquals16')
104
+ PinBlockLengthPosition = Shapes::StringShape.new(name: 'PinBlockLengthPosition')
105
+ PinBlockPaddingType = Shapes::StringShape.new(name: 'PinBlockPaddingType')
106
+ PinChangeMacOutputType = Shapes::StringShape.new(name: 'PinChangeMacOutputType')
93
107
  PinData = Shapes::UnionShape.new(name: 'PinData')
94
108
  PinGenerationAttributes = Shapes::UnionShape.new(name: 'PinGenerationAttributes')
95
109
  PinOffsetType = Shapes::StringShape.new(name: 'PinOffsetType')
@@ -139,6 +153,8 @@ module Aws::PaymentCryptographyData
139
153
  VerifyMacOutput = Shapes::StructureShape.new(name: 'VerifyMacOutput')
140
154
  VerifyPinDataInput = Shapes::StructureShape.new(name: 'VerifyPinDataInput')
141
155
  VerifyPinDataOutput = Shapes::StructureShape.new(name: 'VerifyPinDataOutput')
156
+ VisaAmexDerivationOutputs = Shapes::StructureShape.new(name: 'VisaAmexDerivationOutputs')
157
+ VisaAttributes = Shapes::StructureShape.new(name: 'VisaAttributes')
142
158
  VisaPin = Shapes::StructureShape.new(name: 'VisaPin')
143
159
  VisaPinVerification = Shapes::StructureShape.new(name: 'VisaPinVerification')
144
160
  VisaPinVerificationValue = Shapes::StructureShape.new(name: 'VisaPinVerificationValue')
@@ -148,6 +164,14 @@ module Aws::PaymentCryptographyData
148
164
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
149
165
  AccessDeniedException.struct_class = Types::AccessDeniedException
150
166
 
167
+ AmexAttributes.add_member(:major_key_derivation_mode, Shapes::ShapeRef.new(shape: MajorKeyDerivationMode, required: true, location_name: "MajorKeyDerivationMode"))
168
+ AmexAttributes.add_member(:primary_account_number, Shapes::ShapeRef.new(shape: PrimaryAccountNumberType, required: true, location_name: "PrimaryAccountNumber"))
169
+ AmexAttributes.add_member(:pan_sequence_number, Shapes::ShapeRef.new(shape: NumberLengthEquals2, required: true, location_name: "PanSequenceNumber"))
170
+ AmexAttributes.add_member(:application_transaction_counter, Shapes::ShapeRef.new(shape: HexLengthEquals4, required: true, location_name: "ApplicationTransactionCounter"))
171
+ AmexAttributes.add_member(:authorization_request_key_identifier, Shapes::ShapeRef.new(shape: KeyArnOrKeyAliasType, required: true, location_name: "AuthorizationRequestKeyIdentifier"))
172
+ AmexAttributes.add_member(:current_pin_attributes, Shapes::ShapeRef.new(shape: CurrentPinAttributes, location_name: "CurrentPinAttributes"))
173
+ AmexAttributes.struct_class = Types::AmexAttributes
174
+
151
175
  AmexCardSecurityCodeVersion1.add_member(:card_expiry_date, Shapes::ShapeRef.new(shape: CardExpiryDateType, required: true, location_name: "CardExpiryDate"))
152
176
  AmexCardSecurityCodeVersion1.struct_class = Types::AmexCardSecurityCodeVersion1
153
177
 
@@ -223,6 +247,10 @@ module Aws::PaymentCryptographyData
223
247
  CryptogramVerificationArpcMethod2.add_member(:proprietary_authentication_data, Shapes::ShapeRef.new(shape: ProprietaryAuthenticationDataType, location_name: "ProprietaryAuthenticationData"))
224
248
  CryptogramVerificationArpcMethod2.struct_class = Types::CryptogramVerificationArpcMethod2
225
249
 
250
+ CurrentPinAttributes.add_member(:current_pin_pek_identifier, Shapes::ShapeRef.new(shape: KeyArnOrKeyAliasType, required: true, location_name: "CurrentPinPekIdentifier"))
251
+ CurrentPinAttributes.add_member(:current_encrypted_pin_block, Shapes::ShapeRef.new(shape: PinBlockLengthEquals16, required: true, location_name: "CurrentEncryptedPinBlock"))
252
+ CurrentPinAttributes.struct_class = Types::CurrentPinAttributes
253
+
226
254
  DecryptDataInput.add_member(:key_identifier, Shapes::ShapeRef.new(shape: KeyArnOrKeyAliasType, required: true, location: "uri", location_name: "KeyIdentifier"))
227
255
  DecryptDataInput.add_member(:cipher_text, Shapes::ShapeRef.new(shape: CipherTextType, required: true, location_name: "CipherText"))
228
256
  DecryptDataInput.add_member(:decryption_attributes, Shapes::ShapeRef.new(shape: EncryptionDecryptionAttributes, required: true, location_name: "DecryptionAttributes"))
@@ -234,6 +262,20 @@ module Aws::PaymentCryptographyData
234
262
  DecryptDataOutput.add_member(:plain_text, Shapes::ShapeRef.new(shape: PlainTextOutputType, required: true, location_name: "PlainText"))
235
263
  DecryptDataOutput.struct_class = Types::DecryptDataOutput
236
264
 
265
+ DerivationMethodAttributes.add_member(:emv_common, Shapes::ShapeRef.new(shape: EmvCommonAttributes, location_name: "EmvCommon"))
266
+ DerivationMethodAttributes.add_member(:amex, Shapes::ShapeRef.new(shape: AmexAttributes, location_name: "Amex"))
267
+ DerivationMethodAttributes.add_member(:visa, Shapes::ShapeRef.new(shape: VisaAttributes, location_name: "Visa"))
268
+ DerivationMethodAttributes.add_member(:emv_2000, Shapes::ShapeRef.new(shape: Emv2000Attributes, location_name: "Emv2000"))
269
+ DerivationMethodAttributes.add_member(:mastercard, Shapes::ShapeRef.new(shape: MasterCardAttributes, location_name: "Mastercard"))
270
+ DerivationMethodAttributes.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
271
+ DerivationMethodAttributes.add_member_subclass(:emv_common, Types::DerivationMethodAttributes::EmvCommon)
272
+ DerivationMethodAttributes.add_member_subclass(:amex, Types::DerivationMethodAttributes::Amex)
273
+ DerivationMethodAttributes.add_member_subclass(:visa, Types::DerivationMethodAttributes::Visa)
274
+ DerivationMethodAttributes.add_member_subclass(:emv_2000, Types::DerivationMethodAttributes::Emv2000)
275
+ DerivationMethodAttributes.add_member_subclass(:mastercard, Types::DerivationMethodAttributes::Mastercard)
276
+ DerivationMethodAttributes.add_member_subclass(:unknown, Types::DerivationMethodAttributes::Unknown)
277
+ DerivationMethodAttributes.struct_class = Types::DerivationMethodAttributes
278
+
237
279
  DiscoverDynamicCardVerificationCode.add_member(:card_expiry_date, Shapes::ShapeRef.new(shape: CardExpiryDateType, required: true, location_name: "CardExpiryDate"))
238
280
  DiscoverDynamicCardVerificationCode.add_member(:unpredictable_number, Shapes::ShapeRef.new(shape: HexLengthBetween2And8, required: true, location_name: "UnpredictableNumber"))
239
281
  DiscoverDynamicCardVerificationCode.add_member(:application_transaction_counter, Shapes::ShapeRef.new(shape: HexLengthBetween2And4, required: true, location_name: "ApplicationTransactionCounter"))
@@ -267,6 +309,21 @@ module Aws::PaymentCryptographyData
267
309
  DynamicCardVerificationValue.add_member(:application_transaction_counter, Shapes::ShapeRef.new(shape: HexLengthBetween2And4, required: true, location_name: "ApplicationTransactionCounter"))
268
310
  DynamicCardVerificationValue.struct_class = Types::DynamicCardVerificationValue
269
311
 
312
+ Emv2000Attributes.add_member(:major_key_derivation_mode, Shapes::ShapeRef.new(shape: MajorKeyDerivationMode, required: true, location_name: "MajorKeyDerivationMode"))
313
+ Emv2000Attributes.add_member(:primary_account_number, Shapes::ShapeRef.new(shape: PrimaryAccountNumberType, required: true, location_name: "PrimaryAccountNumber"))
314
+ Emv2000Attributes.add_member(:pan_sequence_number, Shapes::ShapeRef.new(shape: NumberLengthEquals2, required: true, location_name: "PanSequenceNumber"))
315
+ Emv2000Attributes.add_member(:application_transaction_counter, Shapes::ShapeRef.new(shape: HexLengthEquals4, required: true, location_name: "ApplicationTransactionCounter"))
316
+ Emv2000Attributes.struct_class = Types::Emv2000Attributes
317
+
318
+ EmvCommonAttributes.add_member(:major_key_derivation_mode, Shapes::ShapeRef.new(shape: MajorKeyDerivationMode, required: true, location_name: "MajorKeyDerivationMode"))
319
+ EmvCommonAttributes.add_member(:primary_account_number, Shapes::ShapeRef.new(shape: PrimaryAccountNumberType, required: true, location_name: "PrimaryAccountNumber"))
320
+ EmvCommonAttributes.add_member(:pan_sequence_number, Shapes::ShapeRef.new(shape: NumberLengthEquals2, required: true, location_name: "PanSequenceNumber"))
321
+ EmvCommonAttributes.add_member(:application_cryptogram, Shapes::ShapeRef.new(shape: ApplicationCryptogramType, required: true, location_name: "ApplicationCryptogram"))
322
+ EmvCommonAttributes.add_member(:mode, Shapes::ShapeRef.new(shape: EmvEncryptionMode, required: true, location_name: "Mode"))
323
+ EmvCommonAttributes.add_member(:pin_block_padding_type, Shapes::ShapeRef.new(shape: PinBlockPaddingType, required: true, location_name: "PinBlockPaddingType"))
324
+ EmvCommonAttributes.add_member(:pin_block_length_position, Shapes::ShapeRef.new(shape: PinBlockLengthPosition, required: true, location_name: "PinBlockLengthPosition"))
325
+ EmvCommonAttributes.struct_class = Types::EmvCommonAttributes
326
+
270
327
  EmvEncryptionAttributes.add_member(:major_key_derivation_mode, Shapes::ShapeRef.new(shape: EmvMajorKeyDerivationMode, required: true, location_name: "MajorKeyDerivationMode"))
271
328
  EmvEncryptionAttributes.add_member(:primary_account_number, Shapes::ShapeRef.new(shape: PrimaryAccountNumberType, required: true, location_name: "PrimaryAccountNumber"))
272
329
  EmvEncryptionAttributes.add_member(:pan_sequence_number, Shapes::ShapeRef.new(shape: NumberLengthEquals2, required: true, location_name: "PanSequenceNumber"))
@@ -309,6 +366,26 @@ module Aws::PaymentCryptographyData
309
366
  GenerateCardValidationDataOutput.add_member(:validation_data, Shapes::ShapeRef.new(shape: ValidationDataType, required: true, location_name: "ValidationData"))
310
367
  GenerateCardValidationDataOutput.struct_class = Types::GenerateCardValidationDataOutput
311
368
 
369
+ GenerateMacEmvPinChangeInput.add_member(:new_pin_pek_identifier, Shapes::ShapeRef.new(shape: KeyArnOrKeyAliasType, required: true, location_name: "NewPinPekIdentifier"))
370
+ GenerateMacEmvPinChangeInput.add_member(:new_encrypted_pin_block, Shapes::ShapeRef.new(shape: PinBlockLengthEquals16, required: true, location_name: "NewEncryptedPinBlock"))
371
+ GenerateMacEmvPinChangeInput.add_member(:pin_block_format, Shapes::ShapeRef.new(shape: PinBlockFormatForEmvPinChange, required: true, location_name: "PinBlockFormat"))
372
+ GenerateMacEmvPinChangeInput.add_member(:secure_messaging_integrity_key_identifier, Shapes::ShapeRef.new(shape: KeyArnOrKeyAliasType, required: true, location_name: "SecureMessagingIntegrityKeyIdentifier"))
373
+ GenerateMacEmvPinChangeInput.add_member(:secure_messaging_confidentiality_key_identifier, Shapes::ShapeRef.new(shape: KeyArnOrKeyAliasType, required: true, location_name: "SecureMessagingConfidentialityKeyIdentifier"))
374
+ GenerateMacEmvPinChangeInput.add_member(:message_data, Shapes::ShapeRef.new(shape: CommandMessageDataType, required: true, location_name: "MessageData"))
375
+ GenerateMacEmvPinChangeInput.add_member(:derivation_method_attributes, Shapes::ShapeRef.new(shape: DerivationMethodAttributes, required: true, location_name: "DerivationMethodAttributes"))
376
+ GenerateMacEmvPinChangeInput.struct_class = Types::GenerateMacEmvPinChangeInput
377
+
378
+ GenerateMacEmvPinChangeOutput.add_member(:new_pin_pek_arn, Shapes::ShapeRef.new(shape: KeyArn, required: true, location_name: "NewPinPekArn"))
379
+ GenerateMacEmvPinChangeOutput.add_member(:secure_messaging_integrity_key_arn, Shapes::ShapeRef.new(shape: KeyArn, required: true, location_name: "SecureMessagingIntegrityKeyArn"))
380
+ GenerateMacEmvPinChangeOutput.add_member(:secure_messaging_confidentiality_key_arn, Shapes::ShapeRef.new(shape: KeyArn, required: true, location_name: "SecureMessagingConfidentialityKeyArn"))
381
+ GenerateMacEmvPinChangeOutput.add_member(:mac, Shapes::ShapeRef.new(shape: PinChangeMacOutputType, required: true, location_name: "Mac"))
382
+ GenerateMacEmvPinChangeOutput.add_member(:encrypted_pin_block, Shapes::ShapeRef.new(shape: EncryptedPinBlockType, required: true, location_name: "EncryptedPinBlock"))
383
+ GenerateMacEmvPinChangeOutput.add_member(:new_pin_pek_key_check_value, Shapes::ShapeRef.new(shape: KeyCheckValue, required: true, location_name: "NewPinPekKeyCheckValue"))
384
+ GenerateMacEmvPinChangeOutput.add_member(:secure_messaging_integrity_key_check_value, Shapes::ShapeRef.new(shape: KeyCheckValue, required: true, location_name: "SecureMessagingIntegrityKeyCheckValue"))
385
+ GenerateMacEmvPinChangeOutput.add_member(:secure_messaging_confidentiality_key_check_value, Shapes::ShapeRef.new(shape: KeyCheckValue, required: true, location_name: "SecureMessagingConfidentialityKeyCheckValue"))
386
+ GenerateMacEmvPinChangeOutput.add_member(:visa_amex_derivation_outputs, Shapes::ShapeRef.new(shape: VisaAmexDerivationOutputs, location_name: "VisaAmexDerivationOutputs"))
387
+ GenerateMacEmvPinChangeOutput.struct_class = Types::GenerateMacEmvPinChangeOutput
388
+
312
389
  GenerateMacInput.add_member(:key_identifier, Shapes::ShapeRef.new(shape: KeyArnOrKeyAliasType, required: true, location_name: "KeyIdentifier"))
313
390
  GenerateMacInput.add_member(:message_data, Shapes::ShapeRef.new(shape: MessageDataType, required: true, location_name: "MessageData"))
314
391
  GenerateMacInput.add_member(:generation_attributes, Shapes::ShapeRef.new(shape: MacAttributes, required: true, location_name: "GenerationAttributes"))
@@ -393,6 +470,12 @@ module Aws::PaymentCryptographyData
393
470
  MacAttributes.add_member_subclass(:unknown, Types::MacAttributes::Unknown)
394
471
  MacAttributes.struct_class = Types::MacAttributes
395
472
 
473
+ MasterCardAttributes.add_member(:major_key_derivation_mode, Shapes::ShapeRef.new(shape: MajorKeyDerivationMode, required: true, location_name: "MajorKeyDerivationMode"))
474
+ MasterCardAttributes.add_member(:primary_account_number, Shapes::ShapeRef.new(shape: PrimaryAccountNumberType, required: true, location_name: "PrimaryAccountNumber"))
475
+ MasterCardAttributes.add_member(:pan_sequence_number, Shapes::ShapeRef.new(shape: NumberLengthEquals2, required: true, location_name: "PanSequenceNumber"))
476
+ MasterCardAttributes.add_member(:application_cryptogram, Shapes::ShapeRef.new(shape: ApplicationCryptogramType, required: true, location_name: "ApplicationCryptogram"))
477
+ MasterCardAttributes.struct_class = Types::MasterCardAttributes
478
+
396
479
  PinData.add_member(:pin_offset, Shapes::ShapeRef.new(shape: PinOffsetType, location_name: "PinOffset"))
397
480
  PinData.add_member(:verification_value, Shapes::ShapeRef.new(shape: VerificationValueType, location_name: "VerificationValue"))
398
481
  PinData.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
@@ -469,7 +552,7 @@ module Aws::PaymentCryptographyData
469
552
  SessionKeyDerivation.struct_class = Types::SessionKeyDerivation
470
553
 
471
554
  SessionKeyDerivationValue.add_member(:application_cryptogram, Shapes::ShapeRef.new(shape: ApplicationCryptogramType, location_name: "ApplicationCryptogram"))
472
- SessionKeyDerivationValue.add_member(:application_transaction_counter, Shapes::ShapeRef.new(shape: HexLengthBetween2And4, location_name: "ApplicationTransactionCounter"))
555
+ SessionKeyDerivationValue.add_member(:application_transaction_counter, Shapes::ShapeRef.new(shape: HexLengthEquals4, location_name: "ApplicationTransactionCounter"))
473
556
  SessionKeyDerivationValue.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
474
557
  SessionKeyDerivationValue.add_member_subclass(:application_cryptogram, Types::SessionKeyDerivationValue::ApplicationCryptogram)
475
558
  SessionKeyDerivationValue.add_member_subclass(:application_transaction_counter, Types::SessionKeyDerivationValue::ApplicationTransactionCounter)
@@ -478,17 +561,17 @@ module Aws::PaymentCryptographyData
478
561
 
479
562
  SessionKeyEmv2000.add_member(:primary_account_number, Shapes::ShapeRef.new(shape: PrimaryAccountNumberType, required: true, location_name: "PrimaryAccountNumber"))
480
563
  SessionKeyEmv2000.add_member(:pan_sequence_number, Shapes::ShapeRef.new(shape: NumberLengthEquals2, required: true, location_name: "PanSequenceNumber"))
481
- SessionKeyEmv2000.add_member(:application_transaction_counter, Shapes::ShapeRef.new(shape: HexLengthBetween2And4, required: true, location_name: "ApplicationTransactionCounter"))
564
+ SessionKeyEmv2000.add_member(:application_transaction_counter, Shapes::ShapeRef.new(shape: HexLengthEquals4, required: true, location_name: "ApplicationTransactionCounter"))
482
565
  SessionKeyEmv2000.struct_class = Types::SessionKeyEmv2000
483
566
 
484
567
  SessionKeyEmvCommon.add_member(:primary_account_number, Shapes::ShapeRef.new(shape: PrimaryAccountNumberType, required: true, location_name: "PrimaryAccountNumber"))
485
568
  SessionKeyEmvCommon.add_member(:pan_sequence_number, Shapes::ShapeRef.new(shape: NumberLengthEquals2, required: true, location_name: "PanSequenceNumber"))
486
- SessionKeyEmvCommon.add_member(:application_transaction_counter, Shapes::ShapeRef.new(shape: HexLengthBetween2And4, required: true, location_name: "ApplicationTransactionCounter"))
569
+ SessionKeyEmvCommon.add_member(:application_transaction_counter, Shapes::ShapeRef.new(shape: HexLengthEquals4, required: true, location_name: "ApplicationTransactionCounter"))
487
570
  SessionKeyEmvCommon.struct_class = Types::SessionKeyEmvCommon
488
571
 
489
572
  SessionKeyMastercard.add_member(:primary_account_number, Shapes::ShapeRef.new(shape: PrimaryAccountNumberType, required: true, location_name: "PrimaryAccountNumber"))
490
573
  SessionKeyMastercard.add_member(:pan_sequence_number, Shapes::ShapeRef.new(shape: NumberLengthEquals2, required: true, location_name: "PanSequenceNumber"))
491
- SessionKeyMastercard.add_member(:application_transaction_counter, Shapes::ShapeRef.new(shape: HexLengthBetween2And4, required: true, location_name: "ApplicationTransactionCounter"))
574
+ SessionKeyMastercard.add_member(:application_transaction_counter, Shapes::ShapeRef.new(shape: HexLengthEquals4, required: true, location_name: "ApplicationTransactionCounter"))
492
575
  SessionKeyMastercard.add_member(:unpredictable_number, Shapes::ShapeRef.new(shape: HexLengthBetween2And8, required: true, location_name: "UnpredictableNumber"))
493
576
  SessionKeyMastercard.struct_class = Types::SessionKeyMastercard
494
577
 
@@ -601,6 +684,20 @@ module Aws::PaymentCryptographyData
601
684
  VerifyPinDataOutput.add_member(:encryption_key_check_value, Shapes::ShapeRef.new(shape: KeyCheckValue, required: true, location_name: "EncryptionKeyCheckValue"))
602
685
  VerifyPinDataOutput.struct_class = Types::VerifyPinDataOutput
603
686
 
687
+ VisaAmexDerivationOutputs.add_member(:authorization_request_key_arn, Shapes::ShapeRef.new(shape: KeyArn, required: true, location_name: "AuthorizationRequestKeyArn"))
688
+ VisaAmexDerivationOutputs.add_member(:authorization_request_key_check_value, Shapes::ShapeRef.new(shape: KeyCheckValue, required: true, location_name: "AuthorizationRequestKeyCheckValue"))
689
+ VisaAmexDerivationOutputs.add_member(:current_pin_pek_arn, Shapes::ShapeRef.new(shape: KeyArn, location_name: "CurrentPinPekArn"))
690
+ VisaAmexDerivationOutputs.add_member(:current_pin_pek_key_check_value, Shapes::ShapeRef.new(shape: KeyCheckValue, location_name: "CurrentPinPekKeyCheckValue"))
691
+ VisaAmexDerivationOutputs.struct_class = Types::VisaAmexDerivationOutputs
692
+
693
+ VisaAttributes.add_member(:major_key_derivation_mode, Shapes::ShapeRef.new(shape: MajorKeyDerivationMode, required: true, location_name: "MajorKeyDerivationMode"))
694
+ VisaAttributes.add_member(:primary_account_number, Shapes::ShapeRef.new(shape: PrimaryAccountNumberType, required: true, location_name: "PrimaryAccountNumber"))
695
+ VisaAttributes.add_member(:pan_sequence_number, Shapes::ShapeRef.new(shape: NumberLengthEquals2, required: true, location_name: "PanSequenceNumber"))
696
+ VisaAttributes.add_member(:application_transaction_counter, Shapes::ShapeRef.new(shape: HexLengthEquals4, required: true, location_name: "ApplicationTransactionCounter"))
697
+ VisaAttributes.add_member(:authorization_request_key_identifier, Shapes::ShapeRef.new(shape: KeyArnOrKeyAliasType, required: true, location_name: "AuthorizationRequestKeyIdentifier"))
698
+ VisaAttributes.add_member(:current_pin_attributes, Shapes::ShapeRef.new(shape: CurrentPinAttributes, location_name: "CurrentPinAttributes"))
699
+ VisaAttributes.struct_class = Types::VisaAttributes
700
+
604
701
  VisaPin.add_member(:pin_verification_key_index, Shapes::ShapeRef.new(shape: IntegerRangeBetween0And6, required: true, location_name: "PinVerificationKeyIndex"))
605
702
  VisaPin.struct_class = Types::VisaPin
606
703
 
@@ -693,6 +790,19 @@ module Aws::PaymentCryptographyData
693
790
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
694
791
  end)
695
792
 
793
+ api.add_operation(:generate_mac_emv_pin_change, Seahorse::Model::Operation.new.tap do |o|
794
+ o.name = "GenerateMacEmvPinChange"
795
+ o.http_method = "POST"
796
+ o.http_request_uri = "/macemvpinchange/generate"
797
+ o.input = Shapes::ShapeRef.new(shape: GenerateMacEmvPinChangeInput)
798
+ o.output = Shapes::ShapeRef.new(shape: GenerateMacEmvPinChangeOutput)
799
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
800
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
801
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
802
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
803
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
804
+ end)
805
+
696
806
  api.add_operation(:generate_pin_data, Seahorse::Model::Operation.new.tap do |o|
697
807
  o.name = "GeneratePinData"
698
808
  o.http_method = "POST"
@@ -52,15 +52,18 @@ module Aws::PaymentCryptographyData
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
- if self[:use_dual_stack].nil?
56
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
- end
58
55
  self[:use_fips] = options[:use_fips]
59
56
  self[:use_fips] = false if self[:use_fips].nil?
60
- if self[:use_fips].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
- end
63
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end
@@ -12,126 +12,9 @@ module Aws::PaymentCryptographyData
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
- class DecryptData
16
- def self.build(context)
17
- Aws::PaymentCryptographyData::EndpointParameters.new(
18
- region: context.config.region,
19
- use_dual_stack: context.config.use_dualstack_endpoint,
20
- use_fips: context.config.use_fips_endpoint,
21
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
22
- )
23
- end
24
- end
25
-
26
- class EncryptData
27
- def self.build(context)
28
- Aws::PaymentCryptographyData::EndpointParameters.new(
29
- region: context.config.region,
30
- use_dual_stack: context.config.use_dualstack_endpoint,
31
- use_fips: context.config.use_fips_endpoint,
32
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
33
- )
34
- end
35
- end
36
-
37
- class GenerateCardValidationData
38
- def self.build(context)
39
- Aws::PaymentCryptographyData::EndpointParameters.new(
40
- region: context.config.region,
41
- use_dual_stack: context.config.use_dualstack_endpoint,
42
- use_fips: context.config.use_fips_endpoint,
43
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
44
- )
45
- end
46
- end
47
-
48
- class GenerateMac
49
- def self.build(context)
50
- Aws::PaymentCryptographyData::EndpointParameters.new(
51
- region: context.config.region,
52
- use_dual_stack: context.config.use_dualstack_endpoint,
53
- use_fips: context.config.use_fips_endpoint,
54
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
55
- )
56
- end
57
- end
58
-
59
- class GeneratePinData
60
- def self.build(context)
61
- Aws::PaymentCryptographyData::EndpointParameters.new(
62
- region: context.config.region,
63
- use_dual_stack: context.config.use_dualstack_endpoint,
64
- use_fips: context.config.use_fips_endpoint,
65
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
66
- )
67
- end
68
- end
69
-
70
- class ReEncryptData
71
- def self.build(context)
72
- Aws::PaymentCryptographyData::EndpointParameters.new(
73
- region: context.config.region,
74
- use_dual_stack: context.config.use_dualstack_endpoint,
75
- use_fips: context.config.use_fips_endpoint,
76
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
77
- )
78
- end
79
- end
80
-
81
- class TranslatePinData
82
- def self.build(context)
83
- Aws::PaymentCryptographyData::EndpointParameters.new(
84
- region: context.config.region,
85
- use_dual_stack: context.config.use_dualstack_endpoint,
86
- use_fips: context.config.use_fips_endpoint,
87
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
88
- )
89
- end
90
- end
91
-
92
- class VerifyAuthRequestCryptogram
93
- def self.build(context)
94
- Aws::PaymentCryptographyData::EndpointParameters.new(
95
- region: context.config.region,
96
- use_dual_stack: context.config.use_dualstack_endpoint,
97
- use_fips: context.config.use_fips_endpoint,
98
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
99
- )
100
- end
101
- end
102
15
 
103
- class VerifyCardValidationData
104
- def self.build(context)
105
- Aws::PaymentCryptographyData::EndpointParameters.new(
106
- region: context.config.region,
107
- use_dual_stack: context.config.use_dualstack_endpoint,
108
- use_fips: context.config.use_fips_endpoint,
109
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
110
- )
111
- end
16
+ def self.parameters_for_operation(context)
17
+ Aws::PaymentCryptographyData::EndpointParameters.create(context.config)
112
18
  end
113
-
114
- class VerifyMac
115
- def self.build(context)
116
- Aws::PaymentCryptographyData::EndpointParameters.new(
117
- region: context.config.region,
118
- use_dual_stack: context.config.use_dualstack_endpoint,
119
- use_fips: context.config.use_fips_endpoint,
120
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
121
- )
122
- end
123
- end
124
-
125
- class VerifyPinData
126
- def self.build(context)
127
- Aws::PaymentCryptographyData::EndpointParameters.new(
128
- region: context.config.region,
129
- use_dual_stack: context.config.use_dualstack_endpoint,
130
- use_fips: context.config.use_fips_endpoint,
131
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
132
- )
133
- end
134
- end
135
-
136
19
  end
137
20
  end
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
27
27
  class Handler < Seahorse::Client::Handler
28
28
  def call(context)
29
29
  unless context[:discovered_endpoint]
30
- params = parameters_for_operation(context)
30
+ params = Aws::PaymentCryptographyData::Endpoints.parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
@@ -67,33 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
67
67
  context.http_request.headers[key] = value
68
68
  end
69
69
  end
70
-
71
- def parameters_for_operation(context)
72
- case context.operation_name
73
- when :decrypt_data
74
- Aws::PaymentCryptographyData::Endpoints::DecryptData.build(context)
75
- when :encrypt_data
76
- Aws::PaymentCryptographyData::Endpoints::EncryptData.build(context)
77
- when :generate_card_validation_data
78
- Aws::PaymentCryptographyData::Endpoints::GenerateCardValidationData.build(context)
79
- when :generate_mac
80
- Aws::PaymentCryptographyData::Endpoints::GenerateMac.build(context)
81
- when :generate_pin_data
82
- Aws::PaymentCryptographyData::Endpoints::GeneratePinData.build(context)
83
- when :re_encrypt_data
84
- Aws::PaymentCryptographyData::Endpoints::ReEncryptData.build(context)
85
- when :translate_pin_data
86
- Aws::PaymentCryptographyData::Endpoints::TranslatePinData.build(context)
87
- when :verify_auth_request_cryptogram
88
- Aws::PaymentCryptographyData::Endpoints::VerifyAuthRequestCryptogram.build(context)
89
- when :verify_card_validation_data
90
- Aws::PaymentCryptographyData::Endpoints::VerifyCardValidationData.build(context)
91
- when :verify_mac
92
- Aws::PaymentCryptographyData::Endpoints::VerifyMac.build(context)
93
- when :verify_pin_data
94
- Aws::PaymentCryptographyData::Endpoints::VerifyPinData.build(context)
95
- end
96
- end
97
70
  end
98
71
 
99
72
  def add_handlers(handlers, _config)