connect-sdk-ruby 4.5.0 → 4.7.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/capture_payment_order.rb +9 -0
- data/lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb +9 -0
- data/lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb +7 -0
- data/lib/worldline/connect/sdk/v1/domain/click_to_pay_input.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/click_to_pay_scheme_configuration_base.rb +7 -7
- data/lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb +7 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product.rb +7 -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: c175de9bd17c5518450db6d0a1f1ef001ac70ba09a38d8854f351ac646d77ea3
|
|
4
|
+
data.tar.gz: 722654abe776e9d14770ce84ebb82e968d91d4b9497837ead0c4c4bfb04089b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32863cf1531fe7c647e414c3328268be461c295cd060154ee8ea8c2f1e5cf27b588f898a040a3b80d8ee39d8b578f1e4b0eb07cababd43e7c591b8126913af15
|
|
7
|
+
data.tar.gz: 44e293a08fe576df338917ac833f92308ff8f7e7f669d8bc3825edc0fe2c631aa3531a46fb5ef13f052d5353c22d75b828b07ce93ec5503feaad9158cc1baa84
|
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 = '4.
|
|
3
|
+
spec.version = '4.7.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 = '4.
|
|
17
|
+
SDK_VERSION = '4.7.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/domain/data_object'
|
|
6
6
|
require 'worldline/connect/sdk/v1/domain/capture_payment_order_additional_input'
|
|
7
7
|
require 'worldline/connect/sdk/v1/domain/capture_payment_order_references'
|
|
8
|
+
require 'worldline/connect/sdk/v1/domain/shipping'
|
|
8
9
|
|
|
9
10
|
module Worldline
|
|
10
11
|
module Connect
|
|
@@ -13,17 +14,21 @@ module Worldline
|
|
|
13
14
|
module Domain
|
|
14
15
|
# @attr [Worldline::Connect::SDK::V1::Domain::CapturePaymentOrderAdditionalInput] additional_input
|
|
15
16
|
# @attr [Worldline::Connect::SDK::V1::Domain::CapturePaymentOrderReferences] references
|
|
17
|
+
# @attr [Worldline::Connect::SDK::V1::Domain::Shipping] shipping
|
|
16
18
|
class CapturePaymentOrder < Worldline::Connect::SDK::Domain::DataObject
|
|
17
19
|
|
|
18
20
|
attr_accessor :additional_input
|
|
19
21
|
|
|
20
22
|
attr_accessor :references
|
|
21
23
|
|
|
24
|
+
attr_accessor :shipping
|
|
25
|
+
|
|
22
26
|
# @return (Hash)
|
|
23
27
|
def to_h
|
|
24
28
|
hash = super
|
|
25
29
|
hash['additionalInput'] = @additional_input.to_h unless @additional_input.nil?
|
|
26
30
|
hash['references'] = @references.to_h unless @references.nil?
|
|
31
|
+
hash['shipping'] = @shipping.to_h unless @shipping.nil?
|
|
27
32
|
hash
|
|
28
33
|
end
|
|
29
34
|
|
|
@@ -37,6 +42,10 @@ module Worldline
|
|
|
37
42
|
raise TypeError, "value '%s' is not a Hash" % [hash['references']] unless hash['references'].is_a? Hash
|
|
38
43
|
@references = Worldline::Connect::SDK::V1::Domain::CapturePaymentOrderReferences.new_from_hash(hash['references'])
|
|
39
44
|
end
|
|
45
|
+
if hash.has_key? 'shipping'
|
|
46
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['shipping']] unless hash['shipping'].is_a? Hash
|
|
47
|
+
@shipping = Worldline::Connect::SDK::V1::Domain::Shipping.new_from_hash(hash['shipping'])
|
|
48
|
+
end
|
|
40
49
|
end
|
|
41
50
|
end
|
|
42
51
|
end
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
#
|
|
5
5
|
require 'worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input'
|
|
6
6
|
require 'worldline/connect/sdk/v1/domain/card'
|
|
7
|
+
require 'worldline/connect/sdk/v1/domain/click_to_pay_input'
|
|
7
8
|
require 'worldline/connect/sdk/v1/domain/external_cardholder_authentication_data'
|
|
8
9
|
require 'worldline/connect/sdk/v1/domain/scheme_token_data'
|
|
9
10
|
require 'worldline/connect/sdk/v1/domain/three_d_secure'
|
|
@@ -14,6 +15,7 @@ module Worldline
|
|
|
14
15
|
module V1
|
|
15
16
|
module Domain
|
|
16
17
|
# @attr [Worldline::Connect::SDK::V1::Domain::Card] card
|
|
18
|
+
# @attr [Worldline::Connect::SDK::V1::Domain::ClickToPayInput] click_to_pay
|
|
17
19
|
# @attr [Worldline::Connect::SDK::V1::Domain::ExternalCardholderAuthenticationData] external_cardholder_authentication_data
|
|
18
20
|
# @attr [true/false] is_recurring
|
|
19
21
|
# @attr [String] merchant_initiated_reason_indicator
|
|
@@ -24,6 +26,8 @@ module Worldline
|
|
|
24
26
|
|
|
25
27
|
attr_accessor :card
|
|
26
28
|
|
|
29
|
+
attr_accessor :click_to_pay
|
|
30
|
+
|
|
27
31
|
# @deprecated Use threeDSecure.externalCardholderAuthenticationData instead
|
|
28
32
|
attr_accessor :external_cardholder_authentication_data
|
|
29
33
|
|
|
@@ -42,6 +46,7 @@ module Worldline
|
|
|
42
46
|
def to_h
|
|
43
47
|
hash = super
|
|
44
48
|
hash['card'] = @card.to_h unless @card.nil?
|
|
49
|
+
hash['clickToPay'] = @click_to_pay.to_h unless @click_to_pay.nil?
|
|
45
50
|
hash['externalCardholderAuthenticationData'] = @external_cardholder_authentication_data.to_h unless @external_cardholder_authentication_data.nil?
|
|
46
51
|
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
|
47
52
|
hash['merchantInitiatedReasonIndicator'] = @merchant_initiated_reason_indicator unless @merchant_initiated_reason_indicator.nil?
|
|
@@ -57,6 +62,10 @@ module Worldline
|
|
|
57
62
|
raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
|
|
58
63
|
@card = Worldline::Connect::SDK::V1::Domain::Card.new_from_hash(hash['card'])
|
|
59
64
|
end
|
|
65
|
+
if hash.has_key? 'clickToPay'
|
|
66
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['clickToPay']] unless hash['clickToPay'].is_a? Hash
|
|
67
|
+
@click_to_pay = Worldline::Connect::SDK::V1::Domain::ClickToPayInput.new_from_hash(hash['clickToPay'])
|
|
68
|
+
end
|
|
60
69
|
if hash.has_key? 'externalCardholderAuthenticationData'
|
|
61
70
|
raise TypeError, "value '%s' is not a Hash" % [hash['externalCardholderAuthenticationData']] unless hash['externalCardholderAuthenticationData'].is_a? Hash
|
|
62
71
|
@external_cardholder_authentication_data = Worldline::Connect::SDK::V1::Domain::ExternalCardholderAuthenticationData.new_from_hash(hash['externalCardholderAuthenticationData'])
|
|
@@ -15,6 +15,7 @@ module Worldline
|
|
|
15
15
|
module Domain
|
|
16
16
|
# @attr [String] authorisation_code
|
|
17
17
|
# @attr [Worldline::Connect::SDK::V1::Domain::CardEssentials] card
|
|
18
|
+
# @attr [true/false] click_to_pay_used
|
|
18
19
|
# @attr [Worldline::Connect::SDK::V1::Domain::CardFraudResults] fraud_results
|
|
19
20
|
# @attr [String] initial_scheme_transaction_id
|
|
20
21
|
# @attr [Worldline::Connect::SDK::V1::Domain::NetworkTokenData] network_token_data
|
|
@@ -29,6 +30,8 @@ module Worldline
|
|
|
29
30
|
|
|
30
31
|
attr_accessor :card
|
|
31
32
|
|
|
33
|
+
attr_accessor :click_to_pay_used
|
|
34
|
+
|
|
32
35
|
attr_accessor :fraud_results
|
|
33
36
|
|
|
34
37
|
attr_accessor :initial_scheme_transaction_id
|
|
@@ -50,6 +53,7 @@ module Worldline
|
|
|
50
53
|
hash = super
|
|
51
54
|
hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
|
|
52
55
|
hash['card'] = @card.to_h unless @card.nil?
|
|
56
|
+
hash['clickToPayUsed'] = @click_to_pay_used unless @click_to_pay_used.nil?
|
|
53
57
|
hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
|
|
54
58
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
|
55
59
|
hash['networkTokenData'] = @network_token_data.to_h unless @network_token_data.nil?
|
|
@@ -70,6 +74,9 @@ module Worldline
|
|
|
70
74
|
raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
|
|
71
75
|
@card = Worldline::Connect::SDK::V1::Domain::CardEssentials.new_from_hash(hash['card'])
|
|
72
76
|
end
|
|
77
|
+
if hash.has_key? 'clickToPayUsed'
|
|
78
|
+
@click_to_pay_used = hash['clickToPayUsed']
|
|
79
|
+
end
|
|
73
80
|
if hash.has_key? 'fraudResults'
|
|
74
81
|
raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']] unless hash['fraudResults'].is_a? Hash
|
|
75
82
|
@fraud_results = Worldline::Connect::SDK::V1::Domain::CardFraudResults.new_from_hash(hash['fraudResults'])
|
|
@@ -0,0 +1,35 @@
|
|
|
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] checkout_response_signature
|
|
13
|
+
class ClickToPayInput < Worldline::Connect::SDK::Domain::DataObject
|
|
14
|
+
|
|
15
|
+
attr_accessor :checkout_response_signature
|
|
16
|
+
|
|
17
|
+
# @return (Hash)
|
|
18
|
+
def to_h
|
|
19
|
+
hash = super
|
|
20
|
+
hash['checkoutResponseSignature'] = @checkout_response_signature unless @checkout_response_signature.nil?
|
|
21
|
+
hash
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def from_hash(hash)
|
|
25
|
+
super
|
|
26
|
+
if hash.has_key? 'checkoutResponseSignature'
|
|
27
|
+
@checkout_response_signature = hash['checkoutResponseSignature']
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -9,30 +9,30 @@ module Worldline
|
|
|
9
9
|
module SDK
|
|
10
10
|
module V1
|
|
11
11
|
module Domain
|
|
12
|
-
# @attr [String] src_dpa_id
|
|
13
12
|
# @attr [String] src_initiator_id
|
|
13
|
+
# @attr [String] srci_dpa_id
|
|
14
14
|
class ClickToPaySchemeConfigurationBase < Worldline::Connect::SDK::Domain::DataObject
|
|
15
15
|
|
|
16
|
-
attr_accessor :src_dpa_id
|
|
17
|
-
|
|
18
16
|
attr_accessor :src_initiator_id
|
|
19
17
|
|
|
18
|
+
attr_accessor :srci_dpa_id
|
|
19
|
+
|
|
20
20
|
# @return (Hash)
|
|
21
21
|
def to_h
|
|
22
22
|
hash = super
|
|
23
|
-
hash['srcDpaId'] = @src_dpa_id unless @src_dpa_id.nil?
|
|
24
23
|
hash['srcInitiatorId'] = @src_initiator_id unless @src_initiator_id.nil?
|
|
24
|
+
hash['srciDpaId'] = @srci_dpa_id unless @srci_dpa_id.nil?
|
|
25
25
|
hash
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
def from_hash(hash)
|
|
29
29
|
super
|
|
30
|
-
if hash.has_key? 'srcDpaId'
|
|
31
|
-
@src_dpa_id = hash['srcDpaId']
|
|
32
|
-
end
|
|
33
30
|
if hash.has_key? 'srcInitiatorId'
|
|
34
31
|
@src_initiator_id = hash['srcInitiatorId']
|
|
35
32
|
end
|
|
33
|
+
if hash.has_key? 'srciDpaId'
|
|
34
|
+
@srci_dpa_id = hash['srciDpaId']
|
|
35
|
+
end
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
end
|
|
@@ -11,6 +11,7 @@ module Worldline
|
|
|
11
11
|
module SDK
|
|
12
12
|
module V1
|
|
13
13
|
module Domain
|
|
14
|
+
# @attr [true/false] allow_click_to_pay
|
|
14
15
|
# @attr [true/false] is_recurring
|
|
15
16
|
# @attr [String] locale
|
|
16
17
|
# @attr [Worldline::Connect::SDK::V1::Domain::PaymentProductFiltersHostedCheckout] payment_product_filters
|
|
@@ -23,6 +24,8 @@ module Worldline
|
|
|
23
24
|
# @attr [String] variant
|
|
24
25
|
class HostedCheckoutSpecificInput < Worldline::Connect::SDK::Domain::DataObject
|
|
25
26
|
|
|
27
|
+
attr_accessor :allow_click_to_pay
|
|
28
|
+
|
|
26
29
|
attr_accessor :is_recurring
|
|
27
30
|
|
|
28
31
|
attr_accessor :locale
|
|
@@ -46,6 +49,7 @@ module Worldline
|
|
|
46
49
|
# @return (Hash)
|
|
47
50
|
def to_h
|
|
48
51
|
hash = super
|
|
52
|
+
hash['allowClickToPay'] = @allow_click_to_pay unless @allow_click_to_pay.nil?
|
|
49
53
|
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
|
50
54
|
hash['locale'] = @locale unless @locale.nil?
|
|
51
55
|
hash['paymentProductFilters'] = @payment_product_filters.to_h unless @payment_product_filters.nil?
|
|
@@ -61,6 +65,9 @@ module Worldline
|
|
|
61
65
|
|
|
62
66
|
def from_hash(hash)
|
|
63
67
|
super
|
|
68
|
+
if hash.has_key? 'allowClickToPay'
|
|
69
|
+
@allow_click_to_pay = hash['allowClickToPay']
|
|
70
|
+
end
|
|
64
71
|
if hash.has_key? 'isRecurring'
|
|
65
72
|
@is_recurring = hash['isRecurring']
|
|
66
73
|
end
|
|
@@ -21,6 +21,7 @@ module Worldline
|
|
|
21
21
|
# @attr [String] acquirer_country
|
|
22
22
|
# @attr [true/false] allows_click_to_pay
|
|
23
23
|
# @attr [true/false] allows_installments
|
|
24
|
+
# @attr [true/false] allows_multiple_partial_captures
|
|
24
25
|
# @attr [true/false] allows_recurring
|
|
25
26
|
# @attr [true/false] allows_tokenization
|
|
26
27
|
# @attr [Worldline::Connect::SDK::V1::Domain::AuthenticationIndicator] authentication_indicator
|
|
@@ -54,6 +55,8 @@ module Worldline
|
|
|
54
55
|
|
|
55
56
|
attr_accessor :allows_installments
|
|
56
57
|
|
|
58
|
+
attr_accessor :allows_multiple_partial_captures
|
|
59
|
+
|
|
57
60
|
attr_accessor :allows_recurring
|
|
58
61
|
|
|
59
62
|
attr_accessor :allows_tokenization
|
|
@@ -107,6 +110,7 @@ module Worldline
|
|
|
107
110
|
hash['acquirerCountry'] = @acquirer_country unless @acquirer_country.nil?
|
|
108
111
|
hash['allowsClickToPay'] = @allows_click_to_pay unless @allows_click_to_pay.nil?
|
|
109
112
|
hash['allowsInstallments'] = @allows_installments unless @allows_installments.nil?
|
|
113
|
+
hash['allowsMultiplePartialCaptures'] = @allows_multiple_partial_captures unless @allows_multiple_partial_captures.nil?
|
|
110
114
|
hash['allowsRecurring'] = @allows_recurring unless @allows_recurring.nil?
|
|
111
115
|
hash['allowsTokenization'] = @allows_tokenization unless @allows_tokenization.nil?
|
|
112
116
|
hash['authenticationIndicator'] = @authentication_indicator.to_h unless @authentication_indicator.nil?
|
|
@@ -151,6 +155,9 @@ module Worldline
|
|
|
151
155
|
if hash.has_key? 'allowsInstallments'
|
|
152
156
|
@allows_installments = hash['allowsInstallments']
|
|
153
157
|
end
|
|
158
|
+
if hash.has_key? 'allowsMultiplePartialCaptures'
|
|
159
|
+
@allows_multiple_partial_captures = hash['allowsMultiplePartialCaptures']
|
|
160
|
+
end
|
|
154
161
|
if hash.has_key? 'allowsRecurring'
|
|
155
162
|
@allows_recurring = hash['allowsRecurring']
|
|
156
163
|
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: 4.
|
|
4
|
+
version: 4.7.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-04-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httpclient
|
|
@@ -372,6 +372,7 @@ files:
|
|
|
372
372
|
- lib/worldline/connect/sdk/v1/domain/click_to_pay_configuration_mastercard.rb
|
|
373
373
|
- lib/worldline/connect/sdk/v1/domain/click_to_pay_configuration_visa.rb
|
|
374
374
|
- lib/worldline/connect/sdk/v1/domain/click_to_pay_display_hints.rb
|
|
375
|
+
- lib/worldline/connect/sdk/v1/domain/click_to_pay_input.rb
|
|
375
376
|
- lib/worldline/connect/sdk/v1/domain/click_to_pay_scheme_configuration_base.rb
|
|
376
377
|
- lib/worldline/connect/sdk/v1/domain/company_information.rb
|
|
377
378
|
- lib/worldline/connect/sdk/v1/domain/complete_payment_card_payment_method_specific_input.rb
|