onlinepayments-sdk-ruby 8.1.0 → 8.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c1812c5895b2a6d8893f0e57882b6de4106db352bcc4298c0da32da05530b68
|
|
4
|
+
data.tar.gz: 794085eb6a33b45b3663ee688f0249493107268fd448b42d59a551eaa42e33bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb7f8523c051ff997ee7fdf1879c34d2bbe8ef81c52e781a840a46cdb34412a2377d0892bafe127739d2c3e47d23250e197637168201c8215dec606aed58e0a6
|
|
7
|
+
data.tar.gz: 0ef5ea22f7aeddf9cef5e10b51f2ee2dc4d452bd67eb767692b68898bd7f3e8e469509934421ad068c49f87e7822a2ec41a44680a8becb97fc9735394f4b1f45
|
|
@@ -13,7 +13,7 @@ module OnlinePayments
|
|
|
13
13
|
class MetadataProvider
|
|
14
14
|
private
|
|
15
15
|
|
|
16
|
-
SDK_VERSION = '8.
|
|
16
|
+
SDK_VERSION = '8.2.0'.freeze
|
|
17
17
|
SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'.freeze
|
|
18
18
|
PROHIBITED_HEADERS = [SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key', 'Date', 'Content-Type', 'Authorization'].sort!.freeze
|
|
19
19
|
CHARSET = 'utf-8'.freeze
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# This file was automatically generated.
|
|
3
3
|
#
|
|
4
|
+
require 'onlinepayments/sdk/domain/auto_capture'
|
|
4
5
|
require 'onlinepayments/sdk/domain/data_object'
|
|
5
6
|
require 'onlinepayments/sdk/domain/market_place'
|
|
6
7
|
|
|
@@ -8,6 +9,7 @@ module OnlinePayments
|
|
|
8
9
|
module SDK
|
|
9
10
|
module Domain
|
|
10
11
|
# @attr [String] authorization_mode
|
|
12
|
+
# @attr [OnlinePayments::SDK::Domain::AutoCapture] auto_capture
|
|
11
13
|
# @attr [OnlinePayments::SDK::Domain::MarketPlace] market_place
|
|
12
14
|
# @attr [Integer] payment_number
|
|
13
15
|
# @attr [String] scheme_reference_data
|
|
@@ -18,6 +20,8 @@ module OnlinePayments
|
|
|
18
20
|
|
|
19
21
|
attr_accessor :authorization_mode
|
|
20
22
|
|
|
23
|
+
attr_accessor :auto_capture
|
|
24
|
+
|
|
21
25
|
attr_accessor :market_place
|
|
22
26
|
|
|
23
27
|
attr_accessor :payment_number
|
|
@@ -36,6 +40,7 @@ module OnlinePayments
|
|
|
36
40
|
def to_h
|
|
37
41
|
hash = super
|
|
38
42
|
hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
|
|
43
|
+
hash['autoCapture'] = @auto_capture.to_h unless @auto_capture.nil?
|
|
39
44
|
hash['marketPlace'] = @market_place.to_h unless @market_place.nil?
|
|
40
45
|
hash['paymentNumber'] = @payment_number unless @payment_number.nil?
|
|
41
46
|
hash['schemeReferenceData'] = @scheme_reference_data unless @scheme_reference_data.nil?
|
|
@@ -50,6 +55,10 @@ module OnlinePayments
|
|
|
50
55
|
if hash.has_key? 'authorizationMode'
|
|
51
56
|
@authorization_mode = hash['authorizationMode']
|
|
52
57
|
end
|
|
58
|
+
if hash.has_key? 'autoCapture'
|
|
59
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['autoCapture']] unless hash['autoCapture'].is_a? Hash
|
|
60
|
+
@auto_capture = OnlinePayments::SDK::Domain::AutoCapture.new_from_hash(hash['autoCapture'])
|
|
61
|
+
end
|
|
53
62
|
if hash.has_key? 'marketPlace'
|
|
54
63
|
raise TypeError, "value '%s' is not a Hash" % [hash['marketPlace']] unless hash['marketPlace'].is_a? Hash
|
|
55
64
|
@market_place = OnlinePayments::SDK::Domain::MarketPlace.new_from_hash(hash['marketPlace'])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = 'onlinepayments-sdk-ruby'
|
|
3
|
-
spec.version = '8.
|
|
3
|
+
spec.version = '8.2.0'
|
|
4
4
|
spec.authors = ['Worldline Direct support team']
|
|
5
5
|
spec.email = ['82139942+worldline-direct-support-team@users.noreply.github.com']
|
|
6
6
|
spec.summary = %q{SDK to communicate with the Online Payments platform using the Online Payments Server API}
|