connect-sdk-ruby 5.1.0 → 5.2.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/abstract_card_payment_method_specific_input.rb +7 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb +7 -0
- data/lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb +14 -0
- data/lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7cf949973490ebd6f3b56df4366fb663cd99447717f69fa6617faea68dd2e520
|
|
4
|
+
data.tar.gz: a0489cf7332564be73a488a87a1c5b091837bc6285ebc6d16ffcf5196f4805d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c95ce4b768ab29d0cee61b7b8ea06ca0ba3313c80318ef9961219834e485d7d3b479e364d50414cdf4d79d11d2a4e7c976685092eb1383c4ff07cefd521a3a0
|
|
7
|
+
data.tar.gz: 1f4ece57b32c61ea51d517c0fa69bc203be2015eda0159df7c0de2972cd3e5c7b923a14d7a53c6c5995802ec2259db9b8ff57107ee7c6257cead004112b36a70
|
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 = '5.
|
|
3
|
+
spec.version = '5.2.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 = '5.
|
|
17
|
+
SDK_VERSION = '5.2.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
|
|
@@ -14,6 +14,7 @@ module Worldline
|
|
|
14
14
|
# @attr [String] authorization_mode
|
|
15
15
|
# @attr [String] customer_reference
|
|
16
16
|
# @attr [String] initial_scheme_transaction_id
|
|
17
|
+
# @attr [String] original_transaction_link_id
|
|
17
18
|
# @attr [Worldline::Connect::SDK::V1::Domain::CardRecurrenceDetails] recurring
|
|
18
19
|
# @attr [String] recurring_payment_sequence_indicator
|
|
19
20
|
# @attr [true/false] requires_approval
|
|
@@ -35,6 +36,8 @@ module Worldline
|
|
|
35
36
|
|
|
36
37
|
attr_accessor :initial_scheme_transaction_id
|
|
37
38
|
|
|
39
|
+
attr_accessor :original_transaction_link_id
|
|
40
|
+
|
|
38
41
|
attr_accessor :recurring
|
|
39
42
|
|
|
40
43
|
# @deprecated Use recurring.recurringPaymentSequenceIndicator instead
|
|
@@ -67,6 +70,7 @@ module Worldline
|
|
|
67
70
|
hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
|
|
68
71
|
hash['customerReference'] = @customer_reference unless @customer_reference.nil?
|
|
69
72
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
|
73
|
+
hash['originalTransactionLinkId'] = @original_transaction_link_id unless @original_transaction_link_id.nil?
|
|
70
74
|
hash['recurring'] = @recurring.to_h unless @recurring.nil?
|
|
71
75
|
hash['recurringPaymentSequenceIndicator'] = @recurring_payment_sequence_indicator unless @recurring_payment_sequence_indicator.nil?
|
|
72
76
|
hash['requiresApproval'] = @requires_approval unless @requires_approval.nil?
|
|
@@ -95,6 +99,9 @@ module Worldline
|
|
|
95
99
|
if hash.has_key? 'initialSchemeTransactionId'
|
|
96
100
|
@initial_scheme_transaction_id = hash['initialSchemeTransactionId']
|
|
97
101
|
end
|
|
102
|
+
if hash.has_key? 'originalTransactionLinkId'
|
|
103
|
+
@original_transaction_link_id = hash['originalTransactionLinkId']
|
|
104
|
+
end
|
|
98
105
|
if hash.has_key? 'recurring'
|
|
99
106
|
raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash
|
|
100
107
|
@recurring = Worldline::Connect::SDK::V1::Domain::CardRecurrenceDetails.new_from_hash(hash['recurring'])
|
|
@@ -13,6 +13,7 @@ module Worldline
|
|
|
13
13
|
# @attr [String] authorization_mode
|
|
14
14
|
# @attr [String] customer_reference
|
|
15
15
|
# @attr [String] initial_scheme_transaction_id
|
|
16
|
+
# @attr [String] original_transaction_link_id
|
|
16
17
|
# @attr [Worldline::Connect::SDK::V1::Domain::CardRecurrenceDetails] recurring
|
|
17
18
|
# @attr [true/false] requires_approval
|
|
18
19
|
# @attr [true/false] skip_fraud_service
|
|
@@ -28,6 +29,8 @@ module Worldline
|
|
|
28
29
|
|
|
29
30
|
attr_accessor :initial_scheme_transaction_id
|
|
30
31
|
|
|
32
|
+
attr_accessor :original_transaction_link_id
|
|
33
|
+
|
|
31
34
|
attr_accessor :recurring
|
|
32
35
|
|
|
33
36
|
attr_accessor :requires_approval
|
|
@@ -48,6 +51,7 @@ module Worldline
|
|
|
48
51
|
hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
|
|
49
52
|
hash['customerReference'] = @customer_reference unless @customer_reference.nil?
|
|
50
53
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
|
54
|
+
hash['originalTransactionLinkId'] = @original_transaction_link_id unless @original_transaction_link_id.nil?
|
|
51
55
|
hash['recurring'] = @recurring.to_h unless @recurring.nil?
|
|
52
56
|
hash['requiresApproval'] = @requires_approval unless @requires_approval.nil?
|
|
53
57
|
hash['skipFraudService'] = @skip_fraud_service unless @skip_fraud_service.nil?
|
|
@@ -69,6 +73,9 @@ module Worldline
|
|
|
69
73
|
if hash.has_key? 'initialSchemeTransactionId'
|
|
70
74
|
@initial_scheme_transaction_id = hash['initialSchemeTransactionId']
|
|
71
75
|
end
|
|
76
|
+
if hash.has_key? 'originalTransactionLinkId'
|
|
77
|
+
@original_transaction_link_id = hash['originalTransactionLinkId']
|
|
78
|
+
end
|
|
72
79
|
if hash.has_key? 'recurring'
|
|
73
80
|
raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash
|
|
74
81
|
@recurring = Worldline::Connect::SDK::V1::Domain::CardRecurrenceDetails.new_from_hash(hash['recurring'])
|
|
@@ -20,10 +20,12 @@ module Worldline
|
|
|
20
20
|
# @attr [String] initial_scheme_transaction_id
|
|
21
21
|
# @attr [Worldline::Connect::SDK::V1::Domain::NetworkTokenData] network_token_data
|
|
22
22
|
# @attr [true/false] network_token_used
|
|
23
|
+
# @attr [String] original_transaction_link_id
|
|
23
24
|
# @attr [String] payment_account_reference
|
|
24
25
|
# @attr [String] scheme_transaction_id
|
|
25
26
|
# @attr [Worldline::Connect::SDK::V1::Domain::ThreeDSecureResults] three_d_secure_results
|
|
26
27
|
# @attr [String] token
|
|
28
|
+
# @attr [String] transaction_link_id
|
|
27
29
|
class CardPaymentMethodSpecificOutput < Worldline::Connect::SDK::V1::Domain::AbstractPaymentMethodSpecificOutput
|
|
28
30
|
|
|
29
31
|
attr_accessor :authorisation_code
|
|
@@ -40,6 +42,8 @@ module Worldline
|
|
|
40
42
|
|
|
41
43
|
attr_accessor :network_token_used
|
|
42
44
|
|
|
45
|
+
attr_accessor :original_transaction_link_id
|
|
46
|
+
|
|
43
47
|
attr_accessor :payment_account_reference
|
|
44
48
|
|
|
45
49
|
attr_accessor :scheme_transaction_id
|
|
@@ -48,6 +52,8 @@ module Worldline
|
|
|
48
52
|
|
|
49
53
|
attr_accessor :token
|
|
50
54
|
|
|
55
|
+
attr_accessor :transaction_link_id
|
|
56
|
+
|
|
51
57
|
# @return (Hash)
|
|
52
58
|
def to_h
|
|
53
59
|
hash = super
|
|
@@ -58,10 +64,12 @@ module Worldline
|
|
|
58
64
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
|
59
65
|
hash['networkTokenData'] = @network_token_data.to_h unless @network_token_data.nil?
|
|
60
66
|
hash['networkTokenUsed'] = @network_token_used unless @network_token_used.nil?
|
|
67
|
+
hash['originalTransactionLinkId'] = @original_transaction_link_id unless @original_transaction_link_id.nil?
|
|
61
68
|
hash['paymentAccountReference'] = @payment_account_reference unless @payment_account_reference.nil?
|
|
62
69
|
hash['schemeTransactionId'] = @scheme_transaction_id unless @scheme_transaction_id.nil?
|
|
63
70
|
hash['threeDSecureResults'] = @three_d_secure_results.to_h unless @three_d_secure_results.nil?
|
|
64
71
|
hash['token'] = @token unless @token.nil?
|
|
72
|
+
hash['transactionLinkId'] = @transaction_link_id unless @transaction_link_id.nil?
|
|
65
73
|
hash
|
|
66
74
|
end
|
|
67
75
|
|
|
@@ -91,6 +99,9 @@ module Worldline
|
|
|
91
99
|
if hash.has_key? 'networkTokenUsed'
|
|
92
100
|
@network_token_used = hash['networkTokenUsed']
|
|
93
101
|
end
|
|
102
|
+
if hash.has_key? 'originalTransactionLinkId'
|
|
103
|
+
@original_transaction_link_id = hash['originalTransactionLinkId']
|
|
104
|
+
end
|
|
94
105
|
if hash.has_key? 'paymentAccountReference'
|
|
95
106
|
@payment_account_reference = hash['paymentAccountReference']
|
|
96
107
|
end
|
|
@@ -104,6 +115,9 @@ module Worldline
|
|
|
104
115
|
if hash.has_key? 'token'
|
|
105
116
|
@token = hash['token']
|
|
106
117
|
end
|
|
118
|
+
if hash.has_key? 'transactionLinkId'
|
|
119
|
+
@transaction_link_id = hash['transactionLinkId']
|
|
120
|
+
end
|
|
107
121
|
end
|
|
108
122
|
end
|
|
109
123
|
end
|
|
@@ -16,10 +16,12 @@ module Worldline
|
|
|
16
16
|
# @attr [Worldline::Connect::SDK::V1::Domain::CardFraudResults] fraud_results
|
|
17
17
|
# @attr [String] initial_scheme_transaction_id
|
|
18
18
|
# @attr [String] network
|
|
19
|
+
# @attr [String] original_transaction_link_id
|
|
19
20
|
# @attr [Worldline::Connect::SDK::V1::Domain::MobilePaymentData] payment_data
|
|
20
21
|
# @attr [String] scheme_transaction_id
|
|
21
22
|
# @attr [Worldline::Connect::SDK::V1::Domain::ThreeDSecureResults] three_d_secure_results
|
|
22
23
|
# @attr [String] token
|
|
24
|
+
# @attr [String] transaction_link_id
|
|
23
25
|
class MobilePaymentMethodSpecificOutput < Worldline::Connect::SDK::V1::Domain::AbstractPaymentMethodSpecificOutput
|
|
24
26
|
|
|
25
27
|
attr_accessor :authorisation_code
|
|
@@ -30,6 +32,8 @@ module Worldline
|
|
|
30
32
|
|
|
31
33
|
attr_accessor :network
|
|
32
34
|
|
|
35
|
+
attr_accessor :original_transaction_link_id
|
|
36
|
+
|
|
33
37
|
attr_accessor :payment_data
|
|
34
38
|
|
|
35
39
|
attr_accessor :scheme_transaction_id
|
|
@@ -38,6 +42,8 @@ module Worldline
|
|
|
38
42
|
|
|
39
43
|
attr_accessor :token
|
|
40
44
|
|
|
45
|
+
attr_accessor :transaction_link_id
|
|
46
|
+
|
|
41
47
|
# @return (Hash)
|
|
42
48
|
def to_h
|
|
43
49
|
hash = super
|
|
@@ -45,10 +51,12 @@ module Worldline
|
|
|
45
51
|
hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
|
|
46
52
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
|
47
53
|
hash['network'] = @network unless @network.nil?
|
|
54
|
+
hash['originalTransactionLinkId'] = @original_transaction_link_id unless @original_transaction_link_id.nil?
|
|
48
55
|
hash['paymentData'] = @payment_data.to_h unless @payment_data.nil?
|
|
49
56
|
hash['schemeTransactionId'] = @scheme_transaction_id unless @scheme_transaction_id.nil?
|
|
50
57
|
hash['threeDSecureResults'] = @three_d_secure_results.to_h unless @three_d_secure_results.nil?
|
|
51
58
|
hash['token'] = @token unless @token.nil?
|
|
59
|
+
hash['transactionLinkId'] = @transaction_link_id unless @transaction_link_id.nil?
|
|
52
60
|
hash
|
|
53
61
|
end
|
|
54
62
|
|
|
@@ -67,6 +75,9 @@ module Worldline
|
|
|
67
75
|
if hash.has_key? 'network'
|
|
68
76
|
@network = hash['network']
|
|
69
77
|
end
|
|
78
|
+
if hash.has_key? 'originalTransactionLinkId'
|
|
79
|
+
@original_transaction_link_id = hash['originalTransactionLinkId']
|
|
80
|
+
end
|
|
70
81
|
if hash.has_key? 'paymentData'
|
|
71
82
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentData']] unless hash['paymentData'].is_a? Hash
|
|
72
83
|
@payment_data = Worldline::Connect::SDK::V1::Domain::MobilePaymentData.new_from_hash(hash['paymentData'])
|
|
@@ -81,6 +92,9 @@ module Worldline
|
|
|
81
92
|
if hash.has_key? 'token'
|
|
82
93
|
@token = hash['token']
|
|
83
94
|
end
|
|
95
|
+
if hash.has_key? 'transactionLinkId'
|
|
96
|
+
@transaction_link_id = hash['transactionLinkId']
|
|
97
|
+
end
|
|
84
98
|
end
|
|
85
99
|
end
|
|
86
100
|
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: 5.
|
|
4
|
+
version: 5.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Worldline Global Collect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-07-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httpclient
|