connect-sdk-ruby 2.32.0 → 2.33.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cdc198411715752e2b52cca040af4468388b857ae47865fbded83e00335cc71
|
4
|
+
data.tar.gz: 46282680d1ffe01e9cb6968a2bbd62331f95d6cb0b2d52a214ae043c62eb71b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c695a2d436dc43433763b380abfbbd26a60e245f099ad75c516af94e0ab72f84b91f3107ff1fa0a0098c149882fe7ac8c3acaf140b507eb9bc271ccb36bbc712
|
7
|
+
data.tar.gz: e8380700ddd0c84167998cc62e28db239a0c6a715ed38a366e2e5f50c404b541cbdc17343e511dbf926e035eee8b041889eefa2e9b4aa4d09f87be8c48c274d0
|
data/connect-sdk-ruby.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'connect-sdk-ruby'
|
3
|
-
spec.version = '2.
|
3
|
+
spec.version = '2.33.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,23 +8,51 @@ module Ingenico::Connect::SDK
|
|
8
8
|
module Domain
|
9
9
|
module Definitions
|
10
10
|
|
11
|
+
# @attr [String] device_country_code
|
12
|
+
# @attr [String] device_id
|
11
13
|
# @attr [Integer] fraud_score
|
14
|
+
# @attr [String] true_ip_address
|
15
|
+
# @attr [String] user_device_type
|
12
16
|
class MicrosoftFraudResults < Ingenico::Connect::SDK::DataObject
|
13
17
|
|
18
|
+
attr_accessor :device_country_code
|
19
|
+
|
20
|
+
attr_accessor :device_id
|
21
|
+
|
14
22
|
attr_accessor :fraud_score
|
15
23
|
|
24
|
+
attr_accessor :true_ip_address
|
25
|
+
|
26
|
+
attr_accessor :user_device_type
|
27
|
+
|
16
28
|
# @return (Hash)
|
17
29
|
def to_h
|
18
30
|
hash = super
|
31
|
+
hash['deviceCountryCode'] = @device_country_code unless @device_country_code.nil?
|
32
|
+
hash['deviceId'] = @device_id unless @device_id.nil?
|
19
33
|
hash['fraudScore'] = @fraud_score unless @fraud_score.nil?
|
34
|
+
hash['trueIpAddress'] = @true_ip_address unless @true_ip_address.nil?
|
35
|
+
hash['userDeviceType'] = @user_device_type unless @user_device_type.nil?
|
20
36
|
hash
|
21
37
|
end
|
22
38
|
|
23
39
|
def from_hash(hash)
|
24
40
|
super
|
41
|
+
if hash.has_key? 'deviceCountryCode'
|
42
|
+
@device_country_code = hash['deviceCountryCode']
|
43
|
+
end
|
44
|
+
if hash.has_key? 'deviceId'
|
45
|
+
@device_id = hash['deviceId']
|
46
|
+
end
|
25
47
|
if hash.has_key? 'fraudScore'
|
26
48
|
@fraud_score = hash['fraudScore']
|
27
49
|
end
|
50
|
+
if hash.has_key? 'trueIpAddress'
|
51
|
+
@true_ip_address = hash['trueIpAddress']
|
52
|
+
end
|
53
|
+
if hash.has_key? 'userDeviceType'
|
54
|
+
@user_device_type = hash['userDeviceType']
|
55
|
+
end
|
28
56
|
end
|
29
57
|
end
|
30
58
|
end
|
@@ -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.
|
10
|
+
@@SDK_VERSION = '2.33.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.
|
4
|
+
version: 2.33.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: 2022-
|
11
|
+
date: 2022-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|