connect-sdk-ruby 4.6.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
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
|
|
@@ -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-04-
|
|
11
|
+
date: 2026-04-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httpclient
|