onlinepayments-sdk-ruby 4.13.0 → 4.14.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/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: c5bbb5c6a0448fddc02ac54770da4b4a7bacd4e1f15e33417f8b5bcbe58d9952
|
4
|
+
data.tar.gz: 7cdb64f718370887abef35caca2f1336b3aa947d3e4d0fcc9c0917508bd40076
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6ec4a40ad926b7ca7134b1f972f87d268edfc79d76b4632eabb1e219a454d4cc6e124899e33e4b2ea1342cf3b7fc638d89067bc511d37b56b71114dbf03246d
|
7
|
+
data.tar.gz: 3dec01511a445546da079d052cce9fa8c393e12829d512062e44f8609ae074a351105ab80500eb6c4bd8b3e26951b2a19f7ca3b12b979f11d5b4415974af454a
|
@@ -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
|
@@ -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.14.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.14.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-08-
|
11
|
+
date: 2023-08-24 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
|