aws-sdk-paymentcryptographydata 1.24.0 → 1.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-paymentcryptographydata/client.rb +249 -33
- data/lib/aws-sdk-paymentcryptographydata/client_api.rb +114 -4
- data/lib/aws-sdk-paymentcryptographydata/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-paymentcryptographydata/endpoints.rb +2 -119
- data/lib/aws-sdk-paymentcryptographydata/plugins/endpoints.rb +1 -28
- data/lib/aws-sdk-paymentcryptographydata/types.rb +423 -1
- data/lib/aws-sdk-paymentcryptographydata.rb +1 -1
- data/sig/client.rbs +68 -0
- data/sig/types.rbs +108 -0
- metadata +4 -4
@@ -23,6 +23,51 @@ module Aws::PaymentCryptographyData
|
|
23
23
|
include Aws::Structure
|
24
24
|
end
|
25
25
|
|
26
|
+
# Parameters to derive the confidentiality and integrity keys for a
|
27
|
+
# payment card using Amex derivation method.
|
28
|
+
#
|
29
|
+
# @!attribute [rw] major_key_derivation_mode
|
30
|
+
# The method to use when deriving the master key for a payment card
|
31
|
+
# using Amex derivation.
|
32
|
+
# @return [String]
|
33
|
+
#
|
34
|
+
# @!attribute [rw] primary_account_number
|
35
|
+
# The Primary Account Number (PAN) of the cardholder.
|
36
|
+
# @return [String]
|
37
|
+
#
|
38
|
+
# @!attribute [rw] pan_sequence_number
|
39
|
+
# A number that identifies and differentiates payment cards with the
|
40
|
+
# same Primary Account Number (PAN). Typically 00 is used, if no value
|
41
|
+
# is provided by the terminal.
|
42
|
+
# @return [String]
|
43
|
+
#
|
44
|
+
# @!attribute [rw] application_transaction_counter
|
45
|
+
# The transaction counter of the current transaction that is provided
|
46
|
+
# by the terminal during transaction processing.
|
47
|
+
# @return [String]
|
48
|
+
#
|
49
|
+
# @!attribute [rw] authorization_request_key_identifier
|
50
|
+
# The `keyArn` of the issuer master key for cryptogram (IMK-AC) for
|
51
|
+
# the payment card.
|
52
|
+
# @return [String]
|
53
|
+
#
|
54
|
+
# @!attribute [rw] current_pin_attributes
|
55
|
+
# The encrypted pinblock of the old pin stored on the chip card.
|
56
|
+
# @return [Types::CurrentPinAttributes]
|
57
|
+
#
|
58
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-data-2022-02-03/AmexAttributes AWS API Documentation
|
59
|
+
#
|
60
|
+
class AmexAttributes < Struct.new(
|
61
|
+
:major_key_derivation_mode,
|
62
|
+
:primary_account_number,
|
63
|
+
:pan_sequence_number,
|
64
|
+
:application_transaction_counter,
|
65
|
+
:authorization_request_key_identifier,
|
66
|
+
:current_pin_attributes)
|
67
|
+
SENSITIVE = [:primary_account_number]
|
68
|
+
include Aws::Structure
|
69
|
+
end
|
70
|
+
|
26
71
|
# Card data parameters that are required to generate a Card Security
|
27
72
|
# Code (CSC2) for an AMEX payment card.
|
28
73
|
#
|
@@ -345,6 +390,26 @@ module Aws::PaymentCryptographyData
|
|
345
390
|
include Aws::Structure
|
346
391
|
end
|
347
392
|
|
393
|
+
# The parameter values of the current PIN to be changed on the EMV chip
|
394
|
+
# card.
|
395
|
+
#
|
396
|
+
# @!attribute [rw] current_pin_pek_identifier
|
397
|
+
# The `keyArn` of the current PIN PEK.
|
398
|
+
# @return [String]
|
399
|
+
#
|
400
|
+
# @!attribute [rw] current_encrypted_pin_block
|
401
|
+
# The encrypted pinblock of the current pin stored on the chip card.
|
402
|
+
# @return [String]
|
403
|
+
#
|
404
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-data-2022-02-03/CurrentPinAttributes AWS API Documentation
|
405
|
+
#
|
406
|
+
class CurrentPinAttributes < Struct.new(
|
407
|
+
:current_pin_pek_identifier,
|
408
|
+
:current_encrypted_pin_block)
|
409
|
+
SENSITIVE = [:current_encrypted_pin_block]
|
410
|
+
include Aws::Structure
|
411
|
+
end
|
412
|
+
|
348
413
|
# @!attribute [rw] key_identifier
|
349
414
|
# The `keyARN` of the encryption key that Amazon Web Services Payment
|
350
415
|
# Cryptography uses for ciphertext decryption.
|
@@ -406,6 +471,57 @@ module Aws::PaymentCryptographyData
|
|
406
471
|
include Aws::Structure
|
407
472
|
end
|
408
473
|
|
474
|
+
# Parameters to derive the payment card specific confidentiality and
|
475
|
+
# integrity keys.
|
476
|
+
#
|
477
|
+
# @note DerivationMethodAttributes is a union - when making an API calls you must set exactly one of the members.
|
478
|
+
#
|
479
|
+
# @!attribute [rw] emv_common
|
480
|
+
# Parameters to derive the confidentiality and integrity keys for a
|
481
|
+
# payment card using Emv common derivation method.
|
482
|
+
# @return [Types::EmvCommonAttributes]
|
483
|
+
#
|
484
|
+
# @!attribute [rw] amex
|
485
|
+
# Parameters to derive the confidentiality and integrity keys for a
|
486
|
+
# payment card using Amex derivation method.
|
487
|
+
# @return [Types::AmexAttributes]
|
488
|
+
#
|
489
|
+
# @!attribute [rw] visa
|
490
|
+
# Parameters to derive the confidentiality and integrity keys for a a
|
491
|
+
# payment card using Visa derivation method.
|
492
|
+
# @return [Types::VisaAttributes]
|
493
|
+
#
|
494
|
+
# @!attribute [rw] emv_2000
|
495
|
+
# Parameters to derive the confidentiality and integrity keys for a
|
496
|
+
# payment card using Emv2000 derivation method.
|
497
|
+
# @return [Types::Emv2000Attributes]
|
498
|
+
#
|
499
|
+
# @!attribute [rw] mastercard
|
500
|
+
# Parameters to derive the confidentiality and integrity keys for a
|
501
|
+
# payment card using Mastercard derivation method.
|
502
|
+
# @return [Types::MasterCardAttributes]
|
503
|
+
#
|
504
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-data-2022-02-03/DerivationMethodAttributes AWS API Documentation
|
505
|
+
#
|
506
|
+
class DerivationMethodAttributes < Struct.new(
|
507
|
+
:emv_common,
|
508
|
+
:amex,
|
509
|
+
:visa,
|
510
|
+
:emv_2000,
|
511
|
+
:mastercard,
|
512
|
+
:unknown)
|
513
|
+
SENSITIVE = []
|
514
|
+
include Aws::Structure
|
515
|
+
include Aws::Structure::Union
|
516
|
+
|
517
|
+
class EmvCommon < DerivationMethodAttributes; end
|
518
|
+
class Amex < DerivationMethodAttributes; end
|
519
|
+
class Visa < DerivationMethodAttributes; end
|
520
|
+
class Emv2000 < DerivationMethodAttributes; end
|
521
|
+
class Mastercard < DerivationMethodAttributes; end
|
522
|
+
class Unknown < DerivationMethodAttributes; end
|
523
|
+
end
|
524
|
+
|
409
525
|
# Parameters that are required to generate or verify dCVC (Dynamic Card
|
410
526
|
# Verification Code).
|
411
527
|
#
|
@@ -598,6 +714,95 @@ module Aws::PaymentCryptographyData
|
|
598
714
|
include Aws::Structure
|
599
715
|
end
|
600
716
|
|
717
|
+
# Parameters to derive the confidentiality and integrity keys for a
|
718
|
+
# payment card using EMV2000 deruv.
|
719
|
+
#
|
720
|
+
# @!attribute [rw] major_key_derivation_mode
|
721
|
+
# The method to use when deriving the master key for the payment card.
|
722
|
+
# @return [String]
|
723
|
+
#
|
724
|
+
# @!attribute [rw] primary_account_number
|
725
|
+
# The Primary Account Number (PAN) of the cardholder.
|
726
|
+
# @return [String]
|
727
|
+
#
|
728
|
+
# @!attribute [rw] pan_sequence_number
|
729
|
+
# A number that identifies and differentiates payment cards with the
|
730
|
+
# same Primary Account Number (PAN). Typically 00 is used, if no value
|
731
|
+
# is provided by the terminal.
|
732
|
+
# @return [String]
|
733
|
+
#
|
734
|
+
# @!attribute [rw] application_transaction_counter
|
735
|
+
# The transaction counter of the current transaction that is provided
|
736
|
+
# by the terminal during transaction processing.
|
737
|
+
# @return [String]
|
738
|
+
#
|
739
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-data-2022-02-03/Emv2000Attributes AWS API Documentation
|
740
|
+
#
|
741
|
+
class Emv2000Attributes < Struct.new(
|
742
|
+
:major_key_derivation_mode,
|
743
|
+
:primary_account_number,
|
744
|
+
:pan_sequence_number,
|
745
|
+
:application_transaction_counter)
|
746
|
+
SENSITIVE = [:primary_account_number]
|
747
|
+
include Aws::Structure
|
748
|
+
end
|
749
|
+
|
750
|
+
# Parameters to derive the confidentiality and integrity keys for an Emv
|
751
|
+
# common payment card.
|
752
|
+
#
|
753
|
+
# @!attribute [rw] major_key_derivation_mode
|
754
|
+
# The method to use when deriving the master key for the payment card.
|
755
|
+
# @return [String]
|
756
|
+
#
|
757
|
+
# @!attribute [rw] primary_account_number
|
758
|
+
# The Primary Account Number (PAN) of the cardholder.
|
759
|
+
# @return [String]
|
760
|
+
#
|
761
|
+
# @!attribute [rw] pan_sequence_number
|
762
|
+
# A number that identifies and differentiates payment cards with the
|
763
|
+
# same Primary Account Number (PAN). Typically 00 is used, if no value
|
764
|
+
# is provided by the terminal.
|
765
|
+
# @return [String]
|
766
|
+
#
|
767
|
+
# @!attribute [rw] application_cryptogram
|
768
|
+
# The application cryptogram for the current transaction that is
|
769
|
+
# provided by the terminal during transaction processing.
|
770
|
+
# @return [String]
|
771
|
+
#
|
772
|
+
# @!attribute [rw] mode
|
773
|
+
# The block cipher method to use for encryption.
|
774
|
+
# @return [String]
|
775
|
+
#
|
776
|
+
# @!attribute [rw] pin_block_padding_type
|
777
|
+
# The padding to be added to the PIN block prior to encryption.
|
778
|
+
#
|
779
|
+
# Padding type should be `ISO_IEC_7816_4`, if `PinBlockLengthPosition`
|
780
|
+
# is set to `FRONT_OF_PIN_BLOCK`. No padding is required, if
|
781
|
+
# `PinBlockLengthPosition` is set to `NONE`.
|
782
|
+
# @return [String]
|
783
|
+
#
|
784
|
+
# @!attribute [rw] pin_block_length_position
|
785
|
+
# Specifies if PIN block length should be added to front of the pin
|
786
|
+
# block.
|
787
|
+
#
|
788
|
+
# If value is set to `FRONT_OF_PIN_BLOCK`, then PIN block padding type
|
789
|
+
# should be `ISO_IEC_7816_4`.
|
790
|
+
# @return [String]
|
791
|
+
#
|
792
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-data-2022-02-03/EmvCommonAttributes AWS API Documentation
|
793
|
+
#
|
794
|
+
class EmvCommonAttributes < Struct.new(
|
795
|
+
:major_key_derivation_mode,
|
796
|
+
:primary_account_number,
|
797
|
+
:pan_sequence_number,
|
798
|
+
:application_cryptogram,
|
799
|
+
:mode,
|
800
|
+
:pin_block_padding_type,
|
801
|
+
:pin_block_length_position)
|
802
|
+
SENSITIVE = [:primary_account_number, :application_cryptogram]
|
803
|
+
include Aws::Structure
|
804
|
+
end
|
805
|
+
|
601
806
|
# Parameters for plaintext encryption using EMV keys.
|
602
807
|
#
|
603
808
|
# @!attribute [rw] major_key_derivation_mode
|
@@ -613,7 +818,8 @@ module Aws::PaymentCryptographyData
|
|
613
818
|
#
|
614
819
|
# @!attribute [rw] pan_sequence_number
|
615
820
|
# A number that identifies and differentiates payment cards with the
|
616
|
-
# same Primary Account Number (PAN).
|
821
|
+
# same Primary Account Number (PAN). Typically 00 is used, if no value
|
822
|
+
# is provided by the terminal.
|
617
823
|
# @return [String]
|
618
824
|
#
|
619
825
|
# @!attribute [rw] session_derivation_data
|
@@ -821,6 +1027,114 @@ module Aws::PaymentCryptographyData
|
|
821
1027
|
include Aws::Structure
|
822
1028
|
end
|
823
1029
|
|
1030
|
+
# @!attribute [rw] new_pin_pek_identifier
|
1031
|
+
# The `keyARN` of the PEK protecting the incoming new encrypted PIN
|
1032
|
+
# block.
|
1033
|
+
# @return [String]
|
1034
|
+
#
|
1035
|
+
# @!attribute [rw] new_encrypted_pin_block
|
1036
|
+
# The incoming new encrypted PIN block data for offline pin change on
|
1037
|
+
# an EMV card.
|
1038
|
+
# @return [String]
|
1039
|
+
#
|
1040
|
+
# @!attribute [rw] pin_block_format
|
1041
|
+
# The PIN encoding format of the incoming new encrypted PIN block as
|
1042
|
+
# specified in ISO 9564.
|
1043
|
+
# @return [String]
|
1044
|
+
#
|
1045
|
+
# @!attribute [rw] secure_messaging_integrity_key_identifier
|
1046
|
+
# The `keyARN` of the issuer master key (IMK-SMI) used to authenticate
|
1047
|
+
# the issuer script response.
|
1048
|
+
# @return [String]
|
1049
|
+
#
|
1050
|
+
# @!attribute [rw] secure_messaging_confidentiality_key_identifier
|
1051
|
+
# The `keyARN` of the issuer master key (IMK-SMC) used to protect the
|
1052
|
+
# PIN block data in the issuer script response.
|
1053
|
+
# @return [String]
|
1054
|
+
#
|
1055
|
+
# @!attribute [rw] message_data
|
1056
|
+
# The message data is the APDU command from the card reader or
|
1057
|
+
# terminal. The target encrypted PIN block, after translation to ISO2
|
1058
|
+
# format, is appended to this message data to generate an issuer
|
1059
|
+
# script response.
|
1060
|
+
# @return [String]
|
1061
|
+
#
|
1062
|
+
# @!attribute [rw] derivation_method_attributes
|
1063
|
+
# The attributes and data values to derive payment card specific
|
1064
|
+
# confidentiality and integrity keys.
|
1065
|
+
# @return [Types::DerivationMethodAttributes]
|
1066
|
+
#
|
1067
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-data-2022-02-03/GenerateMacEmvPinChangeInput AWS API Documentation
|
1068
|
+
#
|
1069
|
+
class GenerateMacEmvPinChangeInput < Struct.new(
|
1070
|
+
:new_pin_pek_identifier,
|
1071
|
+
:new_encrypted_pin_block,
|
1072
|
+
:pin_block_format,
|
1073
|
+
:secure_messaging_integrity_key_identifier,
|
1074
|
+
:secure_messaging_confidentiality_key_identifier,
|
1075
|
+
:message_data,
|
1076
|
+
:derivation_method_attributes)
|
1077
|
+
SENSITIVE = [:new_encrypted_pin_block, :message_data]
|
1078
|
+
include Aws::Structure
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
# @!attribute [rw] new_pin_pek_arn
|
1082
|
+
# Returns the `keyArn` of the PEK protecting the incoming new
|
1083
|
+
# encrypted PIN block.
|
1084
|
+
# @return [String]
|
1085
|
+
#
|
1086
|
+
# @!attribute [rw] secure_messaging_integrity_key_arn
|
1087
|
+
# Returns the `keyArn` of the IMK-SMI used by the operation.
|
1088
|
+
# @return [String]
|
1089
|
+
#
|
1090
|
+
# @!attribute [rw] secure_messaging_confidentiality_key_arn
|
1091
|
+
# Returns the `keyArn` of the IMK-SMC used by the operation.
|
1092
|
+
# @return [String]
|
1093
|
+
#
|
1094
|
+
# @!attribute [rw] mac
|
1095
|
+
# Returns the mac of the issuer script containing message data and
|
1096
|
+
# appended target encrypted pin block in ISO2 format.
|
1097
|
+
# @return [String]
|
1098
|
+
#
|
1099
|
+
# @!attribute [rw] encrypted_pin_block
|
1100
|
+
# Returns the incoming new encrpted PIN block.
|
1101
|
+
# @return [String]
|
1102
|
+
#
|
1103
|
+
# @!attribute [rw] new_pin_pek_key_check_value
|
1104
|
+
# The key check value (KCV) of the PEK uprotecting the incoming new
|
1105
|
+
# encrypted PIN block.
|
1106
|
+
# @return [String]
|
1107
|
+
#
|
1108
|
+
# @!attribute [rw] secure_messaging_integrity_key_check_value
|
1109
|
+
# The key check value (KCV) of the SMI issuer master key used by the
|
1110
|
+
# operation.
|
1111
|
+
# @return [String]
|
1112
|
+
#
|
1113
|
+
# @!attribute [rw] secure_messaging_confidentiality_key_check_value
|
1114
|
+
# The key check value (KCV) of the SMC issuer master key used by the
|
1115
|
+
# operation.
|
1116
|
+
# @return [String]
|
1117
|
+
#
|
1118
|
+
# @!attribute [rw] visa_amex_derivation_outputs
|
1119
|
+
# The attribute values used for Amex and Visa derivation methods.
|
1120
|
+
# @return [Types::VisaAmexDerivationOutputs]
|
1121
|
+
#
|
1122
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-data-2022-02-03/GenerateMacEmvPinChangeOutput AWS API Documentation
|
1123
|
+
#
|
1124
|
+
class GenerateMacEmvPinChangeOutput < Struct.new(
|
1125
|
+
:new_pin_pek_arn,
|
1126
|
+
:secure_messaging_integrity_key_arn,
|
1127
|
+
:secure_messaging_confidentiality_key_arn,
|
1128
|
+
:mac,
|
1129
|
+
:encrypted_pin_block,
|
1130
|
+
:new_pin_pek_key_check_value,
|
1131
|
+
:secure_messaging_integrity_key_check_value,
|
1132
|
+
:secure_messaging_confidentiality_key_check_value,
|
1133
|
+
:visa_amex_derivation_outputs)
|
1134
|
+
SENSITIVE = [:mac, :encrypted_pin_block]
|
1135
|
+
include Aws::Structure
|
1136
|
+
end
|
1137
|
+
|
824
1138
|
# @!attribute [rw] key_identifier
|
825
1139
|
# The `keyARN` of the MAC generation encryption key.
|
826
1140
|
# @return [String]
|
@@ -1270,6 +1584,39 @@ module Aws::PaymentCryptographyData
|
|
1270
1584
|
class Unknown < MacAttributes; end
|
1271
1585
|
end
|
1272
1586
|
|
1587
|
+
# Parameters to derive the confidentiality and integrity keys for a
|
1588
|
+
# Mastercard payment card.
|
1589
|
+
#
|
1590
|
+
# @!attribute [rw] major_key_derivation_mode
|
1591
|
+
# The method to use when deriving the master key for the payment card.
|
1592
|
+
# @return [String]
|
1593
|
+
#
|
1594
|
+
# @!attribute [rw] primary_account_number
|
1595
|
+
# The Primary Account Number (PAN) of the cardholder.
|
1596
|
+
# @return [String]
|
1597
|
+
#
|
1598
|
+
# @!attribute [rw] pan_sequence_number
|
1599
|
+
# A number that identifies and differentiates payment cards with the
|
1600
|
+
# same Primary Account Number (PAN). Typically 00 is used, if no value
|
1601
|
+
# is provided by the terminal.
|
1602
|
+
# @return [String]
|
1603
|
+
#
|
1604
|
+
# @!attribute [rw] application_cryptogram
|
1605
|
+
# The application cryptogram for the current transaction that is
|
1606
|
+
# provided by the terminal during transaction processing.
|
1607
|
+
# @return [String]
|
1608
|
+
#
|
1609
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-data-2022-02-03/MasterCardAttributes AWS API Documentation
|
1610
|
+
#
|
1611
|
+
class MasterCardAttributes < Struct.new(
|
1612
|
+
:major_key_derivation_mode,
|
1613
|
+
:primary_account_number,
|
1614
|
+
:pan_sequence_number,
|
1615
|
+
:application_cryptogram)
|
1616
|
+
SENSITIVE = [:primary_account_number, :application_cryptogram]
|
1617
|
+
include Aws::Structure
|
1618
|
+
end
|
1619
|
+
|
1273
1620
|
# Parameters that are required to generate, translate, or verify PIN
|
1274
1621
|
# data.
|
1275
1622
|
#
|
@@ -2264,6 +2611,81 @@ module Aws::PaymentCryptographyData
|
|
2264
2611
|
include Aws::Structure
|
2265
2612
|
end
|
2266
2613
|
|
2614
|
+
# The attributes values used for Amex and Visa derivation methods.
|
2615
|
+
#
|
2616
|
+
# @!attribute [rw] authorization_request_key_arn
|
2617
|
+
# The `keyArn` of the issuer master key for cryptogram (IMK-AC) used
|
2618
|
+
# by the operation.
|
2619
|
+
# @return [String]
|
2620
|
+
#
|
2621
|
+
# @!attribute [rw] authorization_request_key_check_value
|
2622
|
+
# The key check value (KCV) of the issuer master key for cryptogram
|
2623
|
+
# (IMK-AC) used by the operation.
|
2624
|
+
# @return [String]
|
2625
|
+
#
|
2626
|
+
# @!attribute [rw] current_pin_pek_arn
|
2627
|
+
# The `keyArn` of the current PIN PEK.
|
2628
|
+
# @return [String]
|
2629
|
+
#
|
2630
|
+
# @!attribute [rw] current_pin_pek_key_check_value
|
2631
|
+
# The key check value (KCV) of the current PIN PEK.
|
2632
|
+
# @return [String]
|
2633
|
+
#
|
2634
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-data-2022-02-03/VisaAmexDerivationOutputs AWS API Documentation
|
2635
|
+
#
|
2636
|
+
class VisaAmexDerivationOutputs < Struct.new(
|
2637
|
+
:authorization_request_key_arn,
|
2638
|
+
:authorization_request_key_check_value,
|
2639
|
+
:current_pin_pek_arn,
|
2640
|
+
:current_pin_pek_key_check_value)
|
2641
|
+
SENSITIVE = []
|
2642
|
+
include Aws::Structure
|
2643
|
+
end
|
2644
|
+
|
2645
|
+
# Parameters to derive the confidentiality and integrity keys for a Visa
|
2646
|
+
# payment card.
|
2647
|
+
#
|
2648
|
+
# @!attribute [rw] major_key_derivation_mode
|
2649
|
+
# The method to use when deriving the master key for the payment card.
|
2650
|
+
# @return [String]
|
2651
|
+
#
|
2652
|
+
# @!attribute [rw] primary_account_number
|
2653
|
+
# The Primary Account Number (PAN) of the cardholder.
|
2654
|
+
# @return [String]
|
2655
|
+
#
|
2656
|
+
# @!attribute [rw] pan_sequence_number
|
2657
|
+
# A number that identifies and differentiates payment cards with the
|
2658
|
+
# same Primary Account Number (PAN). Typically 00 is used, if no value
|
2659
|
+
# is provided by the terminal.
|
2660
|
+
# @return [String]
|
2661
|
+
#
|
2662
|
+
# @!attribute [rw] application_transaction_counter
|
2663
|
+
# The transaction counter of the current transaction that is provided
|
2664
|
+
# by the terminal during transaction processing.
|
2665
|
+
# @return [String]
|
2666
|
+
#
|
2667
|
+
# @!attribute [rw] authorization_request_key_identifier
|
2668
|
+
# The `keyArn` of the issuer master key for cryptogram (IMK-AC) for
|
2669
|
+
# the payment card.
|
2670
|
+
# @return [String]
|
2671
|
+
#
|
2672
|
+
# @!attribute [rw] current_pin_attributes
|
2673
|
+
# The encrypted pinblock of the old pin stored on the chip card.
|
2674
|
+
# @return [Types::CurrentPinAttributes]
|
2675
|
+
#
|
2676
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-data-2022-02-03/VisaAttributes AWS API Documentation
|
2677
|
+
#
|
2678
|
+
class VisaAttributes < Struct.new(
|
2679
|
+
:major_key_derivation_mode,
|
2680
|
+
:primary_account_number,
|
2681
|
+
:pan_sequence_number,
|
2682
|
+
:application_transaction_counter,
|
2683
|
+
:authorization_request_key_identifier,
|
2684
|
+
:current_pin_attributes)
|
2685
|
+
SENSITIVE = [:primary_account_number]
|
2686
|
+
include Aws::Structure
|
2687
|
+
end
|
2688
|
+
|
2267
2689
|
# Parameters that are required to generate or verify Visa PIN.
|
2268
2690
|
#
|
2269
2691
|
# @!attribute [rw] pin_verification_key_index
|
data/sig/client.rbs
CHANGED
@@ -252,6 +252,74 @@ module Aws
|
|
252
252
|
) -> _GenerateMacResponseSuccess
|
253
253
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateMacResponseSuccess
|
254
254
|
|
255
|
+
interface _GenerateMacEmvPinChangeResponseSuccess
|
256
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GenerateMacEmvPinChangeOutput]
|
257
|
+
def new_pin_pek_arn: () -> ::String
|
258
|
+
def secure_messaging_integrity_key_arn: () -> ::String
|
259
|
+
def secure_messaging_confidentiality_key_arn: () -> ::String
|
260
|
+
def mac: () -> ::String
|
261
|
+
def encrypted_pin_block: () -> ::String
|
262
|
+
def new_pin_pek_key_check_value: () -> ::String
|
263
|
+
def secure_messaging_integrity_key_check_value: () -> ::String
|
264
|
+
def secure_messaging_confidentiality_key_check_value: () -> ::String
|
265
|
+
def visa_amex_derivation_outputs: () -> Types::VisaAmexDerivationOutputs
|
266
|
+
end
|
267
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#generate_mac_emv_pin_change-instance_method
|
268
|
+
def generate_mac_emv_pin_change: (
|
269
|
+
new_pin_pek_identifier: ::String,
|
270
|
+
new_encrypted_pin_block: ::String,
|
271
|
+
pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_1" | "ISO_FORMAT_3"),
|
272
|
+
secure_messaging_integrity_key_identifier: ::String,
|
273
|
+
secure_messaging_confidentiality_key_identifier: ::String,
|
274
|
+
message_data: ::String,
|
275
|
+
derivation_method_attributes: {
|
276
|
+
emv_common: {
|
277
|
+
major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
|
278
|
+
primary_account_number: ::String,
|
279
|
+
pan_sequence_number: ::String,
|
280
|
+
application_cryptogram: ::String,
|
281
|
+
mode: ("ECB" | "CBC"),
|
282
|
+
pin_block_padding_type: ("NO_PADDING" | "ISO_IEC_7816_4"),
|
283
|
+
pin_block_length_position: ("NONE" | "FRONT_OF_PIN_BLOCK")
|
284
|
+
}?,
|
285
|
+
amex: {
|
286
|
+
major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
|
287
|
+
primary_account_number: ::String,
|
288
|
+
pan_sequence_number: ::String,
|
289
|
+
application_transaction_counter: ::String,
|
290
|
+
authorization_request_key_identifier: ::String,
|
291
|
+
current_pin_attributes: {
|
292
|
+
current_pin_pek_identifier: ::String,
|
293
|
+
current_encrypted_pin_block: ::String
|
294
|
+
}?
|
295
|
+
}?,
|
296
|
+
visa: {
|
297
|
+
major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
|
298
|
+
primary_account_number: ::String,
|
299
|
+
pan_sequence_number: ::String,
|
300
|
+
application_transaction_counter: ::String,
|
301
|
+
authorization_request_key_identifier: ::String,
|
302
|
+
current_pin_attributes: {
|
303
|
+
current_pin_pek_identifier: ::String,
|
304
|
+
current_encrypted_pin_block: ::String
|
305
|
+
}?
|
306
|
+
}?,
|
307
|
+
emv_2000: {
|
308
|
+
major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
|
309
|
+
primary_account_number: ::String,
|
310
|
+
pan_sequence_number: ::String,
|
311
|
+
application_transaction_counter: ::String
|
312
|
+
}?,
|
313
|
+
mastercard: {
|
314
|
+
major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
|
315
|
+
primary_account_number: ::String,
|
316
|
+
pan_sequence_number: ::String,
|
317
|
+
application_cryptogram: ::String
|
318
|
+
}?
|
319
|
+
}
|
320
|
+
) -> _GenerateMacEmvPinChangeResponseSuccess
|
321
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateMacEmvPinChangeResponseSuccess
|
322
|
+
|
255
323
|
interface _GeneratePinDataResponseSuccess
|
256
324
|
include ::Seahorse::Client::_ResponseSuccess[Types::GeneratePinDataOutput]
|
257
325
|
def generation_key_arn: () -> ::String
|