onlinepayments-sdk-ruby 10.3.0 → 10.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be175774d72ab58efa9d7b2fec7142301c37f5f73277be1daf578fe06eef22b9
|
|
4
|
+
data.tar.gz: 59bc44db1900bf83f9177218339358098fd45dd99b4b41bbc20a53f680b544c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3cb7299d7d69fccef1ba76f2d588cf27d7e472f907152de16bc3493aff0a3780a6cbb1152d9933bf68455a561389cdce7f510c5e119c78f2fbcf98e609a2afd3
|
|
7
|
+
data.tar.gz: d2e86d31e8767f72d9731113068811829596f6c64b98dcbb00624da51cb14a445e706f26d285197ae5126fd7bb784ddb98167997ad72ae5a380f6ad8db3c5202
|
|
@@ -13,7 +13,7 @@ module OnlinePayments
|
|
|
13
13
|
class MetadataProvider
|
|
14
14
|
private
|
|
15
15
|
|
|
16
|
-
SDK_VERSION = '10.
|
|
16
|
+
SDK_VERSION = '10.4.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
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
require 'onlinepayments/sdk/domain/card_data_without_cvv'
|
|
5
5
|
require 'onlinepayments/sdk/domain/data_object'
|
|
6
6
|
require 'onlinepayments/sdk/domain/network_token_data'
|
|
7
|
+
require 'onlinepayments/sdk/domain/sub_merchant'
|
|
7
8
|
|
|
8
9
|
module OnlinePayments
|
|
9
10
|
module SDK
|
|
@@ -13,6 +14,7 @@ module OnlinePayments
|
|
|
13
14
|
# @attr [OnlinePayments::SDK::Domain::NetworkTokenData, nil] network_token_data
|
|
14
15
|
# @attr [Integer, nil] payment_product_id
|
|
15
16
|
# @attr [String, nil] scheme_reference_data
|
|
17
|
+
# @attr [OnlinePayments::SDK::Domain::SubMerchant, nil] sub_merchant
|
|
16
18
|
# @attr [String, nil] token_id
|
|
17
19
|
# @attr [String, nil] transaction_link_identifier
|
|
18
20
|
class ImportCofSeriesRequest < OnlinePayments::SDK::Domain::DataObject
|
|
@@ -27,6 +29,8 @@ module OnlinePayments
|
|
|
27
29
|
|
|
28
30
|
attr_accessor :scheme_reference_data
|
|
29
31
|
|
|
32
|
+
attr_accessor :sub_merchant
|
|
33
|
+
|
|
30
34
|
attr_accessor :token_id
|
|
31
35
|
|
|
32
36
|
attr_accessor :transaction_link_identifier
|
|
@@ -61,6 +65,12 @@ module OnlinePayments
|
|
|
61
65
|
self
|
|
62
66
|
end
|
|
63
67
|
|
|
68
|
+
# Sets the property and returns this same instance.
|
|
69
|
+
def with_sub_merchant(value)
|
|
70
|
+
@sub_merchant = value
|
|
71
|
+
self
|
|
72
|
+
end
|
|
73
|
+
|
|
64
74
|
# Sets the property and returns this same instance.
|
|
65
75
|
def with_token_id(value)
|
|
66
76
|
@token_id = value
|
|
@@ -81,6 +91,7 @@ module OnlinePayments
|
|
|
81
91
|
hash['networkTokenData'] = @network_token_data.to_h unless @network_token_data.nil?
|
|
82
92
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
|
83
93
|
hash['schemeReferenceData'] = @scheme_reference_data unless @scheme_reference_data.nil?
|
|
94
|
+
hash['subMerchant'] = @sub_merchant.to_h unless @sub_merchant.nil?
|
|
84
95
|
hash['tokenId'] = @token_id unless @token_id.nil?
|
|
85
96
|
hash['transactionLinkIdentifier'] = @transaction_link_identifier unless @transaction_link_identifier.nil?
|
|
86
97
|
hash
|
|
@@ -105,6 +116,10 @@ module OnlinePayments
|
|
|
105
116
|
if hash.has_key? 'schemeReferenceData'
|
|
106
117
|
@scheme_reference_data = hash['schemeReferenceData']
|
|
107
118
|
end
|
|
119
|
+
if hash.has_key? 'subMerchant'
|
|
120
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['subMerchant']] unless hash['subMerchant'].is_a? Hash
|
|
121
|
+
@sub_merchant = OnlinePayments::SDK::Domain::SubMerchant.new_from_hash(hash['subMerchant'])
|
|
122
|
+
end
|
|
108
123
|
if hash.has_key? 'tokenId'
|
|
109
124
|
@token_id = hash['tokenId']
|
|
110
125
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = 'onlinepayments-sdk-ruby'
|
|
3
|
-
spec.version = '10.
|
|
3
|
+
spec.version = '10.4.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}
|