connect-sdk-ruby 1.28.0 → 1.29.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cd94e5eb80db8e13e4a0046c8e5ac2b9bfdbc58ef1d26a9dff96c247510daec
|
4
|
+
data.tar.gz: d67588a32a087b082c221a2710ba0c6a8e58fa21c9142d24046031ce461631b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d57504626a2db055a7e4ee15a3cd9dd5c38863479c282e99e0c0867fb619e02d3bedc602011dadace1213d16d217eee392e2c14608d11ebf40754185503fc39
|
7
|
+
data.tar.gz: 6f8918780bf7ab5bdd7a1c22e5df3e3a389be5990e046f8796e870e56ebf68df400f4d8a7092e315643d2b6b1f3cc62ae7247eb60b60a78741d6dfefe3aa3c39
|
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 = '1.
|
3
|
+
spec.version = '1.29.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}
|
@@ -4,6 +4,7 @@
|
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/domain/definitions/fraud_results'
|
6
6
|
require 'ingenico/connect/sdk/domain/definitions/fraud_results_retail_decisions'
|
7
|
+
require 'ingenico/connect/sdk/domain/definitions/fraugster_results'
|
7
8
|
|
8
9
|
module Ingenico::Connect::SDK
|
9
10
|
module Domain
|
@@ -17,6 +18,9 @@ module Ingenico::Connect::SDK
|
|
17
18
|
# String
|
18
19
|
attr_accessor :cvv_result
|
19
20
|
|
21
|
+
# {Ingenico::Connect::SDK::Domain::Definitions::FraugsterResults}
|
22
|
+
attr_accessor :fraugster
|
23
|
+
|
20
24
|
# {Ingenico::Connect::SDK::Domain::Definitions::FraudResultsRetailDecisions}
|
21
25
|
attr_accessor :retail_decisions
|
22
26
|
|
@@ -24,6 +28,7 @@ module Ingenico::Connect::SDK
|
|
24
28
|
hash = super
|
25
29
|
add_to_hash(hash, 'avsResult', @avs_result)
|
26
30
|
add_to_hash(hash, 'cvvResult', @cvv_result)
|
31
|
+
add_to_hash(hash, 'fraugster', @fraugster)
|
27
32
|
add_to_hash(hash, 'retailDecisions', @retail_decisions)
|
28
33
|
hash
|
29
34
|
end
|
@@ -36,6 +41,12 @@ module Ingenico::Connect::SDK
|
|
36
41
|
if hash.has_key?('cvvResult')
|
37
42
|
@cvv_result = hash['cvvResult']
|
38
43
|
end
|
44
|
+
if hash.has_key?('fraugster')
|
45
|
+
if !(hash['fraugster'].is_a? Hash)
|
46
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['fraugster']]
|
47
|
+
end
|
48
|
+
@fraugster = Ingenico::Connect::SDK::Domain::Definitions::FraugsterResults.new_from_hash(hash['fraugster'])
|
49
|
+
end
|
39
50
|
if hash.has_key?('retailDecisions')
|
40
51
|
if !(hash['retailDecisions'].is_a? Hash)
|
41
52
|
raise TypeError, "value '%s' is not a Hash" % [hash['retailDecisions']]
|
@@ -0,0 +1,38 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated from the API references found at
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
|
+
#
|
5
|
+
require 'ingenico/connect/sdk/data_object'
|
6
|
+
|
7
|
+
module Ingenico::Connect::SDK
|
8
|
+
module Domain
|
9
|
+
module Definitions
|
10
|
+
|
11
|
+
class FraugsterResults < Ingenico::Connect::SDK::DataObject
|
12
|
+
|
13
|
+
# String
|
14
|
+
attr_accessor :fraud_investigation_points
|
15
|
+
|
16
|
+
# Integer
|
17
|
+
attr_accessor :fraud_score
|
18
|
+
|
19
|
+
def to_h
|
20
|
+
hash = super
|
21
|
+
add_to_hash(hash, 'fraudInvestigationPoints', @fraud_investigation_points)
|
22
|
+
add_to_hash(hash, 'fraudScore', @fraud_score)
|
23
|
+
hash
|
24
|
+
end
|
25
|
+
|
26
|
+
def from_hash(hash)
|
27
|
+
super
|
28
|
+
if hash.has_key?('fraudInvestigationPoints')
|
29
|
+
@fraud_investigation_points = hash['fraudInvestigationPoints']
|
30
|
+
end
|
31
|
+
if hash.has_key?('fraudScore')
|
32
|
+
@fraud_score = hash['fraudScore']
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -5,7 +5,7 @@ module Ingenico::Connect::SDK
|
|
5
5
|
|
6
6
|
# Manages metadata about the server using the SDK
|
7
7
|
class MetaDataProvider
|
8
|
-
@@SDK_VERSION = '1.
|
8
|
+
@@SDK_VERSION = '1.29.0'
|
9
9
|
@@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
|
10
10
|
@@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
|
11
11
|
'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: 1.
|
4
|
+
version: 1.29.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: 2018-
|
11
|
+
date: 2018-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -228,6 +228,7 @@ files:
|
|
228
228
|
- lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb
|
229
229
|
- lib/ingenico/connect/sdk/domain/definitions/fraud_results.rb
|
230
230
|
- lib/ingenico/connect/sdk/domain/definitions/fraud_results_retail_decisions.rb
|
231
|
+
- lib/ingenico/connect/sdk/domain/definitions/fraugster_results.rb
|
231
232
|
- lib/ingenico/connect/sdk/domain/definitions/key_value_pair.rb
|
232
233
|
- lib/ingenico/connect/sdk/domain/definitions/order_status_output.rb
|
233
234
|
- lib/ingenico/connect/sdk/domain/definitions/payment_product_filter.rb
|