connect-sdk-ruby 3.4.0 → 3.5.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/factory.rb +3 -3
- data/lib/worldline/connect/sdk/v1/domain/abstract_redirect_payment_product838_specific_input.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/capture_output.rb +0 -36
- data/lib/worldline/connect/sdk/v1/domain/capture_payment_order.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/capture_payment_order_additional_input.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/capture_payment_order_references.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/capture_payment_request.rb +9 -0
- data/lib/worldline/connect/sdk/v1/domain/capture_status_output.rb +14 -0
- data/lib/worldline/connect/sdk/v1/domain/order_line_details.rb +14 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_references.rb +7 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_input.rb +9 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_input_base.rb +9 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product838_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product838_specific_input_base.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/shipping.rb +14 -0
- data/spec/integration/risk_assessments_spec.rb +2 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6146ea34e5b024eb1fb834426778400aa229070a062b6a8dc5b1ef4e1443392e
|
4
|
+
data.tar.gz: 321c7b4a778857ef0154aa81472b00ceab774e1cc9c377792cd7cfaa66eeed4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdeacfb67e35d4df3cdb80e047d416791f37040dc125f6451b27737b1c516f3aa240d6a414da07e1e338926ba1ba70d57d64b2b15ed216d9b08f13b1d17d6272
|
7
|
+
data.tar.gz: 500fbe2581d67e611364700542e50400e117cbf10def9c30eb8dc7a8df254e5bf273d04995da84cd8d97900f9ae553c9bcdf4ab54d0bd1d63140943a11ea6f21
|
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 = '3.
|
3
|
+
spec.version = '3.5.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 = '3.
|
17
|
+
SDK_VERSION = '3.5.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
|
@@ -43,8 +43,8 @@ module Worldline
|
|
43
43
|
def self.create_communicator_from_configuration(configuration, metadata_provider: nil,
|
44
44
|
connection: nil, authenticator: nil, marshaller: nil)
|
45
45
|
unless metadata_provider
|
46
|
-
metadata_provider = MetadataProvider.new(configuration.integrator,
|
47
|
-
|
46
|
+
metadata_provider = Communication::MetadataProvider.new(configuration.integrator,
|
47
|
+
shopping_cart_extension: configuration.shopping_cart_extension)
|
48
48
|
end
|
49
49
|
unless connection
|
50
50
|
connection = Communication::DefaultConnection.new({ connect_timeout: configuration.connect_timeout,
|
@@ -56,7 +56,7 @@ module Worldline
|
|
56
56
|
authenticator = get_authenticator(configuration)
|
57
57
|
end
|
58
58
|
unless marshaller
|
59
|
-
marshaller = DefaultMarshaller.instance
|
59
|
+
marshaller = JSON::DefaultMarshaller.instance
|
60
60
|
end
|
61
61
|
Communicator.new(configuration.api_endpoint, connection, authenticator, metadata_provider, marshaller)
|
62
62
|
end
|
data/lib/worldline/connect/sdk/v1/domain/abstract_redirect_payment_product838_specific_input.rb
ADDED
@@ -0,0 +1,42 @@
|
|
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] interoperability_data
|
13
|
+
# @attr [String] interoperability_token
|
14
|
+
class AbstractRedirectPaymentProduct838SpecificInput < Worldline::Connect::SDK::Domain::DataObject
|
15
|
+
|
16
|
+
attr_accessor :interoperability_data
|
17
|
+
|
18
|
+
attr_accessor :interoperability_token
|
19
|
+
|
20
|
+
# @return (Hash)
|
21
|
+
def to_h
|
22
|
+
hash = super
|
23
|
+
hash['interoperabilityData'] = @interoperability_data unless @interoperability_data.nil?
|
24
|
+
hash['interoperabilityToken'] = @interoperability_token unless @interoperability_token.nil?
|
25
|
+
hash
|
26
|
+
end
|
27
|
+
|
28
|
+
def from_hash(hash)
|
29
|
+
super
|
30
|
+
if hash.has_key? 'interoperabilityData'
|
31
|
+
@interoperability_data = hash['interoperabilityData']
|
32
|
+
end
|
33
|
+
if hash.has_key? 'interoperabilityToken'
|
34
|
+
@interoperability_token = hash['interoperabilityToken']
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -5,10 +5,6 @@
|
|
5
5
|
require 'worldline/connect/sdk/v1/domain/bank_transfer_payment_method_specific_output'
|
6
6
|
require 'worldline/connect/sdk/v1/domain/card_payment_method_specific_output'
|
7
7
|
require 'worldline/connect/sdk/v1/domain/cash_payment_method_specific_output'
|
8
|
-
require 'worldline/connect/sdk/v1/domain/e_invoice_payment_method_specific_output'
|
9
|
-
require 'worldline/connect/sdk/v1/domain/invoice_payment_method_specific_output'
|
10
|
-
require 'worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output'
|
11
|
-
require 'worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_method_specific_output'
|
12
8
|
require 'worldline/connect/sdk/v1/domain/order_output'
|
13
9
|
require 'worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output'
|
14
10
|
require 'worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_output'
|
@@ -23,10 +19,6 @@ module Worldline
|
|
23
19
|
# @attr [Worldline::Connect::SDK::V1::Domain::BankTransferPaymentMethodSpecificOutput] bank_transfer_payment_method_specific_output
|
24
20
|
# @attr [Worldline::Connect::SDK::V1::Domain::CardPaymentMethodSpecificOutput] card_payment_method_specific_output
|
25
21
|
# @attr [Worldline::Connect::SDK::V1::Domain::CashPaymentMethodSpecificOutput] cash_payment_method_specific_output
|
26
|
-
# @attr [Worldline::Connect::SDK::V1::Domain::NonSepaDirectDebitPaymentMethodSpecificOutput] direct_debit_payment_method_specific_output
|
27
|
-
# @attr [Worldline::Connect::SDK::V1::Domain::EInvoicePaymentMethodSpecificOutput] e_invoice_payment_method_specific_output
|
28
|
-
# @attr [Worldline::Connect::SDK::V1::Domain::InvoicePaymentMethodSpecificOutput] invoice_payment_method_specific_output
|
29
|
-
# @attr [Worldline::Connect::SDK::V1::Domain::MobilePaymentMethodSpecificOutput] mobile_payment_method_specific_output
|
30
22
|
# @attr [String] payment_method
|
31
23
|
# @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentMethodSpecificOutput] redirect_payment_method_specific_output
|
32
24
|
# @attr [String] reversal_reason
|
@@ -43,14 +35,6 @@ module Worldline
|
|
43
35
|
|
44
36
|
attr_accessor :cash_payment_method_specific_output
|
45
37
|
|
46
|
-
attr_accessor :direct_debit_payment_method_specific_output
|
47
|
-
|
48
|
-
attr_accessor :e_invoice_payment_method_specific_output
|
49
|
-
|
50
|
-
attr_accessor :invoice_payment_method_specific_output
|
51
|
-
|
52
|
-
attr_accessor :mobile_payment_method_specific_output
|
53
|
-
|
54
38
|
attr_accessor :payment_method
|
55
39
|
|
56
40
|
attr_accessor :redirect_payment_method_specific_output
|
@@ -67,10 +51,6 @@ module Worldline
|
|
67
51
|
hash['bankTransferPaymentMethodSpecificOutput'] = @bank_transfer_payment_method_specific_output.to_h unless @bank_transfer_payment_method_specific_output.nil?
|
68
52
|
hash['cardPaymentMethodSpecificOutput'] = @card_payment_method_specific_output.to_h unless @card_payment_method_specific_output.nil?
|
69
53
|
hash['cashPaymentMethodSpecificOutput'] = @cash_payment_method_specific_output.to_h unless @cash_payment_method_specific_output.nil?
|
70
|
-
hash['directDebitPaymentMethodSpecificOutput'] = @direct_debit_payment_method_specific_output.to_h unless @direct_debit_payment_method_specific_output.nil?
|
71
|
-
hash['eInvoicePaymentMethodSpecificOutput'] = @e_invoice_payment_method_specific_output.to_h unless @e_invoice_payment_method_specific_output.nil?
|
72
|
-
hash['invoicePaymentMethodSpecificOutput'] = @invoice_payment_method_specific_output.to_h unless @invoice_payment_method_specific_output.nil?
|
73
|
-
hash['mobilePaymentMethodSpecificOutput'] = @mobile_payment_method_specific_output.to_h unless @mobile_payment_method_specific_output.nil?
|
74
54
|
hash['paymentMethod'] = @payment_method unless @payment_method.nil?
|
75
55
|
hash['redirectPaymentMethodSpecificOutput'] = @redirect_payment_method_specific_output.to_h unless @redirect_payment_method_specific_output.nil?
|
76
56
|
hash['reversalReason'] = @reversal_reason unless @reversal_reason.nil?
|
@@ -98,22 +78,6 @@ module Worldline
|
|
98
78
|
raise TypeError, "value '%s' is not a Hash" % [hash['cashPaymentMethodSpecificOutput']] unless hash['cashPaymentMethodSpecificOutput'].is_a? Hash
|
99
79
|
@cash_payment_method_specific_output = Worldline::Connect::SDK::V1::Domain::CashPaymentMethodSpecificOutput.new_from_hash(hash['cashPaymentMethodSpecificOutput'])
|
100
80
|
end
|
101
|
-
if hash.has_key? 'directDebitPaymentMethodSpecificOutput'
|
102
|
-
raise TypeError, "value '%s' is not a Hash" % [hash['directDebitPaymentMethodSpecificOutput']] unless hash['directDebitPaymentMethodSpecificOutput'].is_a? Hash
|
103
|
-
@direct_debit_payment_method_specific_output = Worldline::Connect::SDK::V1::Domain::NonSepaDirectDebitPaymentMethodSpecificOutput.new_from_hash(hash['directDebitPaymentMethodSpecificOutput'])
|
104
|
-
end
|
105
|
-
if hash.has_key? 'eInvoicePaymentMethodSpecificOutput'
|
106
|
-
raise TypeError, "value '%s' is not a Hash" % [hash['eInvoicePaymentMethodSpecificOutput']] unless hash['eInvoicePaymentMethodSpecificOutput'].is_a? Hash
|
107
|
-
@e_invoice_payment_method_specific_output = Worldline::Connect::SDK::V1::Domain::EInvoicePaymentMethodSpecificOutput.new_from_hash(hash['eInvoicePaymentMethodSpecificOutput'])
|
108
|
-
end
|
109
|
-
if hash.has_key? 'invoicePaymentMethodSpecificOutput'
|
110
|
-
raise TypeError, "value '%s' is not a Hash" % [hash['invoicePaymentMethodSpecificOutput']] unless hash['invoicePaymentMethodSpecificOutput'].is_a? Hash
|
111
|
-
@invoice_payment_method_specific_output = Worldline::Connect::SDK::V1::Domain::InvoicePaymentMethodSpecificOutput.new_from_hash(hash['invoicePaymentMethodSpecificOutput'])
|
112
|
-
end
|
113
|
-
if hash.has_key? 'mobilePaymentMethodSpecificOutput'
|
114
|
-
raise TypeError, "value '%s' is not a Hash" % [hash['mobilePaymentMethodSpecificOutput']] unless hash['mobilePaymentMethodSpecificOutput'].is_a? Hash
|
115
|
-
@mobile_payment_method_specific_output = Worldline::Connect::SDK::V1::Domain::MobilePaymentMethodSpecificOutput.new_from_hash(hash['mobilePaymentMethodSpecificOutput'])
|
116
|
-
end
|
117
81
|
if hash.has_key? 'paymentMethod'
|
118
82
|
@payment_method = hash['paymentMethod']
|
119
83
|
end
|
@@ -0,0 +1,46 @@
|
|
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
|
+
require 'worldline/connect/sdk/v1/domain/capture_payment_order_additional_input'
|
7
|
+
require 'worldline/connect/sdk/v1/domain/capture_payment_order_references'
|
8
|
+
|
9
|
+
module Worldline
|
10
|
+
module Connect
|
11
|
+
module SDK
|
12
|
+
module V1
|
13
|
+
module Domain
|
14
|
+
# @attr [Worldline::Connect::SDK::V1::Domain::CapturePaymentOrderAdditionalInput] additional_input
|
15
|
+
# @attr [Worldline::Connect::SDK::V1::Domain::CapturePaymentOrderReferences] references
|
16
|
+
class CapturePaymentOrder < Worldline::Connect::SDK::Domain::DataObject
|
17
|
+
|
18
|
+
attr_accessor :additional_input
|
19
|
+
|
20
|
+
attr_accessor :references
|
21
|
+
|
22
|
+
# @return (Hash)
|
23
|
+
def to_h
|
24
|
+
hash = super
|
25
|
+
hash['additionalInput'] = @additional_input.to_h unless @additional_input.nil?
|
26
|
+
hash['references'] = @references.to_h unless @references.nil?
|
27
|
+
hash
|
28
|
+
end
|
29
|
+
|
30
|
+
def from_hash(hash)
|
31
|
+
super
|
32
|
+
if hash.has_key? 'additionalInput'
|
33
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['additionalInput']] unless hash['additionalInput'].is_a? Hash
|
34
|
+
@additional_input = Worldline::Connect::SDK::V1::Domain::CapturePaymentOrderAdditionalInput.new_from_hash(hash['additionalInput'])
|
35
|
+
end
|
36
|
+
if hash.has_key? 'references'
|
37
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['references']] unless hash['references'].is_a? Hash
|
38
|
+
@references = Worldline::Connect::SDK::V1::Domain::CapturePaymentOrderReferences.new_from_hash(hash['references'])
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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
|
+
require 'worldline/connect/sdk/v1/domain/airline_data'
|
7
|
+
require 'worldline/connect/sdk/v1/domain/lodging_data'
|
8
|
+
|
9
|
+
module Worldline
|
10
|
+
module Connect
|
11
|
+
module SDK
|
12
|
+
module V1
|
13
|
+
module Domain
|
14
|
+
# @attr [Worldline::Connect::SDK::V1::Domain::AirlineData] airline_data
|
15
|
+
# @attr [Worldline::Connect::SDK::V1::Domain::LodgingData] lodging_data
|
16
|
+
class CapturePaymentOrderAdditionalInput < Worldline::Connect::SDK::Domain::DataObject
|
17
|
+
|
18
|
+
attr_accessor :airline_data
|
19
|
+
|
20
|
+
attr_accessor :lodging_data
|
21
|
+
|
22
|
+
# @return (Hash)
|
23
|
+
def to_h
|
24
|
+
hash = super
|
25
|
+
hash['airlineData'] = @airline_data.to_h unless @airline_data.nil?
|
26
|
+
hash['lodgingData'] = @lodging_data.to_h unless @lodging_data.nil?
|
27
|
+
hash
|
28
|
+
end
|
29
|
+
|
30
|
+
def from_hash(hash)
|
31
|
+
super
|
32
|
+
if hash.has_key? 'airlineData'
|
33
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['airlineData']] unless hash['airlineData'].is_a? Hash
|
34
|
+
@airline_data = Worldline::Connect::SDK::V1::Domain::AirlineData.new_from_hash(hash['airlineData'])
|
35
|
+
end
|
36
|
+
if hash.has_key? 'lodgingData'
|
37
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['lodgingData']] unless hash['lodgingData'].is_a? Hash
|
38
|
+
@lodging_data = Worldline::Connect::SDK::V1::Domain::LodgingData.new_from_hash(hash['lodgingData'])
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,35 @@
|
|
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] merchant_capture_reference
|
13
|
+
class CapturePaymentOrderReferences < Worldline::Connect::SDK::Domain::DataObject
|
14
|
+
|
15
|
+
attr_accessor :merchant_capture_reference
|
16
|
+
|
17
|
+
# @return (Hash)
|
18
|
+
def to_h
|
19
|
+
hash = super
|
20
|
+
hash['merchantCaptureReference'] = @merchant_capture_reference unless @merchant_capture_reference.nil?
|
21
|
+
hash
|
22
|
+
end
|
23
|
+
|
24
|
+
def from_hash(hash)
|
25
|
+
super
|
26
|
+
if hash.has_key? 'merchantCaptureReference'
|
27
|
+
@merchant_capture_reference = hash['merchantCaptureReference']
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
# https://apireference.connect.worldline-solutions.com/
|
4
4
|
#
|
5
5
|
require 'worldline/connect/sdk/domain/data_object'
|
6
|
+
require 'worldline/connect/sdk/v1/domain/capture_payment_order'
|
6
7
|
|
7
8
|
module Worldline
|
8
9
|
module Connect
|
@@ -11,17 +12,21 @@ module Worldline
|
|
11
12
|
module Domain
|
12
13
|
# @attr [Integer] amount
|
13
14
|
# @attr [true/false] is_final
|
15
|
+
# @attr [Worldline::Connect::SDK::V1::Domain::CapturePaymentOrder] order
|
14
16
|
class CapturePaymentRequest < Worldline::Connect::SDK::Domain::DataObject
|
15
17
|
|
16
18
|
attr_accessor :amount
|
17
19
|
|
18
20
|
attr_accessor :is_final
|
19
21
|
|
22
|
+
attr_accessor :order
|
23
|
+
|
20
24
|
# @return (Hash)
|
21
25
|
def to_h
|
22
26
|
hash = super
|
23
27
|
hash['amount'] = @amount unless @amount.nil?
|
24
28
|
hash['isFinal'] = @is_final unless @is_final.nil?
|
29
|
+
hash['order'] = @order.to_h unless @order.nil?
|
25
30
|
hash
|
26
31
|
end
|
27
32
|
|
@@ -33,6 +38,10 @@ module Worldline
|
|
33
38
|
if hash.has_key? 'isFinal'
|
34
39
|
@is_final = hash['isFinal']
|
35
40
|
end
|
41
|
+
if hash.has_key? 'order'
|
42
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['order']] unless hash['order'].is_a? Hash
|
43
|
+
@order = Worldline::Connect::SDK::V1::Domain::CapturePaymentOrder.new_from_hash(hash['order'])
|
44
|
+
end
|
36
45
|
end
|
37
46
|
end
|
38
47
|
end
|
@@ -10,28 +10,39 @@ module Worldline
|
|
10
10
|
module SDK
|
11
11
|
module V1
|
12
12
|
module Domain
|
13
|
+
# @attr [true/false] is_refundable
|
13
14
|
# @attr [true/false] is_retriable
|
14
15
|
# @attr [Array<Worldline::Connect::SDK::V1::Domain::KeyValuePair>] provider_raw_output
|
15
16
|
# @attr [Integer] status_code
|
17
|
+
# @attr [String] status_code_change_date_time
|
16
18
|
class CaptureStatusOutput < Worldline::Connect::SDK::Domain::DataObject
|
17
19
|
|
20
|
+
attr_accessor :is_refundable
|
21
|
+
|
18
22
|
attr_accessor :is_retriable
|
19
23
|
|
20
24
|
attr_accessor :provider_raw_output
|
21
25
|
|
22
26
|
attr_accessor :status_code
|
23
27
|
|
28
|
+
attr_accessor :status_code_change_date_time
|
29
|
+
|
24
30
|
# @return (Hash)
|
25
31
|
def to_h
|
26
32
|
hash = super
|
33
|
+
hash['isRefundable'] = @is_refundable unless @is_refundable.nil?
|
27
34
|
hash['isRetriable'] = @is_retriable unless @is_retriable.nil?
|
28
35
|
hash['providerRawOutput'] = @provider_raw_output.collect{|val| val.to_h} unless @provider_raw_output.nil?
|
29
36
|
hash['statusCode'] = @status_code unless @status_code.nil?
|
37
|
+
hash['statusCodeChangeDateTime'] = @status_code_change_date_time unless @status_code_change_date_time.nil?
|
30
38
|
hash
|
31
39
|
end
|
32
40
|
|
33
41
|
def from_hash(hash)
|
34
42
|
super
|
43
|
+
if hash.has_key? 'isRefundable'
|
44
|
+
@is_refundable = hash['isRefundable']
|
45
|
+
end
|
35
46
|
if hash.has_key? 'isRetriable'
|
36
47
|
@is_retriable = hash['isRetriable']
|
37
48
|
end
|
@@ -45,6 +56,9 @@ module Worldline
|
|
45
56
|
if hash.has_key? 'statusCode'
|
46
57
|
@status_code = hash['statusCode']
|
47
58
|
end
|
59
|
+
if hash.has_key? 'statusCodeChangeDateTime'
|
60
|
+
@status_code_change_date_time = hash['statusCodeChangeDateTime']
|
61
|
+
end
|
48
62
|
end
|
49
63
|
end
|
50
64
|
end
|
@@ -15,10 +15,12 @@ module Worldline
|
|
15
15
|
# @attr [String] naics_commodity_code
|
16
16
|
# @attr [String] product_category
|
17
17
|
# @attr [String] product_code
|
18
|
+
# @attr [String] product_image_url
|
18
19
|
# @attr [String] product_name
|
19
20
|
# @attr [Integer] product_price
|
20
21
|
# @attr [String] product_sku
|
21
22
|
# @attr [String] product_type
|
23
|
+
# @attr [String] product_url
|
22
24
|
# @attr [Integer] quantity
|
23
25
|
# @attr [Integer] tax_amount
|
24
26
|
# @attr [String] unit
|
@@ -36,6 +38,8 @@ module Worldline
|
|
36
38
|
|
37
39
|
attr_accessor :product_code
|
38
40
|
|
41
|
+
attr_accessor :product_image_url
|
42
|
+
|
39
43
|
attr_accessor :product_name
|
40
44
|
|
41
45
|
attr_accessor :product_price
|
@@ -44,6 +48,8 @@ module Worldline
|
|
44
48
|
|
45
49
|
attr_accessor :product_type
|
46
50
|
|
51
|
+
attr_accessor :product_url
|
52
|
+
|
47
53
|
attr_accessor :quantity
|
48
54
|
|
49
55
|
attr_accessor :tax_amount
|
@@ -59,10 +65,12 @@ module Worldline
|
|
59
65
|
hash['naicsCommodityCode'] = @naics_commodity_code unless @naics_commodity_code.nil?
|
60
66
|
hash['productCategory'] = @product_category unless @product_category.nil?
|
61
67
|
hash['productCode'] = @product_code unless @product_code.nil?
|
68
|
+
hash['productImageUrl'] = @product_image_url unless @product_image_url.nil?
|
62
69
|
hash['productName'] = @product_name unless @product_name.nil?
|
63
70
|
hash['productPrice'] = @product_price unless @product_price.nil?
|
64
71
|
hash['productSku'] = @product_sku unless @product_sku.nil?
|
65
72
|
hash['productType'] = @product_type unless @product_type.nil?
|
73
|
+
hash['productUrl'] = @product_url unless @product_url.nil?
|
66
74
|
hash['quantity'] = @quantity unless @quantity.nil?
|
67
75
|
hash['taxAmount'] = @tax_amount unless @tax_amount.nil?
|
68
76
|
hash['unit'] = @unit unless @unit.nil?
|
@@ -89,6 +97,9 @@ module Worldline
|
|
89
97
|
if hash.has_key? 'productCode'
|
90
98
|
@product_code = hash['productCode']
|
91
99
|
end
|
100
|
+
if hash.has_key? 'productImageUrl'
|
101
|
+
@product_image_url = hash['productImageUrl']
|
102
|
+
end
|
92
103
|
if hash.has_key? 'productName'
|
93
104
|
@product_name = hash['productName']
|
94
105
|
end
|
@@ -101,6 +112,9 @@ module Worldline
|
|
101
112
|
if hash.has_key? 'productType'
|
102
113
|
@product_type = hash['productType']
|
103
114
|
end
|
115
|
+
if hash.has_key? 'productUrl'
|
116
|
+
@product_url = hash['productUrl']
|
117
|
+
end
|
104
118
|
if hash.has_key? 'quantity'
|
105
119
|
@quantity = hash['quantity']
|
106
120
|
end
|
@@ -9,6 +9,7 @@ module Worldline
|
|
9
9
|
module SDK
|
10
10
|
module V1
|
11
11
|
module Domain
|
12
|
+
# @attr [String] merchant_capture_reference
|
12
13
|
# @attr [Integer] merchant_order_id
|
13
14
|
# @attr [String] merchant_reference
|
14
15
|
# @attr [String] payment_reference
|
@@ -18,6 +19,8 @@ module Worldline
|
|
18
19
|
# @attr [String] reference_orig_payment
|
19
20
|
class PaymentReferences < Worldline::Connect::SDK::Domain::DataObject
|
20
21
|
|
22
|
+
attr_accessor :merchant_capture_reference
|
23
|
+
|
21
24
|
attr_accessor :merchant_order_id
|
22
25
|
|
23
26
|
attr_accessor :merchant_reference
|
@@ -35,6 +38,7 @@ module Worldline
|
|
35
38
|
# @return (Hash)
|
36
39
|
def to_h
|
37
40
|
hash = super
|
41
|
+
hash['merchantCaptureReference'] = @merchant_capture_reference unless @merchant_capture_reference.nil?
|
38
42
|
hash['merchantOrderId'] = @merchant_order_id unless @merchant_order_id.nil?
|
39
43
|
hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
|
40
44
|
hash['paymentReference'] = @payment_reference unless @payment_reference.nil?
|
@@ -47,6 +51,9 @@ module Worldline
|
|
47
51
|
|
48
52
|
def from_hash(hash)
|
49
53
|
super
|
54
|
+
if hash.has_key? 'merchantCaptureReference'
|
55
|
+
@merchant_capture_reference = hash['merchantCaptureReference']
|
56
|
+
end
|
50
57
|
if hash.has_key? 'merchantOrderId'
|
51
58
|
@merchant_order_id = hash['merchantOrderId']
|
52
59
|
end
|
@@ -5,6 +5,7 @@
|
|
5
5
|
require 'worldline/connect/sdk/v1/domain/abstract_redirect_payment_method_specific_input'
|
6
6
|
require 'worldline/connect/sdk/v1/domain/redirect_payment_product4101_specific_input'
|
7
7
|
require 'worldline/connect/sdk/v1/domain/redirect_payment_product809_specific_input'
|
8
|
+
require 'worldline/connect/sdk/v1/domain/redirect_payment_product838_specific_input'
|
8
9
|
require 'worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input'
|
9
10
|
require 'worldline/connect/sdk/v1/domain/redirect_payment_product861_specific_input'
|
10
11
|
require 'worldline/connect/sdk/v1/domain/redirect_payment_product863_specific_input'
|
@@ -20,6 +21,7 @@ module Worldline
|
|
20
21
|
# @attr [true/false] is_recurring
|
21
22
|
# @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct4101SpecificInput] payment_product4101_specific_input
|
22
23
|
# @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct809SpecificInput] payment_product809_specific_input
|
24
|
+
# @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct838SpecificInput] payment_product838_specific_input
|
23
25
|
# @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct840SpecificInput] payment_product840_specific_input
|
24
26
|
# @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct861SpecificInput] payment_product861_specific_input
|
25
27
|
# @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct863SpecificInput] payment_product863_specific_input
|
@@ -35,6 +37,8 @@ module Worldline
|
|
35
37
|
|
36
38
|
attr_accessor :payment_product809_specific_input
|
37
39
|
|
40
|
+
attr_accessor :payment_product838_specific_input
|
41
|
+
|
38
42
|
attr_accessor :payment_product840_specific_input
|
39
43
|
|
40
44
|
attr_accessor :payment_product861_specific_input
|
@@ -56,6 +60,7 @@ module Worldline
|
|
56
60
|
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
57
61
|
hash['paymentProduct4101SpecificInput'] = @payment_product4101_specific_input.to_h unless @payment_product4101_specific_input.nil?
|
58
62
|
hash['paymentProduct809SpecificInput'] = @payment_product809_specific_input.to_h unless @payment_product809_specific_input.nil?
|
63
|
+
hash['paymentProduct838SpecificInput'] = @payment_product838_specific_input.to_h unless @payment_product838_specific_input.nil?
|
59
64
|
hash['paymentProduct840SpecificInput'] = @payment_product840_specific_input.to_h unless @payment_product840_specific_input.nil?
|
60
65
|
hash['paymentProduct861SpecificInput'] = @payment_product861_specific_input.to_h unless @payment_product861_specific_input.nil?
|
61
66
|
hash['paymentProduct863SpecificInput'] = @payment_product863_specific_input.to_h unless @payment_product863_specific_input.nil?
|
@@ -79,6 +84,10 @@ module Worldline
|
|
79
84
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct809SpecificInput']] unless hash['paymentProduct809SpecificInput'].is_a? Hash
|
80
85
|
@payment_product809_specific_input = Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct809SpecificInput.new_from_hash(hash['paymentProduct809SpecificInput'])
|
81
86
|
end
|
87
|
+
if hash.has_key? 'paymentProduct838SpecificInput'
|
88
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct838SpecificInput']] unless hash['paymentProduct838SpecificInput'].is_a? Hash
|
89
|
+
@payment_product838_specific_input = Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct838SpecificInput.new_from_hash(hash['paymentProduct838SpecificInput'])
|
90
|
+
end
|
82
91
|
if hash.has_key? 'paymentProduct840SpecificInput'
|
83
92
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840SpecificInput']] unless hash['paymentProduct840SpecificInput'].is_a? Hash
|
84
93
|
@payment_product840_specific_input = Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct840SpecificInput.new_from_hash(hash['paymentProduct840SpecificInput'])
|
@@ -4,6 +4,7 @@
|
|
4
4
|
#
|
5
5
|
require 'worldline/connect/sdk/v1/domain/abstract_redirect_payment_method_specific_input'
|
6
6
|
require 'worldline/connect/sdk/v1/domain/redirect_payment_product4101_specific_input_base'
|
7
|
+
require 'worldline/connect/sdk/v1/domain/redirect_payment_product838_specific_input_base'
|
7
8
|
require 'worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input_base'
|
8
9
|
|
9
10
|
module Worldline
|
@@ -12,17 +13,21 @@ module Worldline
|
|
12
13
|
module V1
|
13
14
|
module Domain
|
14
15
|
# @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct4101SpecificInputBase] payment_product4101_specific_input
|
16
|
+
# @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct838SpecificInputBase] payment_product838_specific_input
|
15
17
|
# @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct840SpecificInputBase] payment_product840_specific_input
|
16
18
|
class RedirectPaymentMethodSpecificInputBase < Worldline::Connect::SDK::V1::Domain::AbstractRedirectPaymentMethodSpecificInput
|
17
19
|
|
18
20
|
attr_accessor :payment_product4101_specific_input
|
19
21
|
|
22
|
+
attr_accessor :payment_product838_specific_input
|
23
|
+
|
20
24
|
attr_accessor :payment_product840_specific_input
|
21
25
|
|
22
26
|
# @return (Hash)
|
23
27
|
def to_h
|
24
28
|
hash = super
|
25
29
|
hash['paymentProduct4101SpecificInput'] = @payment_product4101_specific_input.to_h unless @payment_product4101_specific_input.nil?
|
30
|
+
hash['paymentProduct838SpecificInput'] = @payment_product838_specific_input.to_h unless @payment_product838_specific_input.nil?
|
26
31
|
hash['paymentProduct840SpecificInput'] = @payment_product840_specific_input.to_h unless @payment_product840_specific_input.nil?
|
27
32
|
hash
|
28
33
|
end
|
@@ -33,6 +38,10 @@ module Worldline
|
|
33
38
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct4101SpecificInput']] unless hash['paymentProduct4101SpecificInput'].is_a? Hash
|
34
39
|
@payment_product4101_specific_input = Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct4101SpecificInputBase.new_from_hash(hash['paymentProduct4101SpecificInput'])
|
35
40
|
end
|
41
|
+
if hash.has_key? 'paymentProduct838SpecificInput'
|
42
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct838SpecificInput']] unless hash['paymentProduct838SpecificInput'].is_a? Hash
|
43
|
+
@payment_product838_specific_input = Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct838SpecificInputBase.new_from_hash(hash['paymentProduct838SpecificInput'])
|
44
|
+
end
|
36
45
|
if hash.has_key? 'paymentProduct840SpecificInput'
|
37
46
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840SpecificInput']] unless hash['paymentProduct840SpecificInput'].is_a? Hash
|
38
47
|
@payment_product840_specific_input = Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct840SpecificInputBase.new_from_hash(hash['paymentProduct840SpecificInput'])
|
@@ -0,0 +1,18 @@
|
|
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/v1/domain/abstract_redirect_payment_product838_specific_input'
|
6
|
+
|
7
|
+
module Worldline
|
8
|
+
module Connect
|
9
|
+
module SDK
|
10
|
+
module V1
|
11
|
+
module Domain
|
12
|
+
class RedirectPaymentProduct838SpecificInput < Worldline::Connect::SDK::V1::Domain::AbstractRedirectPaymentProduct838SpecificInput
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
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/v1/domain/abstract_redirect_payment_product838_specific_input'
|
6
|
+
|
7
|
+
module Worldline
|
8
|
+
module Connect
|
9
|
+
module SDK
|
10
|
+
module V1
|
11
|
+
module Domain
|
12
|
+
class RedirectPaymentProduct838SpecificInputBase < Worldline::Connect::SDK::V1::Domain::AbstractRedirectPaymentProduct838SpecificInput
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -12,9 +12,11 @@ module Worldline
|
|
12
12
|
module Domain
|
13
13
|
# @attr [Worldline::Connect::SDK::V1::Domain::AddressPersonal] address
|
14
14
|
# @attr [String] address_indicator
|
15
|
+
# @attr [String] carrier
|
15
16
|
# @attr [String] comments
|
16
17
|
# @attr [String] email_address
|
17
18
|
# @attr [String] first_usage_date
|
19
|
+
# @attr [String] instructions
|
18
20
|
# @attr [true/false] is_first_usage
|
19
21
|
# @attr [String] shipped_from_zip
|
20
22
|
# @attr [String] tracking_number
|
@@ -25,12 +27,16 @@ module Worldline
|
|
25
27
|
|
26
28
|
attr_accessor :address_indicator
|
27
29
|
|
30
|
+
attr_accessor :carrier
|
31
|
+
|
28
32
|
attr_accessor :comments
|
29
33
|
|
30
34
|
attr_accessor :email_address
|
31
35
|
|
32
36
|
attr_accessor :first_usage_date
|
33
37
|
|
38
|
+
attr_accessor :instructions
|
39
|
+
|
34
40
|
attr_accessor :is_first_usage
|
35
41
|
|
36
42
|
attr_accessor :shipped_from_zip
|
@@ -44,9 +50,11 @@ module Worldline
|
|
44
50
|
hash = super
|
45
51
|
hash['address'] = @address.to_h unless @address.nil?
|
46
52
|
hash['addressIndicator'] = @address_indicator unless @address_indicator.nil?
|
53
|
+
hash['carrier'] = @carrier unless @carrier.nil?
|
47
54
|
hash['comments'] = @comments unless @comments.nil?
|
48
55
|
hash['emailAddress'] = @email_address unless @email_address.nil?
|
49
56
|
hash['firstUsageDate'] = @first_usage_date unless @first_usage_date.nil?
|
57
|
+
hash['instructions'] = @instructions unless @instructions.nil?
|
50
58
|
hash['isFirstUsage'] = @is_first_usage unless @is_first_usage.nil?
|
51
59
|
hash['shippedFromZip'] = @shipped_from_zip unless @shipped_from_zip.nil?
|
52
60
|
hash['trackingNumber'] = @tracking_number unless @tracking_number.nil?
|
@@ -63,6 +71,9 @@ module Worldline
|
|
63
71
|
if hash.has_key? 'addressIndicator'
|
64
72
|
@address_indicator = hash['addressIndicator']
|
65
73
|
end
|
74
|
+
if hash.has_key? 'carrier'
|
75
|
+
@carrier = hash['carrier']
|
76
|
+
end
|
66
77
|
if hash.has_key? 'comments'
|
67
78
|
@comments = hash['comments']
|
68
79
|
end
|
@@ -72,6 +83,9 @@ module Worldline
|
|
72
83
|
if hash.has_key? 'firstUsageDate'
|
73
84
|
@first_usage_date = hash['firstUsageDate']
|
74
85
|
end
|
86
|
+
if hash.has_key? 'instructions'
|
87
|
+
@instructions = hash['instructions']
|
88
|
+
end
|
75
89
|
if hash.has_key? 'isFirstUsage'
|
76
90
|
@is_first_usage = hash['isFirstUsage']
|
77
91
|
end
|
@@ -13,6 +13,8 @@ describe 'RiskAssessments' do
|
|
13
13
|
after(:context){WebMock.disable_net_connect!}
|
14
14
|
|
15
15
|
it 'can let the Worldline Global Collect platform assess risks' do
|
16
|
+
skip 'Risk assessments are not available for pre-prod sandbox accounts'
|
17
|
+
|
16
18
|
bank_account_bban = Worldline::Connect::SDK::V1::Domain::BankAccountBban.new
|
17
19
|
bank_account_bban.country_code = 'DE'
|
18
20
|
bank_account_bban.account_number = '0532013000'
|
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: 3.
|
4
|
+
version: 3.5.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-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -278,6 +278,7 @@ files:
|
|
278
278
|
- lib/worldline/connect/sdk/v1/domain/abstract_payout_method_specific_input.rb
|
279
279
|
- lib/worldline/connect/sdk/v1/domain/abstract_redirect_payment_method_specific_input.rb
|
280
280
|
- lib/worldline/connect/sdk/v1/domain/abstract_redirect_payment_product4101_specific_input.rb
|
281
|
+
- lib/worldline/connect/sdk/v1/domain/abstract_redirect_payment_product838_specific_input.rb
|
281
282
|
- lib/worldline/connect/sdk/v1/domain/abstract_redirect_payment_product840_specific_input.rb
|
282
283
|
- lib/worldline/connect/sdk/v1/domain/abstract_sepa_direct_debit_payment_method_specific_input.rb
|
283
284
|
- lib/worldline/connect/sdk/v1/domain/abstract_sepa_direct_debit_payment_product771_specific_input.rb
|
@@ -330,6 +331,9 @@ files:
|
|
330
331
|
- lib/worldline/connect/sdk/v1/domain/cancel_payment_response.rb
|
331
332
|
- lib/worldline/connect/sdk/v1/domain/capture.rb
|
332
333
|
- lib/worldline/connect/sdk/v1/domain/capture_output.rb
|
334
|
+
- lib/worldline/connect/sdk/v1/domain/capture_payment_order.rb
|
335
|
+
- lib/worldline/connect/sdk/v1/domain/capture_payment_order_additional_input.rb
|
336
|
+
- lib/worldline/connect/sdk/v1/domain/capture_payment_order_references.rb
|
333
337
|
- lib/worldline/connect/sdk/v1/domain/capture_payment_request.rb
|
334
338
|
- lib/worldline/connect/sdk/v1/domain/capture_response.rb
|
335
339
|
- lib/worldline/connect/sdk/v1/domain/capture_status_output.rb
|
@@ -573,6 +577,8 @@ files:
|
|
573
577
|
- lib/worldline/connect/sdk/v1/domain/redirect_payment_product4101_specific_input.rb
|
574
578
|
- lib/worldline/connect/sdk/v1/domain/redirect_payment_product4101_specific_input_base.rb
|
575
579
|
- lib/worldline/connect/sdk/v1/domain/redirect_payment_product809_specific_input.rb
|
580
|
+
- lib/worldline/connect/sdk/v1/domain/redirect_payment_product838_specific_input.rb
|
581
|
+
- lib/worldline/connect/sdk/v1/domain/redirect_payment_product838_specific_input_base.rb
|
576
582
|
- lib/worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input.rb
|
577
583
|
- lib/worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input_base.rb
|
578
584
|
- lib/worldline/connect/sdk/v1/domain/redirect_payment_product861_specific_input.rb
|