connect-sdk-ruby 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/connect-sdk-ruby.gemspec +1 -1
- data/lib/worldline/connect/sdk/communication/metadata_provider.rb +1 -1
- data/lib/worldline/connect/sdk/v1/domain/cybersource_decision_manager.rb +60 -0
- data/lib/worldline/connect/sdk/v1/domain/fraud_results.rb +9 -0
- data/lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb +11 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28540517a07fb7116a725c18777404a0621872c7408979cf6d172f4ead0b4862
|
4
|
+
data.tar.gz: f80f1251db700b9dae55a72f11f35eb4d9a7ba9741d0670e00ded9f5acbb8322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a0467c079268d78b3a5970e649bb1fee793bdb91b7b84ac521f782b9a9f2710b16c72a009355e6726110664681f1fa8a4bc58df0a9dadd3df23f52f469971e4
|
7
|
+
data.tar.gz: 854b3e7768528a5308d83cd30dd506a9def730d5f3b309872796fa9a5b0968853c58428eb22fba000cc5d0fc30a3951d726d02f93e46d292a02a50a7b1c9b66d
|
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 = '3.
|
3
|
+
spec.version = '3.3.0'
|
4
4
|
spec.authors = ['Worldline Global Collect']
|
5
5
|
spec.email = ['github.connect@worldline.com']
|
6
6
|
spec.summary = %q{SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Server API}
|
@@ -14,7 +14,7 @@ module Worldline
|
|
14
14
|
class MetadataProvider
|
15
15
|
private
|
16
16
|
|
17
|
-
SDK_VERSION = '3.
|
17
|
+
SDK_VERSION = '3.3.0'.freeze
|
18
18
|
SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'.freeze
|
19
19
|
PROHIBITED_HEADERS = [SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key','Date', 'Content-Type', 'Authorization'].sort!.freeze
|
20
20
|
CHARSET = 'utf-8'.freeze
|
@@ -0,0 +1,60 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated from the API references found at
|
3
|
+
# https://apireference.connect.worldline-solutions.com/
|
4
|
+
#
|
5
|
+
require 'worldline/connect/sdk/domain/data_object'
|
6
|
+
|
7
|
+
module Worldline
|
8
|
+
module Connect
|
9
|
+
module SDK
|
10
|
+
module V1
|
11
|
+
module Domain
|
12
|
+
# @attr [String] clause_name
|
13
|
+
# @attr [Integer] fraud_score
|
14
|
+
# @attr [String] policy_applied
|
15
|
+
# @attr [Array<String>] reason_codes
|
16
|
+
class CybersourceDecisionManager < Worldline::Connect::SDK::Domain::DataObject
|
17
|
+
|
18
|
+
attr_accessor :clause_name
|
19
|
+
|
20
|
+
attr_accessor :fraud_score
|
21
|
+
|
22
|
+
attr_accessor :policy_applied
|
23
|
+
|
24
|
+
attr_accessor :reason_codes
|
25
|
+
|
26
|
+
# @return (Hash)
|
27
|
+
def to_h
|
28
|
+
hash = super
|
29
|
+
hash['clauseName'] = @clause_name unless @clause_name.nil?
|
30
|
+
hash['fraudScore'] = @fraud_score unless @fraud_score.nil?
|
31
|
+
hash['policyApplied'] = @policy_applied unless @policy_applied.nil?
|
32
|
+
hash['reasonCodes'] = @reason_codes unless @reason_codes.nil?
|
33
|
+
hash
|
34
|
+
end
|
35
|
+
|
36
|
+
def from_hash(hash)
|
37
|
+
super
|
38
|
+
if hash.has_key? 'clauseName'
|
39
|
+
@clause_name = hash['clauseName']
|
40
|
+
end
|
41
|
+
if hash.has_key? 'fraudScore'
|
42
|
+
@fraud_score = hash['fraudScore']
|
43
|
+
end
|
44
|
+
if hash.has_key? 'policyApplied'
|
45
|
+
@policy_applied = hash['policyApplied']
|
46
|
+
end
|
47
|
+
if hash.has_key? 'reasonCodes'
|
48
|
+
raise TypeError, "value '%s' is not an Array" % [hash['reasonCodes']] unless hash['reasonCodes'].is_a? Array
|
49
|
+
@reason_codes = []
|
50
|
+
hash['reasonCodes'].each do |e|
|
51
|
+
@reason_codes << e
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
# https://apireference.connect.worldline-solutions.com/
|
4
4
|
#
|
5
5
|
require 'worldline/connect/sdk/domain/data_object'
|
6
|
+
require 'worldline/connect/sdk/v1/domain/cybersource_decision_manager'
|
6
7
|
require 'worldline/connect/sdk/v1/domain/in_auth'
|
7
8
|
require 'worldline/connect/sdk/v1/domain/microsoft_fraud_results'
|
8
9
|
|
@@ -11,11 +12,14 @@ module Worldline
|
|
11
12
|
module SDK
|
12
13
|
module V1
|
13
14
|
module Domain
|
15
|
+
# @attr [Worldline::Connect::SDK::V1::Domain::CybersourceDecisionManager] cybersource_decision_manager
|
14
16
|
# @attr [String] fraud_service_result
|
15
17
|
# @attr [Worldline::Connect::SDK::V1::Domain::InAuth] in_auth
|
16
18
|
# @attr [Worldline::Connect::SDK::V1::Domain::MicrosoftFraudResults] microsoft_fraud_protection
|
17
19
|
class FraudResults < Worldline::Connect::SDK::Domain::DataObject
|
18
20
|
|
21
|
+
attr_accessor :cybersource_decision_manager
|
22
|
+
|
19
23
|
attr_accessor :fraud_service_result
|
20
24
|
|
21
25
|
attr_accessor :in_auth
|
@@ -25,6 +29,7 @@ module Worldline
|
|
25
29
|
# @return (Hash)
|
26
30
|
def to_h
|
27
31
|
hash = super
|
32
|
+
hash['cybersourceDecisionManager'] = @cybersource_decision_manager.to_h unless @cybersource_decision_manager.nil?
|
28
33
|
hash['fraudServiceResult'] = @fraud_service_result unless @fraud_service_result.nil?
|
29
34
|
hash['inAuth'] = @in_auth.to_h unless @in_auth.nil?
|
30
35
|
hash['microsoftFraudProtection'] = @microsoft_fraud_protection.to_h unless @microsoft_fraud_protection.nil?
|
@@ -33,6 +38,10 @@ module Worldline
|
|
33
38
|
|
34
39
|
def from_hash(hash)
|
35
40
|
super
|
41
|
+
if hash.has_key? 'cybersourceDecisionManager'
|
42
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['cybersourceDecisionManager']] unless hash['cybersourceDecisionManager'].is_a? Hash
|
43
|
+
@cybersource_decision_manager = Worldline::Connect::SDK::V1::Domain::CybersourceDecisionManager.new_from_hash(hash['cybersourceDecisionManager'])
|
44
|
+
end
|
36
45
|
if hash.has_key? 'fraudServiceResult'
|
37
46
|
@fraud_service_result = hash['fraudServiceResult']
|
38
47
|
end
|
@@ -14,6 +14,7 @@ module Worldline
|
|
14
14
|
# @attr [String] device_id
|
15
15
|
# @attr [Integer] fraud_score
|
16
16
|
# @attr [String] policy_applied
|
17
|
+
# @attr [Array<String>] reason_codes
|
17
18
|
# @attr [String] true_ip_address
|
18
19
|
# @attr [String] user_device_type
|
19
20
|
class MicrosoftFraudResults < Worldline::Connect::SDK::Domain::DataObject
|
@@ -28,6 +29,8 @@ module Worldline
|
|
28
29
|
|
29
30
|
attr_accessor :policy_applied
|
30
31
|
|
32
|
+
attr_accessor :reason_codes
|
33
|
+
|
31
34
|
attr_accessor :true_ip_address
|
32
35
|
|
33
36
|
attr_accessor :user_device_type
|
@@ -40,6 +43,7 @@ module Worldline
|
|
40
43
|
hash['deviceId'] = @device_id unless @device_id.nil?
|
41
44
|
hash['fraudScore'] = @fraud_score unless @fraud_score.nil?
|
42
45
|
hash['policyApplied'] = @policy_applied unless @policy_applied.nil?
|
46
|
+
hash['reasonCodes'] = @reason_codes unless @reason_codes.nil?
|
43
47
|
hash['trueIpAddress'] = @true_ip_address unless @true_ip_address.nil?
|
44
48
|
hash['userDeviceType'] = @user_device_type unless @user_device_type.nil?
|
45
49
|
hash
|
@@ -62,6 +66,13 @@ module Worldline
|
|
62
66
|
if hash.has_key? 'policyApplied'
|
63
67
|
@policy_applied = hash['policyApplied']
|
64
68
|
end
|
69
|
+
if hash.has_key? 'reasonCodes'
|
70
|
+
raise TypeError, "value '%s' is not an Array" % [hash['reasonCodes']] unless hash['reasonCodes'].is_a? Array
|
71
|
+
@reason_codes = []
|
72
|
+
hash['reasonCodes'].each do |e|
|
73
|
+
@reason_codes << e
|
74
|
+
end
|
75
|
+
end
|
65
76
|
if hash.has_key? 'trueIpAddress'
|
66
77
|
@true_ip_address = hash['trueIpAddress']
|
67
78
|
end
|
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: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Worldline Global Collect
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -394,6 +394,7 @@ files:
|
|
394
394
|
- lib/worldline/connect/sdk/v1/domain/customer_risk_assessment.rb
|
395
395
|
- lib/worldline/connect/sdk/v1/domain/customer_token.rb
|
396
396
|
- lib/worldline/connect/sdk/v1/domain/customer_token_with_contact_details.rb
|
397
|
+
- lib/worldline/connect/sdk/v1/domain/cybersource_decision_manager.rb
|
397
398
|
- lib/worldline/connect/sdk/v1/domain/debtor.rb
|
398
399
|
- lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb
|
399
400
|
- lib/worldline/connect/sdk/v1/domain/device_fingerprint_details.rb
|
@@ -778,7 +779,7 @@ homepage: https://github.com/Worldline-Global-Collect/connect-sdk-ruby
|
|
778
779
|
licenses:
|
779
780
|
- MIT
|
780
781
|
metadata: {}
|
781
|
-
post_install_message:
|
782
|
+
post_install_message:
|
782
783
|
rdoc_options: []
|
783
784
|
require_paths:
|
784
785
|
- lib
|
@@ -794,7 +795,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
794
795
|
version: '0'
|
795
796
|
requirements: []
|
796
797
|
rubygems_version: 3.4.22
|
797
|
-
signing_key:
|
798
|
+
signing_key:
|
798
799
|
specification_version: 4
|
799
800
|
summary: SDK to communicate with the Worldline Global Collect platform using the Worldline
|
800
801
|
Connect Server API
|