onlinepayments-sdk-ruby 6.1.0 → 6.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: a2a294ce28b875c0ec624ff4eaef06d2fdecb48dad24a20aadfcce18dd51034c
|
4
|
+
data.tar.gz: 80f179289eaeb804812b7f04e286c729c950a59033ebc65a87eaf61a6248a4db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bf250869af8eb4df9778232de91fadb10eb37d201efea511a18fa8edf16c6e5ce5f82b18ae00aae2040af03c3b1a474ee3b943fe549dbe8042697e9ac1df1a8
|
7
|
+
data.tar.gz: 37424c758395edb18071f64f72a0781c1637bd84697f79822b49cb49223393ceb5cd1657c0e48f4e95fdc63c3e81f94fc187a5478f3da1fb012bbe350d23ebda
|
@@ -13,7 +13,7 @@ module OnlinePayments
|
|
13
13
|
class MetadataProvider
|
14
14
|
private
|
15
15
|
|
16
|
-
SDK_VERSION = '6.
|
16
|
+
SDK_VERSION = '6.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
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
# This file was automatically generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments
|
7
|
+
module SDK
|
8
|
+
module Domain
|
9
|
+
# @attr [String] operator_id
|
10
|
+
class OmnichannelRefundSpecificInput < OnlinePayments::SDK::Domain::DataObject
|
11
|
+
|
12
|
+
attr_accessor :operator_id
|
13
|
+
|
14
|
+
# @return (Hash)
|
15
|
+
def to_h
|
16
|
+
hash = super
|
17
|
+
hash['operatorId'] = @operator_id unless @operator_id.nil?
|
18
|
+
hash
|
19
|
+
end
|
20
|
+
|
21
|
+
def from_hash(hash)
|
22
|
+
super
|
23
|
+
if hash.has_key? 'operatorId'
|
24
|
+
@operator_id = hash['operatorId']
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/domain/amount_of_money'
|
5
5
|
require 'onlinepayments/sdk/domain/data_object'
|
6
|
+
require 'onlinepayments/sdk/domain/omnichannel_refund_specific_input'
|
6
7
|
require 'onlinepayments/sdk/domain/operation_payment_references'
|
7
8
|
require 'onlinepayments/sdk/domain/payment_references'
|
8
9
|
|
@@ -11,6 +12,7 @@ module OnlinePayments
|
|
11
12
|
module Domain
|
12
13
|
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount_of_money
|
13
14
|
# @attr [String] capture_id
|
15
|
+
# @attr [OnlinePayments::SDK::Domain::OmnichannelRefundSpecificInput] omnichannel_refund_specific_input
|
14
16
|
# @attr [OnlinePayments::SDK::Domain::OperationPaymentReferences] operation_references
|
15
17
|
# @attr [String] reason
|
16
18
|
# @attr [OnlinePayments::SDK::Domain::PaymentReferences] references
|
@@ -20,6 +22,8 @@ module OnlinePayments
|
|
20
22
|
|
21
23
|
attr_accessor :capture_id
|
22
24
|
|
25
|
+
attr_accessor :omnichannel_refund_specific_input
|
26
|
+
|
23
27
|
attr_accessor :operation_references
|
24
28
|
|
25
29
|
attr_accessor :reason
|
@@ -31,6 +35,7 @@ module OnlinePayments
|
|
31
35
|
hash = super
|
32
36
|
hash['amountOfMoney'] = @amount_of_money.to_h unless @amount_of_money.nil?
|
33
37
|
hash['captureId'] = @capture_id unless @capture_id.nil?
|
38
|
+
hash['omnichannelRefundSpecificInput'] = @omnichannel_refund_specific_input.to_h unless @omnichannel_refund_specific_input.nil?
|
34
39
|
hash['operationReferences'] = @operation_references.to_h unless @operation_references.nil?
|
35
40
|
hash['reason'] = @reason unless @reason.nil?
|
36
41
|
hash['references'] = @references.to_h unless @references.nil?
|
@@ -46,6 +51,10 @@ module OnlinePayments
|
|
46
51
|
if hash.has_key? 'captureId'
|
47
52
|
@capture_id = hash['captureId']
|
48
53
|
end
|
54
|
+
if hash.has_key? 'omnichannelRefundSpecificInput'
|
55
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['omnichannelRefundSpecificInput']] unless hash['omnichannelRefundSpecificInput'].is_a? Hash
|
56
|
+
@omnichannel_refund_specific_input = OnlinePayments::SDK::Domain::OmnichannelRefundSpecificInput.new_from_hash(hash['omnichannelRefundSpecificInput'])
|
57
|
+
end
|
49
58
|
if hash.has_key? 'operationReferences'
|
50
59
|
raise TypeError, "value '%s' is not a Hash" % [hash['operationReferences']] unless hash['operationReferences'].is_a? Hash
|
51
60
|
@operation_references = OnlinePayments::SDK::Domain::OperationPaymentReferences.new_from_hash(hash['operationReferences'])
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'onlinepayments-sdk-ruby'
|
3
|
-
spec.version = '6.
|
3
|
+
spec.version = '6.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}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onlinepayments-sdk-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Worldline Direct support team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-09-
|
11
|
+
date: 2025-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -305,6 +305,7 @@ files:
|
|
305
305
|
- lib/onlinepayments/sdk/domain/multiple_payment_information.rb
|
306
306
|
- lib/onlinepayments/sdk/domain/network_token_data.rb
|
307
307
|
- lib/onlinepayments/sdk/domain/omnichannel_payout_specific_input.rb
|
308
|
+
- lib/onlinepayments/sdk/domain/omnichannel_refund_specific_input.rb
|
308
309
|
- lib/onlinepayments/sdk/domain/operation_output.rb
|
309
310
|
- lib/onlinepayments/sdk/domain/operation_payment_references.rb
|
310
311
|
- lib/onlinepayments/sdk/domain/order.rb
|