onlinepayments-sdk-ruby 4.13.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/create_payout_request.rb +8 -0
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_hosted_checkout_specific_input.rb +8 -0
- data/lib/onlinepayments/sdk/domain/omnichannel_payout_specific_input.rb +26 -0
- 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 +4 -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/amount_of_money'
|
6
6
|
require 'onlinepayments/sdk/domain/card_payout_method_specific_input'
|
7
|
+
require 'onlinepayments/sdk/domain/omnichannel_payout_specific_input'
|
7
8
|
require 'onlinepayments/sdk/domain/payment_references'
|
8
9
|
|
9
10
|
module OnlinePayments::SDK
|
@@ -11,10 +12,12 @@ module OnlinePayments::SDK
|
|
11
12
|
|
12
13
|
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount_of_money
|
13
14
|
# @attr [OnlinePayments::SDK::Domain::CardPayoutMethodSpecificInput] card_payout_method_specific_input
|
15
|
+
# @attr [OnlinePayments::SDK::Domain::OmnichannelPayoutSpecificInput] omnichannel_payout_specific_input
|
14
16
|
# @attr [OnlinePayments::SDK::Domain::PaymentReferences] references
|
15
17
|
class CreatePayoutRequest < OnlinePayments::SDK::DataObject
|
16
18
|
attr_accessor :amount_of_money
|
17
19
|
attr_accessor :card_payout_method_specific_input
|
20
|
+
attr_accessor :omnichannel_payout_specific_input
|
18
21
|
attr_accessor :references
|
19
22
|
|
20
23
|
# @return (Hash)
|
@@ -22,6 +25,7 @@ module OnlinePayments::SDK
|
|
22
25
|
hash = super
|
23
26
|
hash['amountOfMoney'] = @amount_of_money.to_h if @amount_of_money
|
24
27
|
hash['cardPayoutMethodSpecificInput'] = @card_payout_method_specific_input.to_h if @card_payout_method_specific_input
|
28
|
+
hash['omnichannelPayoutSpecificInput'] = @omnichannel_payout_specific_input.to_h if @omnichannel_payout_specific_input
|
25
29
|
hash['references'] = @references.to_h if @references
|
26
30
|
hash
|
27
31
|
end
|
@@ -36,6 +40,10 @@ module OnlinePayments::SDK
|
|
36
40
|
raise TypeError, "value '%s' is not a Hash" % [hash['cardPayoutMethodSpecificInput']] unless hash['cardPayoutMethodSpecificInput'].is_a? Hash
|
37
41
|
@card_payout_method_specific_input = OnlinePayments::SDK::Domain::CardPayoutMethodSpecificInput.new_from_hash(hash['cardPayoutMethodSpecificInput'])
|
38
42
|
end
|
43
|
+
if hash.key? 'omnichannelPayoutSpecificInput'
|
44
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['omnichannelPayoutSpecificInput']] unless hash['omnichannelPayoutSpecificInput'].is_a? Hash
|
45
|
+
@omnichannel_payout_specific_input = OnlinePayments::SDK::Domain::OmnichannelPayoutSpecificInput.new_from_hash(hash['omnichannelPayoutSpecificInput'])
|
46
|
+
end
|
39
47
|
if hash.key? 'references'
|
40
48
|
raise TypeError, "value '%s' is not a Hash" % [hash['references']] unless hash['references'].is_a? Hash
|
41
49
|
@references = OnlinePayments::SDK::Domain::PaymentReferences.new_from_hash(hash['references'])
|
@@ -2,20 +2,24 @@
|
|
2
2
|
# This class was auto-generated.
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/mobile_payment_product320_specific_input'
|
5
6
|
|
6
7
|
module OnlinePayments::SDK
|
7
8
|
module Domain
|
8
9
|
|
9
10
|
# @attr [String] authorization_mode
|
11
|
+
# @attr [OnlinePayments::SDK::Domain::MobilePaymentProduct320SpecificInput] payment_product320_specific_input
|
10
12
|
# @attr [Integer] payment_product_id
|
11
13
|
class MobilePaymentMethodHostedCheckoutSpecificInput < OnlinePayments::SDK::DataObject
|
12
14
|
attr_accessor :authorization_mode
|
15
|
+
attr_accessor :payment_product320_specific_input
|
13
16
|
attr_accessor :payment_product_id
|
14
17
|
|
15
18
|
# @return (Hash)
|
16
19
|
def to_h
|
17
20
|
hash = super
|
18
21
|
hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
|
22
|
+
hash['paymentProduct320SpecificInput'] = @payment_product320_specific_input.to_h if @payment_product320_specific_input
|
19
23
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
20
24
|
hash
|
21
25
|
end
|
@@ -23,6 +27,10 @@ module OnlinePayments::SDK
|
|
23
27
|
def from_hash(hash)
|
24
28
|
super
|
25
29
|
@authorization_mode = hash['authorizationMode'] if hash.key? 'authorizationMode'
|
30
|
+
if hash.key? 'paymentProduct320SpecificInput'
|
31
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct320SpecificInput']] unless hash['paymentProduct320SpecificInput'].is_a? Hash
|
32
|
+
@payment_product320_specific_input = OnlinePayments::SDK::Domain::MobilePaymentProduct320SpecificInput.new_from_hash(hash['paymentProduct320SpecificInput'])
|
33
|
+
end
|
26
34
|
@payment_product_id = hash['paymentProductId'] if hash.key? 'paymentProductId'
|
27
35
|
end
|
28
36
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments::SDK
|
7
|
+
module Domain
|
8
|
+
|
9
|
+
# @attr [String] payment_id
|
10
|
+
class OmnichannelPayoutSpecificInput < OnlinePayments::SDK::DataObject
|
11
|
+
attr_accessor :payment_id
|
12
|
+
|
13
|
+
# @return (Hash)
|
14
|
+
def to_h
|
15
|
+
hash = super
|
16
|
+
hash['paymentId'] = @payment_id unless @payment_id.nil?
|
17
|
+
hash
|
18
|
+
end
|
19
|
+
|
20
|
+
def from_hash(hash)
|
21
|
+
super
|
22
|
+
@payment_id = hash['paymentId'] if hash.key? 'paymentId'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -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
|
@@ -262,6 +262,7 @@ files:
|
|
262
262
|
- lib/onlinepayments/sdk/domain/mobile_payment_method_specific_input.rb
|
263
263
|
- lib/onlinepayments/sdk/domain/mobile_payment_method_specific_output.rb
|
264
264
|
- lib/onlinepayments/sdk/domain/mobile_payment_product320_specific_input.rb
|
265
|
+
- lib/onlinepayments/sdk/domain/omnichannel_payout_specific_input.rb
|
265
266
|
- lib/onlinepayments/sdk/domain/operation_output.rb
|
266
267
|
- lib/onlinepayments/sdk/domain/order.rb
|
267
268
|
- lib/onlinepayments/sdk/domain/order_line_details.rb
|
@@ -330,6 +331,7 @@ files:
|
|
330
331
|
- lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb
|
331
332
|
- lib/onlinepayments/sdk/domain/redirect_payment_product3306_specific_input.rb
|
332
333
|
- lib/onlinepayments/sdk/domain/redirect_payment_product5406_specific_input.rb
|
334
|
+
- lib/onlinepayments/sdk/domain/redirect_payment_product5408_specific_input.rb
|
333
335
|
- lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb
|
334
336
|
- lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb
|
335
337
|
- lib/onlinepayments/sdk/domain/redirection_data.rb
|