aws-sdk-paymentcryptographydata 1.55.0 → 1.56.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c59239c7ab33f5548266cbd94f7a8f10b6ee9b059f111124b11f1bfa9e147b57
4
- data.tar.gz: 017e1da2556b7f0ebc0c232bd1ec8b99715fcfbd0a010466a9dccee1c1885d1a
3
+ metadata.gz: 82c56a47e9c6c8de8ebf3eb54b201007d17ed60e2bd43cea967bcb207fe59627
4
+ data.tar.gz: b7bd58b38a27371d25ed59696c74c86d8d7344f7ff242c14b238b2d0d0228866
5
5
  SHA512:
6
- metadata.gz: 211340ec019b0acaaf8f541db24cff2566d29b3e34752e45b8b21b660f5e9462fb59d24428fa25ad83db090cc8a0b04e38c4c1da4f4a6ef1ab954d7d8d13ff66
7
- data.tar.gz: 80f5291c1c0a5135b49f697333606c2eadfc7f280d7829cb48b9f85b3909117bad87e20bbddebcc32e54191daa7c15a1a663421be37e9045b939431743f7b227
6
+ metadata.gz: 4863bc1ee647f6a79f5d7ba406bdf1ca7b0be32d4a406e7d437c9b7e091c533102f0cd1531e9f24fff85d1a35fc0d3df69f53068e13c22b8b8631cf440162134
7
+ data.tar.gz: 7e6af5a940c0175cdf12fc7a10cc87793dad2d9c34cfea57c87432e2d5c0156a881ce4103ebd0a5a29777880a80185aa4e89dccc2f213b23be8804390f34d6ef
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.56.0 (2026-07-15)
5
+ ------------------
6
+
7
+ * Feature - Adds support for UnionPay session key derivation to the GenerateAuthRequestCryptogram, VerifyAuthRequestCryptogram, GenerateMac, and VerifyMac APIs.
8
+
4
9
  1.55.0 (2026-07-09)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.55.0
1
+ 1.56.0
@@ -988,6 +988,11 @@ module Aws::PaymentCryptographyData
988
988
  # primary_account_number: "PrimaryAccountNumberType", # required
989
989
  # pan_sequence_number: "NumberLengthEquals2", # required
990
990
  # },
991
+ # union_pay: {
992
+ # primary_account_number: "PrimaryAccountNumberType", # required
993
+ # pan_sequence_number: "NumberLengthEquals2", # required
994
+ # application_transaction_counter: "HexLengthEquals4", # required
995
+ # },
991
996
  # },
992
997
  # })
993
998
  #
@@ -1193,7 +1198,7 @@ module Aws::PaymentCryptographyData
1193
1198
  # major_key_derivation_mode: "EMV_OPTION_A", # required, accepts EMV_OPTION_A, EMV_OPTION_B
1194
1199
  # primary_account_number: "PrimaryAccountNumberType", # required
1195
1200
  # pan_sequence_number: "NumberLengthEquals2", # required
1196
- # session_key_derivation_mode: "EMV_COMMON_SESSION_KEY", # required, accepts EMV_COMMON_SESSION_KEY, EMV2000, AMEX, MASTERCARD_SESSION_KEY, VISA
1201
+ # session_key_derivation_mode: "EMV_COMMON_SESSION_KEY", # required, accepts EMV_COMMON_SESSION_KEY, EMV2000, AMEX, MASTERCARD_SESSION_KEY, VISA, UNION_PAY
1197
1202
  # session_key_derivation_value: { # required
1198
1203
  # application_cryptogram: "ApplicationCryptogramType",
1199
1204
  # application_transaction_counter: "HexLengthEquals4",
@@ -2177,6 +2182,11 @@ module Aws::PaymentCryptographyData
2177
2182
  # primary_account_number: "PrimaryAccountNumberType", # required
2178
2183
  # pan_sequence_number: "NumberLengthEquals2", # required
2179
2184
  # },
2185
+ # union_pay: {
2186
+ # primary_account_number: "PrimaryAccountNumberType", # required
2187
+ # pan_sequence_number: "NumberLengthEquals2", # required
2188
+ # application_transaction_counter: "HexLengthEquals4", # required
2189
+ # },
2180
2190
  # },
2181
2191
  # auth_response_attributes: {
2182
2192
  # arpc_method_1: {
@@ -2391,7 +2401,7 @@ module Aws::PaymentCryptographyData
2391
2401
  # major_key_derivation_mode: "EMV_OPTION_A", # required, accepts EMV_OPTION_A, EMV_OPTION_B
2392
2402
  # primary_account_number: "PrimaryAccountNumberType", # required
2393
2403
  # pan_sequence_number: "NumberLengthEquals2", # required
2394
- # session_key_derivation_mode: "EMV_COMMON_SESSION_KEY", # required, accepts EMV_COMMON_SESSION_KEY, EMV2000, AMEX, MASTERCARD_SESSION_KEY, VISA
2404
+ # session_key_derivation_mode: "EMV_COMMON_SESSION_KEY", # required, accepts EMV_COMMON_SESSION_KEY, EMV2000, AMEX, MASTERCARD_SESSION_KEY, VISA, UNION_PAY
2395
2405
  # session_key_derivation_value: { # required
2396
2406
  # application_cryptogram: "ApplicationCryptogramType",
2397
2407
  # application_transaction_counter: "HexLengthEquals4",
@@ -2586,7 +2596,7 @@ module Aws::PaymentCryptographyData
2586
2596
  tracer: tracer
2587
2597
  )
2588
2598
  context[:gem_name] = 'aws-sdk-paymentcryptographydata'
2589
- context[:gem_version] = '1.55.0'
2599
+ context[:gem_version] = '1.56.0'
2590
2600
  Seahorse::Client::Request.new(handlers, context)
2591
2601
  end
2592
2602
 
@@ -147,6 +147,7 @@ module Aws::PaymentCryptographyData
147
147
  SessionKeyEmv2000 = Shapes::StructureShape.new(name: 'SessionKeyEmv2000')
148
148
  SessionKeyEmvCommon = Shapes::StructureShape.new(name: 'SessionKeyEmvCommon')
149
149
  SessionKeyMastercard = Shapes::StructureShape.new(name: 'SessionKeyMastercard')
150
+ SessionKeyUnionPay = Shapes::StructureShape.new(name: 'SessionKeyUnionPay')
150
151
  SessionKeyVisa = Shapes::StructureShape.new(name: 'SessionKeyVisa')
151
152
  SharedInformation = Shapes::StringShape.new(name: 'SharedInformation')
152
153
  String = Shapes::StringShape.new(name: 'String')
@@ -653,12 +654,14 @@ module Aws::PaymentCryptographyData
653
654
  SessionKeyDerivation.add_member(:emv_2000, Shapes::ShapeRef.new(shape: SessionKeyEmv2000, location_name: "Emv2000"))
654
655
  SessionKeyDerivation.add_member(:amex, Shapes::ShapeRef.new(shape: SessionKeyAmex, location_name: "Amex"))
655
656
  SessionKeyDerivation.add_member(:visa, Shapes::ShapeRef.new(shape: SessionKeyVisa, location_name: "Visa"))
657
+ SessionKeyDerivation.add_member(:union_pay, Shapes::ShapeRef.new(shape: SessionKeyUnionPay, location_name: "UnionPay"))
656
658
  SessionKeyDerivation.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
657
659
  SessionKeyDerivation.add_member_subclass(:emv_common, Types::SessionKeyDerivation::EmvCommon)
658
660
  SessionKeyDerivation.add_member_subclass(:mastercard, Types::SessionKeyDerivation::Mastercard)
659
661
  SessionKeyDerivation.add_member_subclass(:emv_2000, Types::SessionKeyDerivation::Emv2000)
660
662
  SessionKeyDerivation.add_member_subclass(:amex, Types::SessionKeyDerivation::Amex)
661
663
  SessionKeyDerivation.add_member_subclass(:visa, Types::SessionKeyDerivation::Visa)
664
+ SessionKeyDerivation.add_member_subclass(:union_pay, Types::SessionKeyDerivation::UnionPay)
662
665
  SessionKeyDerivation.add_member_subclass(:unknown, Types::SessionKeyDerivation::Unknown)
663
666
  SessionKeyDerivation.struct_class = Types::SessionKeyDerivation
664
667
 
@@ -686,6 +689,11 @@ module Aws::PaymentCryptographyData
686
689
  SessionKeyMastercard.add_member(:unpredictable_number, Shapes::ShapeRef.new(shape: HexLengthEquals8, required: true, location_name: "UnpredictableNumber"))
687
690
  SessionKeyMastercard.struct_class = Types::SessionKeyMastercard
688
691
 
692
+ SessionKeyUnionPay.add_member(:primary_account_number, Shapes::ShapeRef.new(shape: PrimaryAccountNumberType, required: true, location_name: "PrimaryAccountNumber"))
693
+ SessionKeyUnionPay.add_member(:pan_sequence_number, Shapes::ShapeRef.new(shape: NumberLengthEquals2, required: true, location_name: "PanSequenceNumber"))
694
+ SessionKeyUnionPay.add_member(:application_transaction_counter, Shapes::ShapeRef.new(shape: HexLengthEquals4, required: true, location_name: "ApplicationTransactionCounter"))
695
+ SessionKeyUnionPay.struct_class = Types::SessionKeyUnionPay
696
+
689
697
  SessionKeyVisa.add_member(:primary_account_number, Shapes::ShapeRef.new(shape: PrimaryAccountNumberType, required: true, location_name: "PrimaryAccountNumber"))
690
698
  SessionKeyVisa.add_member(:pan_sequence_number, Shapes::ShapeRef.new(shape: NumberLengthEquals2, required: true, location_name: "PanSequenceNumber"))
691
699
  SessionKeyVisa.struct_class = Types::SessionKeyVisa
@@ -2310,6 +2310,11 @@ module Aws::PaymentCryptographyData
2310
2310
  # verification.
2311
2311
  # @return [Types::SessionKeyVisa]
2312
2312
  #
2313
+ # @!attribute [rw] union_pay
2314
+ # Parameters to derive session key for a UnionPay payment card for
2315
+ # Authorization Request Cryptogram (ARQC) generation and verification.
2316
+ # @return [Types::SessionKeyUnionPay]
2317
+ #
2313
2318
  # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-data-2022-02-03/SessionKeyDerivation AWS API Documentation
2314
2319
  #
2315
2320
  class SessionKeyDerivation < Struct.new(
@@ -2318,6 +2323,7 @@ module Aws::PaymentCryptographyData
2318
2323
  :emv_2000,
2319
2324
  :amex,
2320
2325
  :visa,
2326
+ :union_pay,
2321
2327
  :unknown)
2322
2328
  SENSITIVE = []
2323
2329
  include Aws::Structure
@@ -2328,6 +2334,7 @@ module Aws::PaymentCryptographyData
2328
2334
  class Emv2000 < SessionKeyDerivation; end
2329
2335
  class Amex < SessionKeyDerivation; end
2330
2336
  class Visa < SessionKeyDerivation; end
2337
+ class UnionPay < SessionKeyDerivation; end
2331
2338
  class Unknown < SessionKeyDerivation; end
2332
2339
  end
2333
2340
 
@@ -2452,6 +2459,36 @@ module Aws::PaymentCryptographyData
2452
2459
  include Aws::Structure
2453
2460
  end
2454
2461
 
2462
+ # Parameters to derive session key for a UnionPay payment card for
2463
+ # Authorization Request Cryptogram (ARQC) generation and verification.
2464
+ #
2465
+ # @!attribute [rw] primary_account_number
2466
+ # The Primary Account Number (PAN) of the cardholder. A PAN is a
2467
+ # unique identifier for a payment credit or debit card and associates
2468
+ # the card to a specific account holder.
2469
+ # @return [String]
2470
+ #
2471
+ # @!attribute [rw] pan_sequence_number
2472
+ # A number that identifies and differentiates payment cards with the
2473
+ # same Primary Account Number (PAN). If not used, enter `00`.
2474
+ # @return [String]
2475
+ #
2476
+ # @!attribute [rw] application_transaction_counter
2477
+ # The transaction counter that the terminal provides during
2478
+ # transaction processing. This value is in hexadecimal format. For
2479
+ # example, enter a decimal counter of 109 as `006D`.
2480
+ # @return [String]
2481
+ #
2482
+ # @see http://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-data-2022-02-03/SessionKeyUnionPay AWS API Documentation
2483
+ #
2484
+ class SessionKeyUnionPay < Struct.new(
2485
+ :primary_account_number,
2486
+ :pan_sequence_number,
2487
+ :application_transaction_counter)
2488
+ SENSITIVE = [:primary_account_number]
2489
+ include Aws::Structure
2490
+ end
2491
+
2455
2492
  # Parameters to derive session key for Visa payment card for ARQC
2456
2493
  # verification.
2457
2494
  #
@@ -55,7 +55,7 @@ module Aws::PaymentCryptographyData
55
55
  autoload :EndpointProvider, 'aws-sdk-paymentcryptographydata/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-paymentcryptographydata/endpoints'
57
57
 
58
- GEM_VERSION = '1.55.0'
58
+ GEM_VERSION = '1.56.0'
59
59
 
60
60
  end
61
61
 
data/sig/params.rbs CHANGED
@@ -79,6 +79,11 @@ module Aws
79
79
  visa: {
80
80
  primary_account_number: ::String,
81
81
  pan_sequence_number: ::String
82
+ }?,
83
+ union_pay: {
84
+ primary_account_number: ::String,
85
+ pan_sequence_number: ::String,
86
+ application_transaction_counter: ::String
82
87
  }?
83
88
  }
84
89
 
@@ -86,7 +91,7 @@ module Aws
86
91
  major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
87
92
  primary_account_number: ::String,
88
93
  pan_sequence_number: ::String,
89
- session_key_derivation_mode: ("EMV_COMMON_SESSION_KEY" | "EMV2000" | "AMEX" | "MASTERCARD_SESSION_KEY" | "VISA"),
94
+ session_key_derivation_mode: ("EMV_COMMON_SESSION_KEY" | "EMV2000" | "AMEX" | "MASTERCARD_SESSION_KEY" | "VISA" | "UNION_PAY"),
90
95
  session_key_derivation_value: {
91
96
  application_cryptogram: ::String?,
92
97
  application_transaction_counter: ::String?
data/sig/types.rbs CHANGED
@@ -530,7 +530,7 @@ module Aws::PaymentCryptographyData
530
530
  attr_accessor major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B")
531
531
  attr_accessor primary_account_number: ::String
532
532
  attr_accessor pan_sequence_number: ::String
533
- attr_accessor session_key_derivation_mode: ("EMV_COMMON_SESSION_KEY" | "EMV2000" | "AMEX" | "MASTERCARD_SESSION_KEY" | "VISA")
533
+ attr_accessor session_key_derivation_mode: ("EMV_COMMON_SESSION_KEY" | "EMV2000" | "AMEX" | "MASTERCARD_SESSION_KEY" | "VISA" | "UNION_PAY")
534
534
  attr_accessor session_key_derivation_value: Types::SessionKeyDerivationValue
535
535
  SENSITIVE: [:primary_account_number]
536
536
  end
@@ -685,6 +685,7 @@ module Aws::PaymentCryptographyData
685
685
  attr_accessor emv_2000: Types::SessionKeyEmv2000
686
686
  attr_accessor amex: Types::SessionKeyAmex
687
687
  attr_accessor visa: Types::SessionKeyVisa
688
+ attr_accessor union_pay: Types::SessionKeyUnionPay
688
689
  attr_accessor unknown: untyped
689
690
  SENSITIVE: []
690
691
 
@@ -698,6 +699,8 @@ module Aws::PaymentCryptographyData
698
699
  end
699
700
  class Visa < SessionKeyDerivation
700
701
  end
702
+ class UnionPay < SessionKeyDerivation
703
+ end
701
704
  class Unknown < SessionKeyDerivation
702
705
  end
703
706
  end
@@ -738,6 +741,13 @@ module Aws::PaymentCryptographyData
738
741
  SENSITIVE: [:primary_account_number]
739
742
  end
740
743
 
744
+ class SessionKeyUnionPay
745
+ attr_accessor primary_account_number: ::String
746
+ attr_accessor pan_sequence_number: ::String
747
+ attr_accessor application_transaction_counter: ::String
748
+ SENSITIVE: [:primary_account_number]
749
+ end
750
+
741
751
  class SessionKeyVisa
742
752
  attr_accessor primary_account_number: ::String
743
753
  attr_accessor pan_sequence_number: ::String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-paymentcryptographydata
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.55.0
4
+ version: 1.56.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services