onlinepayments-sdk-ruby 4.14.0 → 4.15.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/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +8 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +4 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5408_specific_input.rb +30 -0
- data/onlinepayments-sdk-ruby.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a688324f35c3f122f3c6fae13fce593cfc38b70b9a5f254c2b0f0205521fb877
|
4
|
+
data.tar.gz: b666d43f24b3095880eb3a21160a03c17661e67b310468f5429a59fb42302338
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af9893190b924f0bcb2c17dd425a8a9083d06637f70249cb8f6d63f26e54e0ce4e0f5d04f6564f5f163608a3a618f2b0d4f1a06581c3dcbcd46837d694fd8426
|
7
|
+
data.tar.gz: 530fd7ea2b0d89e2ef9d0ff492908b50875e6bbed564099dcb1ee118316c0dbefcd7e6e3346475ec9da401e9bbdcb2c6b807b4b871649b27c81ad179241e9f4a
|
@@ -4,6 +4,7 @@
|
|
4
4
|
require 'onlinepayments/sdk/data_object'
|
5
5
|
require 'onlinepayments/sdk/domain/redirect_payment_product3306_specific_input'
|
6
6
|
require 'onlinepayments/sdk/domain/redirect_payment_product5406_specific_input'
|
7
|
+
require 'onlinepayments/sdk/domain/redirect_payment_product5408_specific_input'
|
7
8
|
require 'onlinepayments/sdk/domain/redirect_payment_product809_specific_input'
|
8
9
|
require 'onlinepayments/sdk/domain/redirect_payment_product840_specific_input'
|
9
10
|
require 'onlinepayments/sdk/domain/redirection_data'
|
@@ -14,6 +15,7 @@ module OnlinePayments::SDK
|
|
14
15
|
# @attr [String] payment_option
|
15
16
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3306SpecificInput] payment_product3306_specific_input
|
16
17
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput] payment_product5406_specific_input
|
18
|
+
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5408SpecificInput] payment_product5408_specific_input
|
17
19
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct809SpecificInput] payment_product809_specific_input
|
18
20
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct840SpecificInput] payment_product840_specific_input
|
19
21
|
# @attr [Integer] payment_product_id
|
@@ -25,6 +27,7 @@ module OnlinePayments::SDK
|
|
25
27
|
attr_accessor :payment_option
|
26
28
|
attr_accessor :payment_product3306_specific_input
|
27
29
|
attr_accessor :payment_product5406_specific_input
|
30
|
+
attr_accessor :payment_product5408_specific_input
|
28
31
|
attr_accessor :payment_product809_specific_input
|
29
32
|
attr_accessor :payment_product840_specific_input
|
30
33
|
attr_accessor :payment_product_id
|
@@ -39,6 +42,7 @@ module OnlinePayments::SDK
|
|
39
42
|
hash['paymentOption'] = @payment_option unless @payment_option.nil?
|
40
43
|
hash['paymentProduct3306SpecificInput'] = @payment_product3306_specific_input.to_h if @payment_product3306_specific_input
|
41
44
|
hash['paymentProduct5406SpecificInput'] = @payment_product5406_specific_input.to_h if @payment_product5406_specific_input
|
45
|
+
hash['paymentProduct5408SpecificInput'] = @payment_product5408_specific_input.to_h if @payment_product5408_specific_input
|
42
46
|
hash['paymentProduct809SpecificInput'] = @payment_product809_specific_input.to_h if @payment_product809_specific_input
|
43
47
|
hash['paymentProduct840SpecificInput'] = @payment_product840_specific_input.to_h if @payment_product840_specific_input
|
44
48
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
@@ -60,6 +64,10 @@ module OnlinePayments::SDK
|
|
60
64
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5406SpecificInput']] unless hash['paymentProduct5406SpecificInput'].is_a? Hash
|
61
65
|
@payment_product5406_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput.new_from_hash(hash['paymentProduct5406SpecificInput'])
|
62
66
|
end
|
67
|
+
if hash.key? 'paymentProduct5408SpecificInput'
|
68
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5408SpecificInput']] unless hash['paymentProduct5408SpecificInput'].is_a? Hash
|
69
|
+
@payment_product5408_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5408SpecificInput.new_from_hash(hash['paymentProduct5408SpecificInput'])
|
70
|
+
end
|
63
71
|
if hash.key? 'paymentProduct809SpecificInput'
|
64
72
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct809SpecificInput']] unless hash['paymentProduct809SpecificInput'].is_a? Hash
|
65
73
|
@payment_product809_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct809SpecificInput.new_from_hash(hash['paymentProduct809SpecificInput'])
|
@@ -12,6 +12,7 @@ require 'onlinepayments/sdk/domain/payment_product840_specific_output'
|
|
12
12
|
module OnlinePayments::SDK
|
13
13
|
module Domain
|
14
14
|
|
15
|
+
# @attr [String] authorisation_code
|
15
16
|
# @attr [OnlinePayments::SDK::Domain::CustomerBankAccount] customer_bank_account
|
16
17
|
# @attr [OnlinePayments::SDK::Domain::FraudResults] fraud_results
|
17
18
|
# @attr [String] payment_option
|
@@ -22,6 +23,7 @@ module OnlinePayments::SDK
|
|
22
23
|
# @attr [Integer] payment_product_id
|
23
24
|
# @attr [String] token
|
24
25
|
class RedirectPaymentMethodSpecificOutput < OnlinePayments::SDK::DataObject
|
26
|
+
attr_accessor :authorisation_code
|
25
27
|
attr_accessor :customer_bank_account
|
26
28
|
attr_accessor :fraud_results
|
27
29
|
attr_accessor :payment_option
|
@@ -35,6 +37,7 @@ module OnlinePayments::SDK
|
|
35
37
|
# @return (Hash)
|
36
38
|
def to_h
|
37
39
|
hash = super
|
40
|
+
hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
|
38
41
|
hash['customerBankAccount'] = @customer_bank_account.to_h if @customer_bank_account
|
39
42
|
hash['fraudResults'] = @fraud_results.to_h if @fraud_results
|
40
43
|
hash['paymentOption'] = @payment_option unless @payment_option.nil?
|
@@ -49,6 +52,7 @@ module OnlinePayments::SDK
|
|
49
52
|
|
50
53
|
def from_hash(hash)
|
51
54
|
super
|
55
|
+
@authorisation_code = hash['authorisationCode'] if hash.key? 'authorisationCode'
|
52
56
|
if hash.key? 'customerBankAccount'
|
53
57
|
raise TypeError, "value '%s' is not a Hash" % [hash['customerBankAccount']] unless hash['customerBankAccount'].is_a? Hash
|
54
58
|
@customer_bank_account = OnlinePayments::SDK::Domain::CustomerBankAccount.new_from_hash(hash['customerBankAccount'])
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/customer_bank_account'
|
6
|
+
|
7
|
+
module OnlinePayments::SDK
|
8
|
+
module Domain
|
9
|
+
|
10
|
+
# @attr [OnlinePayments::SDK::Domain::CustomerBankAccount] customer_bank_account
|
11
|
+
class RedirectPaymentProduct5408SpecificInput < OnlinePayments::SDK::DataObject
|
12
|
+
attr_accessor :customer_bank_account
|
13
|
+
|
14
|
+
# @return (Hash)
|
15
|
+
def to_h
|
16
|
+
hash = super
|
17
|
+
hash['customerBankAccount'] = @customer_bank_account.to_h if @customer_bank_account
|
18
|
+
hash
|
19
|
+
end
|
20
|
+
|
21
|
+
def from_hash(hash)
|
22
|
+
super
|
23
|
+
if hash.key? 'customerBankAccount'
|
24
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['customerBankAccount']] unless hash['customerBankAccount'].is_a? Hash
|
25
|
+
@customer_bank_account = OnlinePayments::SDK::Domain::CustomerBankAccount.new_from_hash(hash['customerBankAccount'])
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'onlinepayments-sdk-ruby'
|
3
|
-
spec.version = '4.
|
3
|
+
spec.version = '4.15.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: 4.
|
4
|
+
version: 4.15.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: 2023-
|
11
|
+
date: 2023-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -331,6 +331,7 @@ files:
|
|
331
331
|
- lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb
|
332
332
|
- lib/onlinepayments/sdk/domain/redirect_payment_product3306_specific_input.rb
|
333
333
|
- lib/onlinepayments/sdk/domain/redirect_payment_product5406_specific_input.rb
|
334
|
+
- lib/onlinepayments/sdk/domain/redirect_payment_product5408_specific_input.rb
|
334
335
|
- lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb
|
335
336
|
- lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb
|
336
337
|
- lib/onlinepayments/sdk/domain/redirection_data.rb
|