connect-sdk-ruby 4.0.0 → 4.1.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_status_output.rb +7 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb +0 -9
- data/lib/worldline/connect/sdk/v1/domain/refund_references.rb +7 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_request.rb +7 -0
- metadata +2 -3
- data/lib/worldline/connect/sdk/v1/domain/payment_product836_specific_output.rb +0 -35
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ddec1cc70a3487229c39cae19894ea745f1d3525c12c4bd9c722f649903ff709
|
|
4
|
+
data.tar.gz: 40d46a85757909cbf05dee0616f9687cc39f3beb007098206eb7bf1e25d3d10e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5aa6340689a9233239b4776150ee9bf3bc01de85b4922c43697a3e02691ce8b148093d815655a1349b2fc8af453eeaf26ae8753f2e000fdbfc33a059afb53734
|
|
7
|
+
data.tar.gz: 4e9bfaeedbbd8a595c74ff0916ace96906a9e6e1f39aabf2dee3f5dde6a4259fe6fb61d77452709a36fa683d9731d471df27443b1cb84a8bfad0e71e471ba416
|
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.1.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.1.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
|
|
@@ -10,6 +10,7 @@ module Worldline
|
|
|
10
10
|
module SDK
|
|
11
11
|
module V1
|
|
12
12
|
module Domain
|
|
13
|
+
# @attr [true/false] is_final
|
|
13
14
|
# @attr [true/false] is_refundable
|
|
14
15
|
# @attr [true/false] is_retriable
|
|
15
16
|
# @attr [Array<Worldline::Connect::SDK::V1::Domain::KeyValuePair>] provider_raw_output
|
|
@@ -17,6 +18,8 @@ module Worldline
|
|
|
17
18
|
# @attr [String] status_code_change_date_time
|
|
18
19
|
class CaptureStatusOutput < Worldline::Connect::SDK::Domain::DataObject
|
|
19
20
|
|
|
21
|
+
attr_accessor :is_final
|
|
22
|
+
|
|
20
23
|
attr_accessor :is_refundable
|
|
21
24
|
|
|
22
25
|
attr_accessor :is_retriable
|
|
@@ -30,6 +33,7 @@ module Worldline
|
|
|
30
33
|
# @return (Hash)
|
|
31
34
|
def to_h
|
|
32
35
|
hash = super
|
|
36
|
+
hash['isFinal'] = @is_final unless @is_final.nil?
|
|
33
37
|
hash['isRefundable'] = @is_refundable unless @is_refundable.nil?
|
|
34
38
|
hash['isRetriable'] = @is_retriable unless @is_retriable.nil?
|
|
35
39
|
hash['providerRawOutput'] = @provider_raw_output.collect{|val| val.to_h} unless @provider_raw_output.nil?
|
|
@@ -40,6 +44,9 @@ module Worldline
|
|
|
40
44
|
|
|
41
45
|
def from_hash(hash)
|
|
42
46
|
super
|
|
47
|
+
if hash.has_key? 'isFinal'
|
|
48
|
+
@is_final = hash['isFinal']
|
|
49
|
+
end
|
|
43
50
|
if hash.has_key? 'isRefundable'
|
|
44
51
|
@is_refundable = hash['isRefundable']
|
|
45
52
|
end
|
|
@@ -8,7 +8,6 @@ require 'worldline/connect/sdk/v1/domain/bank_account_iban'
|
|
|
8
8
|
require 'worldline/connect/sdk/v1/domain/fraud_results'
|
|
9
9
|
require 'worldline/connect/sdk/v1/domain/payment_product3201_specific_output'
|
|
10
10
|
require 'worldline/connect/sdk/v1/domain/payment_product806_specific_output'
|
|
11
|
-
require 'worldline/connect/sdk/v1/domain/payment_product836_specific_output'
|
|
12
11
|
require 'worldline/connect/sdk/v1/domain/payment_product840_specific_output'
|
|
13
12
|
require 'worldline/connect/sdk/v1/domain/payment_product866_specific_output'
|
|
14
13
|
|
|
@@ -23,7 +22,6 @@ module Worldline
|
|
|
23
22
|
# @attr [Worldline::Connect::SDK::V1::Domain::FraudResults] fraud_results
|
|
24
23
|
# @attr [Worldline::Connect::SDK::V1::Domain::PaymentProduct3201SpecificOutput] payment_product3201_specific_output
|
|
25
24
|
# @attr [Worldline::Connect::SDK::V1::Domain::PaymentProduct806SpecificOutput] payment_product806_specific_output
|
|
26
|
-
# @attr [Worldline::Connect::SDK::V1::Domain::PaymentProduct836SpecificOutput] payment_product836_specific_output
|
|
27
25
|
# @attr [Worldline::Connect::SDK::V1::Domain::PaymentProduct840SpecificOutput] payment_product840_specific_output
|
|
28
26
|
# @attr [Worldline::Connect::SDK::V1::Domain::PaymentProduct866SpecificOutput] payment_product866_specific_output
|
|
29
27
|
# @attr [String] token
|
|
@@ -41,8 +39,6 @@ module Worldline
|
|
|
41
39
|
|
|
42
40
|
attr_accessor :payment_product806_specific_output
|
|
43
41
|
|
|
44
|
-
attr_accessor :payment_product836_specific_output
|
|
45
|
-
|
|
46
42
|
attr_accessor :payment_product840_specific_output
|
|
47
43
|
|
|
48
44
|
attr_accessor :payment_product866_specific_output
|
|
@@ -58,7 +54,6 @@ module Worldline
|
|
|
58
54
|
hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
|
|
59
55
|
hash['paymentProduct3201SpecificOutput'] = @payment_product3201_specific_output.to_h unless @payment_product3201_specific_output.nil?
|
|
60
56
|
hash['paymentProduct806SpecificOutput'] = @payment_product806_specific_output.to_h unless @payment_product806_specific_output.nil?
|
|
61
|
-
hash['paymentProduct836SpecificOutput'] = @payment_product836_specific_output.to_h unless @payment_product836_specific_output.nil?
|
|
62
57
|
hash['paymentProduct840SpecificOutput'] = @payment_product840_specific_output.to_h unless @payment_product840_specific_output.nil?
|
|
63
58
|
hash['paymentProduct866SpecificOutput'] = @payment_product866_specific_output.to_h unless @payment_product866_specific_output.nil?
|
|
64
59
|
hash['token'] = @token unless @token.nil?
|
|
@@ -90,10 +85,6 @@ module Worldline
|
|
|
90
85
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct806SpecificOutput']] unless hash['paymentProduct806SpecificOutput'].is_a? Hash
|
|
91
86
|
@payment_product806_specific_output = Worldline::Connect::SDK::V1::Domain::PaymentProduct806SpecificOutput.new_from_hash(hash['paymentProduct806SpecificOutput'])
|
|
92
87
|
end
|
|
93
|
-
if hash.has_key? 'paymentProduct836SpecificOutput'
|
|
94
|
-
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct836SpecificOutput']] unless hash['paymentProduct836SpecificOutput'].is_a? Hash
|
|
95
|
-
@payment_product836_specific_output = Worldline::Connect::SDK::V1::Domain::PaymentProduct836SpecificOutput.new_from_hash(hash['paymentProduct836SpecificOutput'])
|
|
96
|
-
end
|
|
97
88
|
if hash.has_key? 'paymentProduct840SpecificOutput'
|
|
98
89
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840SpecificOutput']] unless hash['paymentProduct840SpecificOutput'].is_a? Hash
|
|
99
90
|
@payment_product840_specific_output = Worldline::Connect::SDK::V1::Domain::PaymentProduct840SpecificOutput.new_from_hash(hash['paymentProduct840SpecificOutput'])
|
|
@@ -9,20 +9,27 @@ module Worldline
|
|
|
9
9
|
module SDK
|
|
10
10
|
module V1
|
|
11
11
|
module Domain
|
|
12
|
+
# @attr [String] descriptor
|
|
12
13
|
# @attr [String] merchant_reference
|
|
13
14
|
class RefundReferences < Worldline::Connect::SDK::Domain::DataObject
|
|
14
15
|
|
|
16
|
+
attr_accessor :descriptor
|
|
17
|
+
|
|
15
18
|
attr_accessor :merchant_reference
|
|
16
19
|
|
|
17
20
|
# @return (Hash)
|
|
18
21
|
def to_h
|
|
19
22
|
hash = super
|
|
23
|
+
hash['descriptor'] = @descriptor unless @descriptor.nil?
|
|
20
24
|
hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
|
|
21
25
|
hash
|
|
22
26
|
end
|
|
23
27
|
|
|
24
28
|
def from_hash(hash)
|
|
25
29
|
super
|
|
30
|
+
if hash.has_key? 'descriptor'
|
|
31
|
+
@descriptor = hash['descriptor']
|
|
32
|
+
end
|
|
26
33
|
if hash.has_key? 'merchantReference'
|
|
27
34
|
@merchant_reference = hash['merchantReference']
|
|
28
35
|
end
|
|
@@ -17,6 +17,7 @@ module Worldline
|
|
|
17
17
|
# @attr [Worldline::Connect::SDK::V1::Domain::BankRefundMethodSpecificInput] bank_refund_method_specific_input
|
|
18
18
|
# @attr [Worldline::Connect::SDK::V1::Domain::RefundCustomer] customer
|
|
19
19
|
# @attr [String] refund_date
|
|
20
|
+
# @attr [String] refund_reason
|
|
20
21
|
# @attr [Worldline::Connect::SDK::V1::Domain::RefundReferences] refund_references
|
|
21
22
|
class RefundRequest < Worldline::Connect::SDK::Domain::DataObject
|
|
22
23
|
|
|
@@ -28,6 +29,8 @@ module Worldline
|
|
|
28
29
|
|
|
29
30
|
attr_accessor :refund_date
|
|
30
31
|
|
|
32
|
+
attr_accessor :refund_reason
|
|
33
|
+
|
|
31
34
|
attr_accessor :refund_references
|
|
32
35
|
|
|
33
36
|
# @return (Hash)
|
|
@@ -37,6 +40,7 @@ module Worldline
|
|
|
37
40
|
hash['bankRefundMethodSpecificInput'] = @bank_refund_method_specific_input.to_h unless @bank_refund_method_specific_input.nil?
|
|
38
41
|
hash['customer'] = @customer.to_h unless @customer.nil?
|
|
39
42
|
hash['refundDate'] = @refund_date unless @refund_date.nil?
|
|
43
|
+
hash['refundReason'] = @refund_reason unless @refund_reason.nil?
|
|
40
44
|
hash['refundReferences'] = @refund_references.to_h unless @refund_references.nil?
|
|
41
45
|
hash
|
|
42
46
|
end
|
|
@@ -58,6 +62,9 @@ module Worldline
|
|
|
58
62
|
if hash.has_key? 'refundDate'
|
|
59
63
|
@refund_date = hash['refundDate']
|
|
60
64
|
end
|
|
65
|
+
if hash.has_key? 'refundReason'
|
|
66
|
+
@refund_reason = hash['refundReason']
|
|
67
|
+
end
|
|
61
68
|
if hash.has_key? 'refundReferences'
|
|
62
69
|
raise TypeError, "value '%s' is not a Hash" % [hash['refundReferences']] unless hash['refundReferences'].is_a? Hash
|
|
63
70
|
@refund_references = Worldline::Connect::SDK::V1::Domain::RefundReferences.new_from_hash(hash['refundReferences'])
|
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.1.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: 2025-
|
|
11
|
+
date: 2025-12-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httpclient
|
|
@@ -528,7 +528,6 @@ files:
|
|
|
528
528
|
- lib/worldline/connect/sdk/v1/domain/payment_product320_specific_data.rb
|
|
529
529
|
- lib/worldline/connect/sdk/v1/domain/payment_product771_specific_output.rb
|
|
530
530
|
- lib/worldline/connect/sdk/v1/domain/payment_product806_specific_output.rb
|
|
531
|
-
- lib/worldline/connect/sdk/v1/domain/payment_product836_specific_output.rb
|
|
532
531
|
- lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb
|
|
533
532
|
- lib/worldline/connect/sdk/v1/domain/payment_product840_specific_output.rb
|
|
534
533
|
- lib/worldline/connect/sdk/v1/domain/payment_product863_specific_data.rb
|
|
@@ -1,35 +0,0 @@
|
|
|
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] security_indicator
|
|
13
|
-
class PaymentProduct836SpecificOutput < Worldline::Connect::SDK::Domain::DataObject
|
|
14
|
-
|
|
15
|
-
attr_accessor :security_indicator
|
|
16
|
-
|
|
17
|
-
# @return (Hash)
|
|
18
|
-
def to_h
|
|
19
|
-
hash = super
|
|
20
|
-
hash['securityIndicator'] = @security_indicator unless @security_indicator.nil?
|
|
21
|
-
hash
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
def from_hash(hash)
|
|
25
|
-
super
|
|
26
|
-
if hash.has_key? 'securityIndicator'
|
|
27
|
-
@security_indicator = hash['securityIndicator']
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|