aws-sdk-paymentcryptographydata 1.14.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
data/sig/client.rbs CHANGED
@@ -80,71 +80,83 @@ module Aws
80
80
  end
81
81
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#decrypt_data-instance_method
82
82
  def decrypt_data: (
83
+ key_identifier: ::String,
83
84
  cipher_text: ::String,
84
85
  decryption_attributes: {
86
+ symmetric: {
87
+ mode: ("ECB" | "CBC" | "CFB" | "CFB1" | "CFB8" | "CFB64" | "CFB128" | "OFB"),
88
+ initialization_vector: ::String?,
89
+ padding_type: ("PKCS1" | "OAEP_SHA1" | "OAEP_SHA256" | "OAEP_SHA512")?
90
+ }?,
85
91
  asymmetric: {
86
92
  padding_type: ("PKCS1" | "OAEP_SHA1" | "OAEP_SHA256" | "OAEP_SHA512")?
87
93
  }?,
88
94
  dukpt: {
95
+ key_serial_number: ::String,
96
+ mode: ("ECB" | "CBC")?,
89
97
  dukpt_key_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
90
98
  dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE")?,
91
- initialization_vector: ::String?,
92
- key_serial_number: ::String,
93
- mode: ("ECB" | "CBC")?
99
+ initialization_vector: ::String?
94
100
  }?,
95
101
  emv: {
96
- initialization_vector: ::String?,
97
102
  major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
98
- mode: ("ECB" | "CBC")?,
99
- pan_sequence_number: ::String,
100
103
  primary_account_number: ::String,
101
- session_derivation_data: ::String
102
- }?,
103
- symmetric: {
104
- initialization_vector: ::String?,
105
- mode: ("ECB" | "CBC" | "CFB" | "CFB1" | "CFB8" | "CFB64" | "CFB128" | "OFB"),
106
- padding_type: ("PKCS1" | "OAEP_SHA1" | "OAEP_SHA256" | "OAEP_SHA512")?
104
+ pan_sequence_number: ::String,
105
+ session_derivation_data: ::String,
106
+ mode: ("ECB" | "CBC")?,
107
+ initialization_vector: ::String?
107
108
  }?
108
109
  },
109
- key_identifier: ::String
110
+ ?wrapped_key: {
111
+ wrapped_key_material: {
112
+ tr_31_key_block: ::String?
113
+ },
114
+ key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
115
+ }
110
116
  ) -> _DecryptDataResponseSuccess
111
117
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DecryptDataResponseSuccess
112
118
 
113
119
  interface _EncryptDataResponseSuccess
114
120
  include ::Seahorse::Client::_ResponseSuccess[Types::EncryptDataOutput]
115
- def cipher_text: () -> ::String
116
121
  def key_arn: () -> ::String
117
122
  def key_check_value: () -> ::String
123
+ def cipher_text: () -> ::String
118
124
  end
119
125
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#encrypt_data-instance_method
120
126
  def encrypt_data: (
127
+ key_identifier: ::String,
128
+ plain_text: ::String,
121
129
  encryption_attributes: {
130
+ symmetric: {
131
+ mode: ("ECB" | "CBC" | "CFB" | "CFB1" | "CFB8" | "CFB64" | "CFB128" | "OFB"),
132
+ initialization_vector: ::String?,
133
+ padding_type: ("PKCS1" | "OAEP_SHA1" | "OAEP_SHA256" | "OAEP_SHA512")?
134
+ }?,
122
135
  asymmetric: {
123
136
  padding_type: ("PKCS1" | "OAEP_SHA1" | "OAEP_SHA256" | "OAEP_SHA512")?
124
137
  }?,
125
138
  dukpt: {
139
+ key_serial_number: ::String,
140
+ mode: ("ECB" | "CBC")?,
126
141
  dukpt_key_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
127
142
  dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE")?,
128
- initialization_vector: ::String?,
129
- key_serial_number: ::String,
130
- mode: ("ECB" | "CBC")?
143
+ initialization_vector: ::String?
131
144
  }?,
132
145
  emv: {
133
- initialization_vector: ::String?,
134
146
  major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
135
- mode: ("ECB" | "CBC")?,
136
- pan_sequence_number: ::String,
137
147
  primary_account_number: ::String,
138
- session_derivation_data: ::String
139
- }?,
140
- symmetric: {
141
- initialization_vector: ::String?,
142
- mode: ("ECB" | "CBC" | "CFB" | "CFB1" | "CFB8" | "CFB64" | "CFB128" | "OFB"),
143
- padding_type: ("PKCS1" | "OAEP_SHA1" | "OAEP_SHA256" | "OAEP_SHA512")?
148
+ pan_sequence_number: ::String,
149
+ session_derivation_data: ::String,
150
+ mode: ("ECB" | "CBC")?,
151
+ initialization_vector: ::String?
144
152
  }?
145
153
  },
146
- key_identifier: ::String,
147
- plain_text: ::String
154
+ ?wrapped_key: {
155
+ wrapped_key_material: {
156
+ tr_31_key_block: ::String?
157
+ },
158
+ key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
159
+ }
148
160
  ) -> _EncryptDataResponseSuccess
149
161
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _EncryptDataResponseSuccess
150
162
 
@@ -156,6 +168,8 @@ module Aws
156
168
  end
157
169
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#generate_card_validation_data-instance_method
158
170
  def generate_card_validation_data: (
171
+ key_identifier: ::String,
172
+ primary_account_number: ::String,
159
173
  generation_attributes: {
160
174
  amex_card_security_code_version_1: {
161
175
  card_expiry_date: ::String
@@ -164,11 +178,6 @@ module Aws
164
178
  card_expiry_date: ::String,
165
179
  service_code: ::String
166
180
  }?,
167
- card_holder_verification_value: {
168
- application_transaction_counter: ::String,
169
- pan_sequence_number: ::String,
170
- unpredictable_number: ::String
171
- }?,
172
181
  card_verification_value_1: {
173
182
  card_expiry_date: ::String,
174
183
  service_code: ::String
@@ -176,21 +185,24 @@ module Aws
176
185
  card_verification_value_2: {
177
186
  card_expiry_date: ::String
178
187
  }?,
188
+ card_holder_verification_value: {
189
+ unpredictable_number: ::String,
190
+ pan_sequence_number: ::String,
191
+ application_transaction_counter: ::String
192
+ }?,
179
193
  dynamic_card_verification_code: {
180
- application_transaction_counter: ::String,
194
+ unpredictable_number: ::String,
181
195
  pan_sequence_number: ::String,
182
- track_data: ::String,
183
- unpredictable_number: ::String
196
+ application_transaction_counter: ::String,
197
+ track_data: ::String
184
198
  }?,
185
199
  dynamic_card_verification_value: {
186
- application_transaction_counter: ::String,
187
- card_expiry_date: ::String,
188
200
  pan_sequence_number: ::String,
189
- service_code: ::String
201
+ card_expiry_date: ::String,
202
+ service_code: ::String,
203
+ application_transaction_counter: ::String
190
204
  }?
191
205
  },
192
- key_identifier: ::String,
193
- primary_account_number: ::String,
194
206
  ?validation_data_length: ::Integer
195
207
  ) -> _GenerateCardValidationDataResponseSuccess
196
208
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateCardValidationDataResponseSuccess
@@ -203,147 +215,154 @@ module Aws
203
215
  end
204
216
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#generate_mac-instance_method
205
217
  def generate_mac: (
218
+ key_identifier: ::String,
219
+ message_data: ::String,
206
220
  generation_attributes: {
207
221
  algorithm: ("ISO9797_ALGORITHM1" | "ISO9797_ALGORITHM3" | "CMAC" | "HMAC_SHA224" | "HMAC_SHA256" | "HMAC_SHA384" | "HMAC_SHA512")?,
208
- dukpt_cmac: {
209
- dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
210
- dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE"),
211
- key_serial_number: ::String
212
- }?,
213
- dukpt_iso_9797_algorithm_1: {
214
- dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
215
- dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE"),
216
- key_serial_number: ::String
217
- }?,
218
- dukpt_iso_9797_algorithm_3: {
219
- dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
220
- dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE"),
221
- key_serial_number: ::String
222
- }?,
223
222
  emv_mac: {
224
223
  major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
225
- pan_sequence_number: ::String,
226
224
  primary_account_number: ::String,
225
+ pan_sequence_number: ::String,
227
226
  session_key_derivation_mode: ("EMV_COMMON_SESSION_KEY" | "EMV2000" | "AMEX" | "MASTERCARD_SESSION_KEY" | "VISA"),
228
227
  session_key_derivation_value: {
229
228
  application_cryptogram: ::String?,
230
229
  application_transaction_counter: ::String?
231
230
  }
231
+ }?,
232
+ dukpt_iso_9797_algorithm_1: {
233
+ key_serial_number: ::String,
234
+ dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE"),
235
+ dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?
236
+ }?,
237
+ dukpt_iso_9797_algorithm_3: {
238
+ key_serial_number: ::String,
239
+ dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE"),
240
+ dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?
241
+ }?,
242
+ dukpt_cmac: {
243
+ key_serial_number: ::String,
244
+ dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE"),
245
+ dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?
232
246
  }?
233
247
  },
234
- key_identifier: ::String,
235
- ?mac_length: ::Integer,
236
- message_data: ::String
248
+ ?mac_length: ::Integer
237
249
  ) -> _GenerateMacResponseSuccess
238
250
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateMacResponseSuccess
239
251
 
240
252
  interface _GeneratePinDataResponseSuccess
241
253
  include ::Seahorse::Client::_ResponseSuccess[Types::GeneratePinDataOutput]
242
- def encrypted_pin_block: () -> ::String
243
- def encryption_key_arn: () -> ::String
244
- def encryption_key_check_value: () -> ::String
245
254
  def generation_key_arn: () -> ::String
246
255
  def generation_key_check_value: () -> ::String
256
+ def encryption_key_arn: () -> ::String
257
+ def encryption_key_check_value: () -> ::String
258
+ def encrypted_pin_block: () -> ::String
247
259
  def pin_data: () -> Types::PinData
248
260
  end
249
261
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#generate_pin_data-instance_method
250
262
  def generate_pin_data: (
263
+ generation_key_identifier: ::String,
251
264
  encryption_key_identifier: ::String,
252
265
  generation_attributes: {
253
- ibm_3624_natural_pin: {
254
- decimalization_table: ::String,
255
- pin_validation_data: ::String,
256
- pin_validation_data_pad_character: ::String
266
+ visa_pin: {
267
+ pin_verification_key_index: ::Integer
257
268
  }?,
258
- ibm_3624_pin_from_offset: {
259
- decimalization_table: ::String,
260
- pin_offset: ::String,
261
- pin_validation_data: ::String,
262
- pin_validation_data_pad_character: ::String
269
+ visa_pin_verification_value: {
270
+ encrypted_pin_block: ::String,
271
+ pin_verification_key_index: ::Integer
263
272
  }?,
264
273
  ibm_3624_pin_offset: {
265
- decimalization_table: ::String,
266
274
  encrypted_pin_block: ::String,
267
- pin_validation_data: ::String,
268
- pin_validation_data_pad_character: ::String
275
+ decimalization_table: ::String,
276
+ pin_validation_data_pad_character: ::String,
277
+ pin_validation_data: ::String
269
278
  }?,
270
- ibm_3624_random_pin: {
279
+ ibm_3624_natural_pin: {
271
280
  decimalization_table: ::String,
272
- pin_validation_data: ::String,
273
- pin_validation_data_pad_character: ::String
281
+ pin_validation_data_pad_character: ::String,
282
+ pin_validation_data: ::String
274
283
  }?,
275
- visa_pin: {
276
- pin_verification_key_index: ::Integer
284
+ ibm_3624_random_pin: {
285
+ decimalization_table: ::String,
286
+ pin_validation_data_pad_character: ::String,
287
+ pin_validation_data: ::String
277
288
  }?,
278
- visa_pin_verification_value: {
279
- encrypted_pin_block: ::String,
280
- pin_verification_key_index: ::Integer
289
+ ibm_3624_pin_from_offset: {
290
+ decimalization_table: ::String,
291
+ pin_validation_data_pad_character: ::String,
292
+ pin_validation_data: ::String,
293
+ pin_offset: ::String
281
294
  }?
282
295
  },
283
- generation_key_identifier: ::String,
284
- pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_3"),
285
296
  ?pin_data_length: ::Integer,
286
- primary_account_number: ::String
297
+ primary_account_number: ::String,
298
+ pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_3")
287
299
  ) -> _GeneratePinDataResponseSuccess
288
300
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GeneratePinDataResponseSuccess
289
301
 
290
302
  interface _ReEncryptDataResponseSuccess
291
303
  include ::Seahorse::Client::_ResponseSuccess[Types::ReEncryptDataOutput]
292
- def cipher_text: () -> ::String
293
304
  def key_arn: () -> ::String
294
305
  def key_check_value: () -> ::String
306
+ def cipher_text: () -> ::String
295
307
  end
296
308
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#re_encrypt_data-instance_method
297
309
  def re_encrypt_data: (
310
+ incoming_key_identifier: ::String,
311
+ outgoing_key_identifier: ::String,
298
312
  cipher_text: ::String,
299
313
  incoming_encryption_attributes: {
300
- dukpt: {
301
- dukpt_key_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
302
- dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE")?,
303
- initialization_vector: ::String?,
304
- key_serial_number: ::String,
305
- mode: ("ECB" | "CBC")?
306
- }?,
307
314
  symmetric: {
308
- initialization_vector: ::String?,
309
315
  mode: ("ECB" | "CBC" | "CFB" | "CFB1" | "CFB8" | "CFB64" | "CFB128" | "OFB"),
316
+ initialization_vector: ::String?,
310
317
  padding_type: ("PKCS1" | "OAEP_SHA1" | "OAEP_SHA256" | "OAEP_SHA512")?
311
- }?
312
- },
313
- incoming_key_identifier: ::String,
314
- outgoing_encryption_attributes: {
318
+ }?,
315
319
  dukpt: {
320
+ key_serial_number: ::String,
321
+ mode: ("ECB" | "CBC")?,
316
322
  dukpt_key_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
317
323
  dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE")?,
318
- initialization_vector: ::String?,
319
- key_serial_number: ::String,
320
- mode: ("ECB" | "CBC")?
321
- }?,
324
+ initialization_vector: ::String?
325
+ }?
326
+ },
327
+ outgoing_encryption_attributes: {
322
328
  symmetric: {
323
- initialization_vector: ::String?,
324
329
  mode: ("ECB" | "CBC" | "CFB" | "CFB1" | "CFB8" | "CFB64" | "CFB128" | "OFB"),
330
+ initialization_vector: ::String?,
325
331
  padding_type: ("PKCS1" | "OAEP_SHA1" | "OAEP_SHA256" | "OAEP_SHA512")?
332
+ }?,
333
+ dukpt: {
334
+ key_serial_number: ::String,
335
+ mode: ("ECB" | "CBC")?,
336
+ dukpt_key_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
337
+ dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE")?,
338
+ initialization_vector: ::String?
326
339
  }?
327
340
  },
328
- outgoing_key_identifier: ::String
341
+ ?incoming_wrapped_key: {
342
+ wrapped_key_material: {
343
+ tr_31_key_block: ::String?
344
+ },
345
+ key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
346
+ },
347
+ ?outgoing_wrapped_key: {
348
+ wrapped_key_material: {
349
+ tr_31_key_block: ::String?
350
+ },
351
+ key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
352
+ }
329
353
  ) -> _ReEncryptDataResponseSuccess
330
354
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ReEncryptDataResponseSuccess
331
355
 
332
356
  interface _TranslatePinDataResponseSuccess
333
357
  include ::Seahorse::Client::_ResponseSuccess[Types::TranslatePinDataOutput]
358
+ def pin_block: () -> ::String
334
359
  def key_arn: () -> ::String
335
360
  def key_check_value: () -> ::String
336
- def pin_block: () -> ::String
337
361
  end
338
362
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#translate_pin_data-instance_method
339
363
  def translate_pin_data: (
340
- encrypted_pin_block: ::String,
341
- ?incoming_dukpt_attributes: {
342
- dukpt_key_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
343
- dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE")?,
344
- key_serial_number: ::String
345
- },
346
364
  incoming_key_identifier: ::String,
365
+ outgoing_key_identifier: ::String,
347
366
  incoming_translation_attributes: {
348
367
  iso_format_0: {
349
368
  primary_account_number: ::String
@@ -357,12 +376,6 @@ module Aws
357
376
  primary_account_number: ::String
358
377
  }?
359
378
  },
360
- ?outgoing_dukpt_attributes: {
361
- dukpt_key_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
362
- dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE")?,
363
- key_serial_number: ::String
364
- },
365
- outgoing_key_identifier: ::String,
366
379
  outgoing_translation_attributes: {
367
380
  iso_format_0: {
368
381
  primary_account_number: ::String
@@ -375,57 +388,80 @@ module Aws
375
388
  iso_format_4: {
376
389
  primary_account_number: ::String
377
390
  }?
391
+ },
392
+ encrypted_pin_block: ::String,
393
+ ?incoming_dukpt_attributes: {
394
+ key_serial_number: ::String,
395
+ dukpt_key_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
396
+ dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE")?
397
+ },
398
+ ?outgoing_dukpt_attributes: {
399
+ key_serial_number: ::String,
400
+ dukpt_key_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
401
+ dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE")?
402
+ },
403
+ ?incoming_wrapped_key: {
404
+ wrapped_key_material: {
405
+ tr_31_key_block: ::String?
406
+ },
407
+ key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
408
+ },
409
+ ?outgoing_wrapped_key: {
410
+ wrapped_key_material: {
411
+ tr_31_key_block: ::String?
412
+ },
413
+ key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
378
414
  }
379
415
  ) -> _TranslatePinDataResponseSuccess
380
416
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TranslatePinDataResponseSuccess
381
417
 
382
418
  interface _VerifyAuthRequestCryptogramResponseSuccess
383
419
  include ::Seahorse::Client::_ResponseSuccess[Types::VerifyAuthRequestCryptogramOutput]
384
- def auth_response_value: () -> ::String
385
420
  def key_arn: () -> ::String
386
421
  def key_check_value: () -> ::String
422
+ def auth_response_value: () -> ::String
387
423
  end
388
424
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#verify_auth_request_cryptogram-instance_method
389
425
  def verify_auth_request_cryptogram: (
390
- auth_request_cryptogram: ::String,
391
- ?auth_response_attributes: {
392
- arpc_method_1: {
393
- auth_response_code: ::String
394
- }?,
395
- arpc_method_2: {
396
- card_status_update: ::String,
397
- proprietary_authentication_data: ::String?
398
- }?
399
- },
400
426
  key_identifier: ::String,
427
+ transaction_data: ::String,
428
+ auth_request_cryptogram: ::String,
401
429
  major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
402
430
  session_key_derivation_attributes: {
403
- amex: {
404
- pan_sequence_number: ::String,
405
- primary_account_number: ::String
406
- }?,
407
- emv_2000: {
408
- application_transaction_counter: ::String,
409
- pan_sequence_number: ::String,
410
- primary_account_number: ::String
411
- }?,
412
431
  emv_common: {
413
- application_transaction_counter: ::String,
432
+ primary_account_number: ::String,
414
433
  pan_sequence_number: ::String,
415
- primary_account_number: ::String
434
+ application_transaction_counter: ::String
416
435
  }?,
417
436
  mastercard: {
437
+ primary_account_number: ::String,
438
+ pan_sequence_number: ::String,
418
439
  application_transaction_counter: ::String,
440
+ unpredictable_number: ::String
441
+ }?,
442
+ emv_2000: {
443
+ primary_account_number: ::String,
419
444
  pan_sequence_number: ::String,
445
+ application_transaction_counter: ::String
446
+ }?,
447
+ amex: {
420
448
  primary_account_number: ::String,
421
- unpredictable_number: ::String
449
+ pan_sequence_number: ::String
422
450
  }?,
423
451
  visa: {
424
- pan_sequence_number: ::String,
425
- primary_account_number: ::String
452
+ primary_account_number: ::String,
453
+ pan_sequence_number: ::String
426
454
  }?
427
455
  },
428
- transaction_data: ::String
456
+ ?auth_response_attributes: {
457
+ arpc_method_1: {
458
+ auth_response_code: ::String
459
+ }?,
460
+ arpc_method_2: {
461
+ card_status_update: ::String,
462
+ proprietary_authentication_data: ::String?
463
+ }?
464
+ }
429
465
  ) -> _VerifyAuthRequestCryptogramResponseSuccess
430
466
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifyAuthRequestCryptogramResponseSuccess
431
467
 
@@ -438,7 +474,6 @@ module Aws
438
474
  def verify_card_validation_data: (
439
475
  key_identifier: ::String,
440
476
  primary_account_number: ::String,
441
- validation_data: ::String,
442
477
  verification_attributes: {
443
478
  amex_card_security_code_version_1: {
444
479
  card_expiry_date: ::String
@@ -447,11 +482,6 @@ module Aws
447
482
  card_expiry_date: ::String,
448
483
  service_code: ::String
449
484
  }?,
450
- card_holder_verification_value: {
451
- application_transaction_counter: ::String,
452
- pan_sequence_number: ::String,
453
- unpredictable_number: ::String
454
- }?,
455
485
  card_verification_value_1: {
456
486
  card_expiry_date: ::String,
457
487
  service_code: ::String
@@ -459,24 +489,30 @@ module Aws
459
489
  card_verification_value_2: {
460
490
  card_expiry_date: ::String
461
491
  }?,
462
- discover_dynamic_card_verification_code: {
463
- application_transaction_counter: ::String,
464
- card_expiry_date: ::String,
465
- unpredictable_number: ::String
492
+ card_holder_verification_value: {
493
+ unpredictable_number: ::String,
494
+ pan_sequence_number: ::String,
495
+ application_transaction_counter: ::String
466
496
  }?,
467
497
  dynamic_card_verification_code: {
468
- application_transaction_counter: ::String,
498
+ unpredictable_number: ::String,
469
499
  pan_sequence_number: ::String,
470
- track_data: ::String,
471
- unpredictable_number: ::String
500
+ application_transaction_counter: ::String,
501
+ track_data: ::String
472
502
  }?,
473
503
  dynamic_card_verification_value: {
474
- application_transaction_counter: ::String,
475
- card_expiry_date: ::String,
476
504
  pan_sequence_number: ::String,
477
- service_code: ::String
505
+ card_expiry_date: ::String,
506
+ service_code: ::String,
507
+ application_transaction_counter: ::String
508
+ }?,
509
+ discover_dynamic_card_verification_code: {
510
+ card_expiry_date: ::String,
511
+ unpredictable_number: ::String,
512
+ application_transaction_counter: ::String
478
513
  }?
479
- }
514
+ },
515
+ validation_data: ::String
480
516
  ) -> _VerifyCardValidationDataResponseSuccess
481
517
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifyCardValidationDataResponseSuccess
482
518
 
@@ -488,71 +524,71 @@ module Aws
488
524
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#verify_mac-instance_method
489
525
  def verify_mac: (
490
526
  key_identifier: ::String,
491
- mac: ::String,
492
- ?mac_length: ::Integer,
493
527
  message_data: ::String,
528
+ mac: ::String,
494
529
  verification_attributes: {
495
530
  algorithm: ("ISO9797_ALGORITHM1" | "ISO9797_ALGORITHM3" | "CMAC" | "HMAC_SHA224" | "HMAC_SHA256" | "HMAC_SHA384" | "HMAC_SHA512")?,
496
- dukpt_cmac: {
497
- dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
498
- dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE"),
499
- key_serial_number: ::String
500
- }?,
501
- dukpt_iso_9797_algorithm_1: {
502
- dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
503
- dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE"),
504
- key_serial_number: ::String
505
- }?,
506
- dukpt_iso_9797_algorithm_3: {
507
- dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
508
- dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE"),
509
- key_serial_number: ::String
510
- }?,
511
531
  emv_mac: {
512
532
  major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
513
- pan_sequence_number: ::String,
514
533
  primary_account_number: ::String,
534
+ pan_sequence_number: ::String,
515
535
  session_key_derivation_mode: ("EMV_COMMON_SESSION_KEY" | "EMV2000" | "AMEX" | "MASTERCARD_SESSION_KEY" | "VISA"),
516
536
  session_key_derivation_value: {
517
537
  application_cryptogram: ::String?,
518
538
  application_transaction_counter: ::String?
519
539
  }
540
+ }?,
541
+ dukpt_iso_9797_algorithm_1: {
542
+ key_serial_number: ::String,
543
+ dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE"),
544
+ dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?
545
+ }?,
546
+ dukpt_iso_9797_algorithm_3: {
547
+ key_serial_number: ::String,
548
+ dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE"),
549
+ dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?
550
+ }?,
551
+ dukpt_cmac: {
552
+ key_serial_number: ::String,
553
+ dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE"),
554
+ dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?
520
555
  }?
521
- }
556
+ },
557
+ ?mac_length: ::Integer
522
558
  ) -> _VerifyMacResponseSuccess
523
559
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifyMacResponseSuccess
524
560
 
525
561
  interface _VerifyPinDataResponseSuccess
526
562
  include ::Seahorse::Client::_ResponseSuccess[Types::VerifyPinDataOutput]
527
- def encryption_key_arn: () -> ::String
528
- def encryption_key_check_value: () -> ::String
529
563
  def verification_key_arn: () -> ::String
530
564
  def verification_key_check_value: () -> ::String
565
+ def encryption_key_arn: () -> ::String
566
+ def encryption_key_check_value: () -> ::String
531
567
  end
532
568
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#verify_pin_data-instance_method
533
569
  def verify_pin_data: (
534
- ?dukpt_attributes: {
535
- dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256"),
536
- key_serial_number: ::String
537
- },
538
- encrypted_pin_block: ::String,
570
+ verification_key_identifier: ::String,
539
571
  encryption_key_identifier: ::String,
540
- pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_3"),
541
- ?pin_data_length: ::Integer,
542
- primary_account_number: ::String,
543
572
  verification_attributes: {
544
- ibm_3624_pin: {
545
- decimalization_table: ::String,
546
- pin_offset: ::String,
547
- pin_validation_data: ::String,
548
- pin_validation_data_pad_character: ::String
549
- }?,
550
573
  visa_pin: {
551
574
  pin_verification_key_index: ::Integer,
552
575
  verification_value: ::String
576
+ }?,
577
+ ibm_3624_pin: {
578
+ decimalization_table: ::String,
579
+ pin_validation_data_pad_character: ::String,
580
+ pin_validation_data: ::String,
581
+ pin_offset: ::String
553
582
  }?
554
583
  },
555
- verification_key_identifier: ::String
584
+ encrypted_pin_block: ::String,
585
+ primary_account_number: ::String,
586
+ pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_3"),
587
+ ?pin_data_length: ::Integer,
588
+ ?dukpt_attributes: {
589
+ key_serial_number: ::String,
590
+ dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")
591
+ }
556
592
  ) -> _VerifyPinDataResponseSuccess
557
593
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifyPinDataResponseSuccess
558
594
  end