connect-sdk-ruby 3.2.0 → 3.4.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 +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/card_payment_method_specific_output.rb +16 -0
- 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
- data/lib/worldline/connect/sdk/v1/domain/network_token_data.rb +49 -0
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbcd4d6dbb255fe54605d93deb10565191f79304bb66916205e0d292a6aea3a6
|
4
|
+
data.tar.gz: e7570f5d702657e4db20be29a1cce460bb1a4a2767fbbf80e147f7a3c98ee455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73373978eb443d95571dab4b1328eff1ed7c2f60447b07dc4b588c54d0d058e0249c27f4b8bd99b43b418ea50ee9982e8f97a7d8e226109431528ce03e58b6cb
|
7
|
+
data.tar.gz: f95402c66ab5de9e91b2e81de3052941ca3455f24df5bf02a6b35928ebdab38141a6ec4ae16e60d6539194548371b78d7bc5c2f5de55c7d1435e7a6a9b3b4c18
|
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.4.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.4.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
|
@@ -5,6 +5,7 @@
|
|
5
5
|
require 'worldline/connect/sdk/v1/domain/abstract_payment_method_specific_output'
|
6
6
|
require 'worldline/connect/sdk/v1/domain/card_essentials'
|
7
7
|
require 'worldline/connect/sdk/v1/domain/card_fraud_results'
|
8
|
+
require 'worldline/connect/sdk/v1/domain/network_token_data'
|
8
9
|
require 'worldline/connect/sdk/v1/domain/three_d_secure_results'
|
9
10
|
|
10
11
|
module Worldline
|
@@ -16,7 +17,9 @@ module Worldline
|
|
16
17
|
# @attr [Worldline::Connect::SDK::V1::Domain::CardEssentials] card
|
17
18
|
# @attr [Worldline::Connect::SDK::V1::Domain::CardFraudResults] fraud_results
|
18
19
|
# @attr [String] initial_scheme_transaction_id
|
20
|
+
# @attr [Worldline::Connect::SDK::V1::Domain::NetworkTokenData] network_token_data
|
19
21
|
# @attr [true/false] network_token_used
|
22
|
+
# @attr [String] payment_account_reference
|
20
23
|
# @attr [String] scheme_transaction_id
|
21
24
|
# @attr [Worldline::Connect::SDK::V1::Domain::ThreeDSecureResults] three_d_secure_results
|
22
25
|
# @attr [String] token
|
@@ -30,8 +33,12 @@ module Worldline
|
|
30
33
|
|
31
34
|
attr_accessor :initial_scheme_transaction_id
|
32
35
|
|
36
|
+
attr_accessor :network_token_data
|
37
|
+
|
33
38
|
attr_accessor :network_token_used
|
34
39
|
|
40
|
+
attr_accessor :payment_account_reference
|
41
|
+
|
35
42
|
attr_accessor :scheme_transaction_id
|
36
43
|
|
37
44
|
attr_accessor :three_d_secure_results
|
@@ -45,7 +52,9 @@ module Worldline
|
|
45
52
|
hash['card'] = @card.to_h unless @card.nil?
|
46
53
|
hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
|
47
54
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
55
|
+
hash['networkTokenData'] = @network_token_data.to_h unless @network_token_data.nil?
|
48
56
|
hash['networkTokenUsed'] = @network_token_used unless @network_token_used.nil?
|
57
|
+
hash['paymentAccountReference'] = @payment_account_reference unless @payment_account_reference.nil?
|
49
58
|
hash['schemeTransactionId'] = @scheme_transaction_id unless @scheme_transaction_id.nil?
|
50
59
|
hash['threeDSecureResults'] = @three_d_secure_results.to_h unless @three_d_secure_results.nil?
|
51
60
|
hash['token'] = @token unless @token.nil?
|
@@ -68,9 +77,16 @@ module Worldline
|
|
68
77
|
if hash.has_key? 'initialSchemeTransactionId'
|
69
78
|
@initial_scheme_transaction_id = hash['initialSchemeTransactionId']
|
70
79
|
end
|
80
|
+
if hash.has_key? 'networkTokenData'
|
81
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['networkTokenData']] unless hash['networkTokenData'].is_a? Hash
|
82
|
+
@network_token_data = Worldline::Connect::SDK::V1::Domain::NetworkTokenData.new_from_hash(hash['networkTokenData'])
|
83
|
+
end
|
71
84
|
if hash.has_key? 'networkTokenUsed'
|
72
85
|
@network_token_used = hash['networkTokenUsed']
|
73
86
|
end
|
87
|
+
if hash.has_key? 'paymentAccountReference'
|
88
|
+
@payment_account_reference = hash['paymentAccountReference']
|
89
|
+
end
|
74
90
|
if hash.has_key? 'schemeTransactionId'
|
75
91
|
@scheme_transaction_id = hash['schemeTransactionId']
|
76
92
|
end
|
@@ -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
|
@@ -0,0 +1,49 @@
|
|
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] network_token
|
13
|
+
# @attr [String] token_expiry_date
|
14
|
+
# @attr [String] token_reference_id
|
15
|
+
class NetworkTokenData < Worldline::Connect::SDK::Domain::DataObject
|
16
|
+
|
17
|
+
attr_accessor :network_token
|
18
|
+
|
19
|
+
attr_accessor :token_expiry_date
|
20
|
+
|
21
|
+
attr_accessor :token_reference_id
|
22
|
+
|
23
|
+
# @return (Hash)
|
24
|
+
def to_h
|
25
|
+
hash = super
|
26
|
+
hash['networkToken'] = @network_token unless @network_token.nil?
|
27
|
+
hash['tokenExpiryDate'] = @token_expiry_date unless @token_expiry_date.nil?
|
28
|
+
hash['tokenReferenceId'] = @token_reference_id unless @token_reference_id.nil?
|
29
|
+
hash
|
30
|
+
end
|
31
|
+
|
32
|
+
def from_hash(hash)
|
33
|
+
super
|
34
|
+
if hash.has_key? 'networkToken'
|
35
|
+
@network_token = hash['networkToken']
|
36
|
+
end
|
37
|
+
if hash.has_key? 'tokenExpiryDate'
|
38
|
+
@token_expiry_date = hash['tokenExpiryDate']
|
39
|
+
end
|
40
|
+
if hash.has_key? 'tokenReferenceId'
|
41
|
+
@token_reference_id = hash['tokenReferenceId']
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
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.4.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-03-12 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
|
@@ -491,6 +492,7 @@ files:
|
|
491
492
|
- lib/worldline/connect/sdk/v1/domain/mobile_payment_product_session302_specific_input.rb
|
492
493
|
- lib/worldline/connect/sdk/v1/domain/mobile_payment_product_session302_specific_output.rb
|
493
494
|
- lib/worldline/connect/sdk/v1/domain/mobile_three_d_secure_challenge_parameters.rb
|
495
|
+
- lib/worldline/connect/sdk/v1/domain/network_token_data.rb
|
494
496
|
- lib/worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_method_specific_input.rb
|
495
497
|
- lib/worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_method_specific_output.rb
|
496
498
|
- lib/worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_product705_specific_input.rb
|
@@ -778,7 +780,7 @@ homepage: https://github.com/Worldline-Global-Collect/connect-sdk-ruby
|
|
778
780
|
licenses:
|
779
781
|
- MIT
|
780
782
|
metadata: {}
|
781
|
-
post_install_message:
|
783
|
+
post_install_message:
|
782
784
|
rdoc_options: []
|
783
785
|
require_paths:
|
784
786
|
- lib
|
@@ -794,7 +796,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
794
796
|
version: '0'
|
795
797
|
requirements: []
|
796
798
|
rubygems_version: 3.4.22
|
797
|
-
signing_key:
|
799
|
+
signing_key:
|
798
800
|
specification_version: 4
|
799
801
|
summary: SDK to communicate with the Worldline Global Collect platform using the Worldline
|
800
802
|
Connect Server API
|