aws-sdk-paymentcryptographydata 1.8.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
data/sig/client.rbs ADDED
@@ -0,0 +1,561 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module PaymentCryptographyData
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?stub_responses: untyped,
52
+ ?token_provider: untyped,
53
+ ?use_dualstack_endpoint: bool,
54
+ ?use_fips_endpoint: bool,
55
+ ?validate_params: bool,
56
+ ?endpoint_provider: untyped,
57
+ ?http_proxy: String,
58
+ ?http_open_timeout: (Float | Integer),
59
+ ?http_read_timeout: (Float | Integer),
60
+ ?http_idle_timeout: (Float | Integer),
61
+ ?http_continue_timeout: (Float | Integer),
62
+ ?ssl_timeout: (Float | Integer | nil),
63
+ ?http_wire_trace: bool,
64
+ ?ssl_verify_peer: bool,
65
+ ?ssl_ca_bundle: String,
66
+ ?ssl_ca_directory: String,
67
+ ?ssl_ca_store: String,
68
+ ?on_chunk_received: Proc,
69
+ ?on_chunk_sent: Proc,
70
+ ?raise_response_errors: bool
71
+ ) -> instance
72
+ | (?Hash[Symbol, untyped]) -> instance
73
+
74
+
75
+ interface _DecryptDataResponseSuccess
76
+ include ::Seahorse::Client::_ResponseSuccess[Types::DecryptDataOutput]
77
+ def key_arn: () -> ::String
78
+ def key_check_value: () -> ::String
79
+ def plain_text: () -> ::String
80
+ end
81
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#decrypt_data-instance_method
82
+ def decrypt_data: (
83
+ cipher_text: ::String,
84
+ decryption_attributes: {
85
+ asymmetric: {
86
+ padding_type: ("PKCS1" | "OAEP_SHA1" | "OAEP_SHA256" | "OAEP_SHA512")?
87
+ }?,
88
+ dukpt: {
89
+ dukpt_key_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
90
+ dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE")?,
91
+ initialization_vector: ::String?,
92
+ key_serial_number: ::String,
93
+ mode: ("ECB" | "CBC")?
94
+ }?,
95
+ emv: {
96
+ initialization_vector: ::String?,
97
+ major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
98
+ mode: ("ECB" | "CBC")?,
99
+ pan_sequence_number: ::String,
100
+ 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")?
107
+ }?
108
+ },
109
+ key_identifier: ::String
110
+ ) -> _DecryptDataResponseSuccess
111
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DecryptDataResponseSuccess
112
+
113
+ interface _EncryptDataResponseSuccess
114
+ include ::Seahorse::Client::_ResponseSuccess[Types::EncryptDataOutput]
115
+ def cipher_text: () -> ::String
116
+ def key_arn: () -> ::String
117
+ def key_check_value: () -> ::String
118
+ end
119
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#encrypt_data-instance_method
120
+ def encrypt_data: (
121
+ encryption_attributes: {
122
+ asymmetric: {
123
+ padding_type: ("PKCS1" | "OAEP_SHA1" | "OAEP_SHA256" | "OAEP_SHA512")?
124
+ }?,
125
+ dukpt: {
126
+ dukpt_key_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
127
+ dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE")?,
128
+ initialization_vector: ::String?,
129
+ key_serial_number: ::String,
130
+ mode: ("ECB" | "CBC")?
131
+ }?,
132
+ emv: {
133
+ initialization_vector: ::String?,
134
+ major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
135
+ mode: ("ECB" | "CBC")?,
136
+ pan_sequence_number: ::String,
137
+ 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")?
144
+ }?
145
+ },
146
+ key_identifier: ::String,
147
+ plain_text: ::String
148
+ ) -> _EncryptDataResponseSuccess
149
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _EncryptDataResponseSuccess
150
+
151
+ interface _GenerateCardValidationDataResponseSuccess
152
+ include ::Seahorse::Client::_ResponseSuccess[Types::GenerateCardValidationDataOutput]
153
+ def key_arn: () -> ::String
154
+ def key_check_value: () -> ::String
155
+ def validation_data: () -> ::String
156
+ end
157
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#generate_card_validation_data-instance_method
158
+ def generate_card_validation_data: (
159
+ generation_attributes: {
160
+ amex_card_security_code_version_1: {
161
+ card_expiry_date: ::String
162
+ }?,
163
+ amex_card_security_code_version_2: {
164
+ card_expiry_date: ::String,
165
+ service_code: ::String
166
+ }?,
167
+ card_holder_verification_value: {
168
+ application_transaction_counter: ::String,
169
+ pan_sequence_number: ::String,
170
+ unpredictable_number: ::String
171
+ }?,
172
+ card_verification_value_1: {
173
+ card_expiry_date: ::String,
174
+ service_code: ::String
175
+ }?,
176
+ card_verification_value_2: {
177
+ card_expiry_date: ::String
178
+ }?,
179
+ dynamic_card_verification_code: {
180
+ application_transaction_counter: ::String,
181
+ pan_sequence_number: ::String,
182
+ track_data: ::String,
183
+ unpredictable_number: ::String
184
+ }?,
185
+ dynamic_card_verification_value: {
186
+ application_transaction_counter: ::String,
187
+ card_expiry_date: ::String,
188
+ pan_sequence_number: ::String,
189
+ service_code: ::String
190
+ }?
191
+ },
192
+ key_identifier: ::String,
193
+ primary_account_number: ::String,
194
+ ?validation_data_length: ::Integer
195
+ ) -> _GenerateCardValidationDataResponseSuccess
196
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateCardValidationDataResponseSuccess
197
+
198
+ interface _GenerateMacResponseSuccess
199
+ include ::Seahorse::Client::_ResponseSuccess[Types::GenerateMacOutput]
200
+ def key_arn: () -> ::String
201
+ def key_check_value: () -> ::String
202
+ def mac: () -> ::String
203
+ end
204
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#generate_mac-instance_method
205
+ def generate_mac: (
206
+ generation_attributes: {
207
+ 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
+ emv_mac: {
224
+ major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
225
+ pan_sequence_number: ::String,
226
+ primary_account_number: ::String,
227
+ session_key_derivation_mode: ("EMV_COMMON_SESSION_KEY" | "EMV2000" | "AMEX" | "MASTERCARD_SESSION_KEY" | "VISA"),
228
+ session_key_derivation_value: {
229
+ application_cryptogram: ::String?,
230
+ application_transaction_counter: ::String?
231
+ }
232
+ }?
233
+ },
234
+ key_identifier: ::String,
235
+ ?mac_length: ::Integer,
236
+ message_data: ::String
237
+ ) -> _GenerateMacResponseSuccess
238
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateMacResponseSuccess
239
+
240
+ interface _GeneratePinDataResponseSuccess
241
+ 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
+ def generation_key_arn: () -> ::String
246
+ def generation_key_check_value: () -> ::String
247
+ def pin_data: () -> Types::PinData
248
+ end
249
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#generate_pin_data-instance_method
250
+ def generate_pin_data: (
251
+ encryption_key_identifier: ::String,
252
+ generation_attributes: {
253
+ ibm_3624_natural_pin: {
254
+ decimalization_table: ::String,
255
+ pin_validation_data: ::String,
256
+ pin_validation_data_pad_character: ::String
257
+ }?,
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
263
+ }?,
264
+ ibm_3624_pin_offset: {
265
+ decimalization_table: ::String,
266
+ encrypted_pin_block: ::String,
267
+ pin_validation_data: ::String,
268
+ pin_validation_data_pad_character: ::String
269
+ }?,
270
+ ibm_3624_random_pin: {
271
+ decimalization_table: ::String,
272
+ pin_validation_data: ::String,
273
+ pin_validation_data_pad_character: ::String
274
+ }?,
275
+ visa_pin: {
276
+ pin_verification_key_index: ::Integer
277
+ }?,
278
+ visa_pin_verification_value: {
279
+ encrypted_pin_block: ::String,
280
+ pin_verification_key_index: ::Integer
281
+ }?
282
+ },
283
+ generation_key_identifier: ::String,
284
+ pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_3"),
285
+ ?pin_data_length: ::Integer,
286
+ primary_account_number: ::String
287
+ ) -> _GeneratePinDataResponseSuccess
288
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GeneratePinDataResponseSuccess
289
+
290
+ interface _ReEncryptDataResponseSuccess
291
+ include ::Seahorse::Client::_ResponseSuccess[Types::ReEncryptDataOutput]
292
+ def cipher_text: () -> ::String
293
+ def key_arn: () -> ::String
294
+ def key_check_value: () -> ::String
295
+ end
296
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#re_encrypt_data-instance_method
297
+ def re_encrypt_data: (
298
+ cipher_text: ::String,
299
+ 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
+ symmetric: {
308
+ initialization_vector: ::String?,
309
+ mode: ("ECB" | "CBC" | "CFB" | "CFB1" | "CFB8" | "CFB64" | "CFB128" | "OFB"),
310
+ padding_type: ("PKCS1" | "OAEP_SHA1" | "OAEP_SHA256" | "OAEP_SHA512")?
311
+ }?
312
+ },
313
+ incoming_key_identifier: ::String,
314
+ outgoing_encryption_attributes: {
315
+ dukpt: {
316
+ dukpt_key_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")?,
317
+ dukpt_key_variant: ("BIDIRECTIONAL" | "REQUEST" | "RESPONSE")?,
318
+ initialization_vector: ::String?,
319
+ key_serial_number: ::String,
320
+ mode: ("ECB" | "CBC")?
321
+ }?,
322
+ symmetric: {
323
+ initialization_vector: ::String?,
324
+ mode: ("ECB" | "CBC" | "CFB" | "CFB1" | "CFB8" | "CFB64" | "CFB128" | "OFB"),
325
+ padding_type: ("PKCS1" | "OAEP_SHA1" | "OAEP_SHA256" | "OAEP_SHA512")?
326
+ }?
327
+ },
328
+ outgoing_key_identifier: ::String
329
+ ) -> _ReEncryptDataResponseSuccess
330
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ReEncryptDataResponseSuccess
331
+
332
+ interface _TranslatePinDataResponseSuccess
333
+ include ::Seahorse::Client::_ResponseSuccess[Types::TranslatePinDataOutput]
334
+ def key_arn: () -> ::String
335
+ def key_check_value: () -> ::String
336
+ def pin_block: () -> ::String
337
+ end
338
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#translate_pin_data-instance_method
339
+ 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
+ incoming_key_identifier: ::String,
347
+ incoming_translation_attributes: {
348
+ iso_format_0: {
349
+ primary_account_number: ::String
350
+ }?,
351
+ iso_format_1: {
352
+ }?,
353
+ iso_format_3: {
354
+ primary_account_number: ::String
355
+ }?,
356
+ iso_format_4: {
357
+ primary_account_number: ::String
358
+ }?
359
+ },
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
+ outgoing_translation_attributes: {
367
+ iso_format_0: {
368
+ primary_account_number: ::String
369
+ }?,
370
+ iso_format_1: {
371
+ }?,
372
+ iso_format_3: {
373
+ primary_account_number: ::String
374
+ }?,
375
+ iso_format_4: {
376
+ primary_account_number: ::String
377
+ }?
378
+ }
379
+ ) -> _TranslatePinDataResponseSuccess
380
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TranslatePinDataResponseSuccess
381
+
382
+ interface _VerifyAuthRequestCryptogramResponseSuccess
383
+ include ::Seahorse::Client::_ResponseSuccess[Types::VerifyAuthRequestCryptogramOutput]
384
+ def auth_response_value: () -> ::String
385
+ def key_arn: () -> ::String
386
+ def key_check_value: () -> ::String
387
+ end
388
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#verify_auth_request_cryptogram-instance_method
389
+ 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
+ key_identifier: ::String,
401
+ major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
402
+ 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
+ emv_common: {
413
+ application_transaction_counter: ::String,
414
+ pan_sequence_number: ::String,
415
+ primary_account_number: ::String
416
+ }?,
417
+ mastercard: {
418
+ application_transaction_counter: ::String,
419
+ pan_sequence_number: ::String,
420
+ primary_account_number: ::String,
421
+ unpredictable_number: ::String
422
+ }?,
423
+ visa: {
424
+ pan_sequence_number: ::String,
425
+ primary_account_number: ::String
426
+ }?
427
+ },
428
+ transaction_data: ::String
429
+ ) -> _VerifyAuthRequestCryptogramResponseSuccess
430
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifyAuthRequestCryptogramResponseSuccess
431
+
432
+ interface _VerifyCardValidationDataResponseSuccess
433
+ include ::Seahorse::Client::_ResponseSuccess[Types::VerifyCardValidationDataOutput]
434
+ def key_arn: () -> ::String
435
+ def key_check_value: () -> ::String
436
+ end
437
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#verify_card_validation_data-instance_method
438
+ def verify_card_validation_data: (
439
+ key_identifier: ::String,
440
+ primary_account_number: ::String,
441
+ validation_data: ::String,
442
+ verification_attributes: {
443
+ amex_card_security_code_version_1: {
444
+ card_expiry_date: ::String
445
+ }?,
446
+ amex_card_security_code_version_2: {
447
+ card_expiry_date: ::String,
448
+ service_code: ::String
449
+ }?,
450
+ card_holder_verification_value: {
451
+ application_transaction_counter: ::String,
452
+ pan_sequence_number: ::String,
453
+ unpredictable_number: ::String
454
+ }?,
455
+ card_verification_value_1: {
456
+ card_expiry_date: ::String,
457
+ service_code: ::String
458
+ }?,
459
+ card_verification_value_2: {
460
+ card_expiry_date: ::String
461
+ }?,
462
+ discover_dynamic_card_verification_code: {
463
+ application_transaction_counter: ::String,
464
+ card_expiry_date: ::String,
465
+ unpredictable_number: ::String
466
+ }?,
467
+ dynamic_card_verification_code: {
468
+ application_transaction_counter: ::String,
469
+ pan_sequence_number: ::String,
470
+ track_data: ::String,
471
+ unpredictable_number: ::String
472
+ }?,
473
+ dynamic_card_verification_value: {
474
+ application_transaction_counter: ::String,
475
+ card_expiry_date: ::String,
476
+ pan_sequence_number: ::String,
477
+ service_code: ::String
478
+ }?
479
+ }
480
+ ) -> _VerifyCardValidationDataResponseSuccess
481
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifyCardValidationDataResponseSuccess
482
+
483
+ interface _VerifyMacResponseSuccess
484
+ include ::Seahorse::Client::_ResponseSuccess[Types::VerifyMacOutput]
485
+ def key_arn: () -> ::String
486
+ def key_check_value: () -> ::String
487
+ end
488
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#verify_mac-instance_method
489
+ def verify_mac: (
490
+ key_identifier: ::String,
491
+ mac: ::String,
492
+ ?mac_length: ::Integer,
493
+ message_data: ::String,
494
+ verification_attributes: {
495
+ 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
+ emv_mac: {
512
+ major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
513
+ pan_sequence_number: ::String,
514
+ primary_account_number: ::String,
515
+ session_key_derivation_mode: ("EMV_COMMON_SESSION_KEY" | "EMV2000" | "AMEX" | "MASTERCARD_SESSION_KEY" | "VISA"),
516
+ session_key_derivation_value: {
517
+ application_cryptogram: ::String?,
518
+ application_transaction_counter: ::String?
519
+ }
520
+ }?
521
+ }
522
+ ) -> _VerifyMacResponseSuccess
523
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifyMacResponseSuccess
524
+
525
+ interface _VerifyPinDataResponseSuccess
526
+ include ::Seahorse::Client::_ResponseSuccess[Types::VerifyPinDataOutput]
527
+ def encryption_key_arn: () -> ::String
528
+ def encryption_key_check_value: () -> ::String
529
+ def verification_key_arn: () -> ::String
530
+ def verification_key_check_value: () -> ::String
531
+ end
532
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#verify_pin_data-instance_method
533
+ 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,
539
+ 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
+ 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
+ visa_pin: {
551
+ pin_verification_key_index: ::Integer,
552
+ verification_value: ::String
553
+ }?
554
+ },
555
+ verification_key_identifier: ::String
556
+ ) -> _VerifyPinDataResponseSuccess
557
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifyPinDataResponseSuccess
558
+ end
559
+ end
560
+ end
561
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,36 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module PaymentCryptographyData
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class AccessDeniedException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class InternalServerException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
21
+ def resource_id: () -> ::String
22
+ end
23
+ class ThrottlingException < ::Aws::Errors::ServiceError
24
+ def message: () -> ::String
25
+ end
26
+ class ValidationException < ::Aws::Errors::ServiceError
27
+ def field_list: () -> ::String
28
+ def message: () -> ::String
29
+ end
30
+ class VerificationFailedException < ::Aws::Errors::ServiceError
31
+ def message: () -> ::String
32
+ def reason: () -> ::String
33
+ end
34
+ end
35
+ end
36
+ end