connect-sdk-ruby 3.3.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/network_token_data.rb +49 -0
- metadata +3 -2
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,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
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -492,6 +492,7 @@ files:
|
|
492
492
|
- lib/worldline/connect/sdk/v1/domain/mobile_payment_product_session302_specific_input.rb
|
493
493
|
- lib/worldline/connect/sdk/v1/domain/mobile_payment_product_session302_specific_output.rb
|
494
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
|
495
496
|
- lib/worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_method_specific_input.rb
|
496
497
|
- lib/worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_method_specific_output.rb
|
497
498
|
- lib/worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_product705_specific_input.rb
|