connect-sdk-ruby 2.8.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f485cc722658719c5210de579a671c54cff378907adc818d3126da50339ef013
4
- data.tar.gz: 4502eee51dc8326e826d3c710fe0771b2c813e2d6550136c224c24318be7072e
3
+ metadata.gz: 13061717e68f0e23680c717596492db53791a98b71024d00b6ccc962a1a57a84
4
+ data.tar.gz: 8a174e031a38c2dffba5305924d55dbf525f71fdc384685d356871977c29b436
5
5
  SHA512:
6
- metadata.gz: 79fd16223994f5759c6d8bf17ec1865b4175846b95820cb45b7b35285cf679c12b81d044a0c9db2e505565e08835da004f46970037efc71a587119a9e9de3a8b
7
- data.tar.gz: b2ac36a30aa3980289f6af652202ecc949e4c921d4aa5d99b722c13a229726d0268a466f141e10facf6600230adc483855b68075c8bb35b235b42e5aa4c6e62d
6
+ metadata.gz: 23a418aeb9a2c469860b6bdd1e2a1ddb11e4dc764f636e22f5847ecdc216462c76ae74acc3eeccc5e68bc24fc2265388d19b92ae2ba71cc71b0917b4ff8173b4
7
+ data.tar.gz: ac64018988f3ac8ec2dacd3a188a6ea6125a6f60e4ebb18ca7afc5ff4af49d6e06f899aa3afac1f93e2ad039325e56e4bca17a0e3d41265fc7cdfab76671da42
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '2.8.0'
3
+ spec.version = '2.9.0'
4
4
  spec.authors = ['Ingenico ePayments']
5
5
  spec.email = ['github@epay.ingenico.com']
6
6
  spec.summary = %q{SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API}
@@ -8,16 +8,23 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
+ # @attr [String] acs_transaction_id
12
+ # @attr [String] applied_exemption
11
13
  # @attr [String] cavv
12
14
  # @attr [String] cavv_algorithm
13
15
  # @attr [String] directory_server_transaction_id
14
16
  # @attr [Integer] eci
17
+ # @attr [Integer] scheme_risk_score
15
18
  # @attr [String] three_d_secure_version
16
19
  # @attr [String] three_d_server_transaction_id
17
20
  # @attr [String] validation_result
18
21
  # @attr [String] xid
19
22
  class ExternalCardholderAuthenticationData < Ingenico::Connect::SDK::DataObject
20
23
 
24
+ attr_accessor :acs_transaction_id
25
+
26
+ attr_accessor :applied_exemption
27
+
21
28
  attr_accessor :cavv
22
29
 
23
30
  attr_accessor :cavv_algorithm
@@ -26,8 +33,12 @@ module Ingenico::Connect::SDK
26
33
 
27
34
  attr_accessor :eci
28
35
 
36
+ attr_accessor :scheme_risk_score
37
+
29
38
  attr_accessor :three_d_secure_version
30
39
 
40
+ #
41
+ # @deprecated No replacement
31
42
  attr_accessor :three_d_server_transaction_id
32
43
 
33
44
  attr_accessor :validation_result
@@ -37,10 +48,13 @@ module Ingenico::Connect::SDK
37
48
  # @return (Hash)
38
49
  def to_h
39
50
  hash = super
51
+ hash['acsTransactionId'] = @acs_transaction_id unless @acs_transaction_id.nil?
52
+ hash['appliedExemption'] = @applied_exemption unless @applied_exemption.nil?
40
53
  hash['cavv'] = @cavv unless @cavv.nil?
41
54
  hash['cavvAlgorithm'] = @cavv_algorithm unless @cavv_algorithm.nil?
42
55
  hash['directoryServerTransactionId'] = @directory_server_transaction_id unless @directory_server_transaction_id.nil?
43
56
  hash['eci'] = @eci unless @eci.nil?
57
+ hash['schemeRiskScore'] = @scheme_risk_score unless @scheme_risk_score.nil?
44
58
  hash['threeDSecureVersion'] = @three_d_secure_version unless @three_d_secure_version.nil?
45
59
  hash['threeDServerTransactionId'] = @three_d_server_transaction_id unless @three_d_server_transaction_id.nil?
46
60
  hash['validationResult'] = @validation_result unless @validation_result.nil?
@@ -50,6 +64,12 @@ module Ingenico::Connect::SDK
50
64
 
51
65
  def from_hash(hash)
52
66
  super
67
+ if hash.has_key? 'acsTransactionId'
68
+ @acs_transaction_id = hash['acsTransactionId']
69
+ end
70
+ if hash.has_key? 'appliedExemption'
71
+ @applied_exemption = hash['appliedExemption']
72
+ end
53
73
  if hash.has_key? 'cavv'
54
74
  @cavv = hash['cavv']
55
75
  end
@@ -62,6 +82,9 @@ module Ingenico::Connect::SDK
62
82
  if hash.has_key? 'eci'
63
83
  @eci = hash['eci']
64
84
  end
85
+ if hash.has_key? 'schemeRiskScore'
86
+ @scheme_risk_score = hash['schemeRiskScore']
87
+ end
65
88
  if hash.has_key? 'threeDSecureVersion'
66
89
  @three_d_secure_version = hash['threeDSecureVersion']
67
90
  end
@@ -10,9 +10,12 @@ module Ingenico::Connect::SDK
10
10
  module Domain
11
11
  module Payment
12
12
 
13
+ # @attr [String] acs_transaction_id
14
+ # @attr [String] applied_exemption
13
15
  # @attr [String] cavv
14
16
  # @attr [String] directory_server_transaction_id
15
17
  # @attr [String] eci
18
+ # @attr [Integer] scheme_risk_score
16
19
  # @attr [Ingenico::Connect::SDK::Domain::Payment::SdkDataOutput] sdk_data
17
20
  # @attr [Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureData] three_d_secure_data
18
21
  # @attr [String] three_d_secure_version
@@ -20,12 +23,18 @@ module Ingenico::Connect::SDK
20
23
  # @attr [String] xid
21
24
  class ThreeDSecureResults < Ingenico::Connect::SDK::DataObject
22
25
 
26
+ attr_accessor :acs_transaction_id
27
+
28
+ attr_accessor :applied_exemption
29
+
23
30
  attr_accessor :cavv
24
31
 
25
32
  attr_accessor :directory_server_transaction_id
26
33
 
27
34
  attr_accessor :eci
28
35
 
36
+ attr_accessor :scheme_risk_score
37
+
29
38
  attr_accessor :sdk_data
30
39
 
31
40
  attr_accessor :three_d_secure_data
@@ -39,9 +48,12 @@ module Ingenico::Connect::SDK
39
48
  # @return (Hash)
40
49
  def to_h
41
50
  hash = super
51
+ hash['acsTransactionId'] = @acs_transaction_id unless @acs_transaction_id.nil?
52
+ hash['appliedExemption'] = @applied_exemption unless @applied_exemption.nil?
42
53
  hash['cavv'] = @cavv unless @cavv.nil?
43
54
  hash['directoryServerTransactionId'] = @directory_server_transaction_id unless @directory_server_transaction_id.nil?
44
55
  hash['eci'] = @eci unless @eci.nil?
56
+ hash['schemeRiskScore'] = @scheme_risk_score unless @scheme_risk_score.nil?
45
57
  hash['sdkData'] = @sdk_data.to_h unless @sdk_data.nil?
46
58
  hash['threeDSecureData'] = @three_d_secure_data.to_h unless @three_d_secure_data.nil?
47
59
  hash['threeDSecureVersion'] = @three_d_secure_version unless @three_d_secure_version.nil?
@@ -52,6 +64,12 @@ module Ingenico::Connect::SDK
52
64
 
53
65
  def from_hash(hash)
54
66
  super
67
+ if hash.has_key? 'acsTransactionId'
68
+ @acs_transaction_id = hash['acsTransactionId']
69
+ end
70
+ if hash.has_key? 'appliedExemption'
71
+ @applied_exemption = hash['appliedExemption']
72
+ end
55
73
  if hash.has_key? 'cavv'
56
74
  @cavv = hash['cavv']
57
75
  end
@@ -61,6 +79,9 @@ module Ingenico::Connect::SDK
61
79
  if hash.has_key? 'eci'
62
80
  @eci = hash['eci']
63
81
  end
82
+ if hash.has_key? 'schemeRiskScore'
83
+ @scheme_risk_score = hash['schemeRiskScore']
84
+ end
64
85
  if hash.has_key? 'sdkData'
65
86
  raise TypeError, "value '%s' is not a Hash" % [hash['sdkData']] unless hash['sdkData'].is_a? Hash
66
87
  @sdk_data = Ingenico::Connect::SDK::Domain::Payment::SdkDataOutput.new_from_hash(hash['sdkData'])
@@ -7,7 +7,7 @@ module Ingenico::Connect::SDK
7
7
  #
8
8
  # @attr_reader [Array<Ingenico::Connect::SDK::RequestHeader>] meta_data_headers List of headers that should be used in all requests.
9
9
  class MetaDataProvider
10
- @@SDK_VERSION = '2.8.0'
10
+ @@SDK_VERSION = '2.9.0'
11
11
  @@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
12
12
  @@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
13
13
  'Date', 'Content-Type', 'Authorization'].sort!.freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connect-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ingenico ePayments
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-07 00:00:00.000000000 Z
11
+ date: 2020-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient