onlinepayments-sdk-ruby 4.7.0 → 4.9.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/card_payout_method_specific_input.rb +4 -0
- data/lib/onlinepayments/sdk/domain/payment_product5001_specific_output.rb +26 -0
- data/lib/onlinepayments/sdk/domain/payout_output.rb +4 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +8 -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: 484cd023490a573421f71cf0c9ffa8a69320840a7e272de3a3f3f8d21884e6ea
|
4
|
+
data.tar.gz: 2762d2aa8c72e59bc3c5d64534abaf84522ca4a9e290cc8334f5a8b5de57f1a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53f46cd3a1b4f609d392c98206386082fe85f14214d7addcc1227f3f2abf2bcf4b5235f13ae2a39e7911430c91e05bec0964fbede347418d9e1b5ca2c20a2cbe
|
7
|
+
data.tar.gz: 91a8fc9abb51c257e24834ba20e87881a8f5fc0d3b3db52b3094922df2cfc89a01a59069ff8c1877f02f627e14ac7545cc24025a421185b556708c6ae2c6f583
|
@@ -9,10 +9,12 @@ module OnlinePayments::SDK
|
|
9
9
|
|
10
10
|
# @attr [OnlinePayments::SDK::Domain::Card] card
|
11
11
|
# @attr [Integer] payment_product_id
|
12
|
+
# @attr [String] payout_reason
|
12
13
|
# @attr [String] token
|
13
14
|
class CardPayoutMethodSpecificInput < OnlinePayments::SDK::DataObject
|
14
15
|
attr_accessor :card
|
15
16
|
attr_accessor :payment_product_id
|
17
|
+
attr_accessor :payout_reason
|
16
18
|
attr_accessor :token
|
17
19
|
|
18
20
|
# @return (Hash)
|
@@ -20,6 +22,7 @@ module OnlinePayments::SDK
|
|
20
22
|
hash = super
|
21
23
|
hash['card'] = @card.to_h if @card
|
22
24
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
25
|
+
hash['payoutReason'] = @payout_reason unless @payout_reason.nil?
|
23
26
|
hash['token'] = @token unless @token.nil?
|
24
27
|
hash
|
25
28
|
end
|
@@ -31,6 +34,7 @@ module OnlinePayments::SDK
|
|
31
34
|
@card = OnlinePayments::SDK::Domain::Card.new_from_hash(hash['card'])
|
32
35
|
end
|
33
36
|
@payment_product_id = hash['paymentProductId'] if hash.key? 'paymentProductId'
|
37
|
+
@payout_reason = hash['payoutReason'] if hash.key? 'payoutReason'
|
34
38
|
@token = hash['token'] if hash.key? 'token'
|
35
39
|
end
|
36
40
|
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] authorisation_code
|
10
|
+
class PaymentProduct5001SpecificOutput < OnlinePayments::SDK::DataObject
|
11
|
+
attr_accessor :authorisation_code
|
12
|
+
|
13
|
+
# @return (Hash)
|
14
|
+
def to_h
|
15
|
+
hash = super
|
16
|
+
hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
|
17
|
+
hash
|
18
|
+
end
|
19
|
+
|
20
|
+
def from_hash(hash)
|
21
|
+
super
|
22
|
+
@authorisation_code = hash['authorisationCode'] if hash.key? 'authorisationCode'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -8,13 +8,16 @@ module OnlinePayments::SDK
|
|
8
8
|
module Domain
|
9
9
|
|
10
10
|
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount_of_money
|
11
|
+
# @attr [String] payout_reason
|
11
12
|
class PayoutOutput < OnlinePayments::SDK::DataObject
|
12
13
|
attr_accessor :amount_of_money
|
14
|
+
attr_accessor :payout_reason
|
13
15
|
|
14
16
|
# @return (Hash)
|
15
17
|
def to_h
|
16
18
|
hash = super
|
17
19
|
hash['amountOfMoney'] = @amount_of_money.to_h if @amount_of_money
|
20
|
+
hash['payoutReason'] = @payout_reason unless @payout_reason.nil?
|
18
21
|
hash
|
19
22
|
end
|
20
23
|
|
@@ -24,6 +27,7 @@ module OnlinePayments::SDK
|
|
24
27
|
raise TypeError, "value '%s' is not a Hash" % [hash['amountOfMoney']] unless hash['amountOfMoney'].is_a? Hash
|
25
28
|
@amount_of_money = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
|
26
29
|
end
|
30
|
+
@payout_reason = hash['payoutReason'] if hash.key? 'payoutReason'
|
27
31
|
end
|
28
32
|
end
|
29
33
|
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/data_object'
|
5
5
|
require 'onlinepayments/sdk/domain/fraud_results'
|
6
|
+
require 'onlinepayments/sdk/domain/payment_product5001_specific_output'
|
6
7
|
require 'onlinepayments/sdk/domain/payment_product5402_specific_output'
|
7
8
|
require 'onlinepayments/sdk/domain/payment_product5500_specific_output'
|
8
9
|
require 'onlinepayments/sdk/domain/payment_product840_specific_output'
|
@@ -12,6 +13,7 @@ module OnlinePayments::SDK
|
|
12
13
|
|
13
14
|
# @attr [OnlinePayments::SDK::Domain::FraudResults] fraud_results
|
14
15
|
# @attr [String] payment_option
|
16
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct5001SpecificOutput] payment_product5001_specific_output
|
15
17
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct5402SpecificOutput] payment_product5402_specific_output
|
16
18
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct5500SpecificOutput] payment_product5500_specific_output
|
17
19
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct840SpecificOutput] payment_product840_specific_output
|
@@ -20,6 +22,7 @@ module OnlinePayments::SDK
|
|
20
22
|
class RedirectPaymentMethodSpecificOutput < OnlinePayments::SDK::DataObject
|
21
23
|
attr_accessor :fraud_results
|
22
24
|
attr_accessor :payment_option
|
25
|
+
attr_accessor :payment_product5001_specific_output
|
23
26
|
attr_accessor :payment_product5402_specific_output
|
24
27
|
attr_accessor :payment_product5500_specific_output
|
25
28
|
attr_accessor :payment_product840_specific_output
|
@@ -31,6 +34,7 @@ module OnlinePayments::SDK
|
|
31
34
|
hash = super
|
32
35
|
hash['fraudResults'] = @fraud_results.to_h if @fraud_results
|
33
36
|
hash['paymentOption'] = @payment_option unless @payment_option.nil?
|
37
|
+
hash['paymentProduct5001SpecificOutput'] = @payment_product5001_specific_output.to_h if @payment_product5001_specific_output
|
34
38
|
hash['paymentProduct5402SpecificOutput'] = @payment_product5402_specific_output.to_h if @payment_product5402_specific_output
|
35
39
|
hash['paymentProduct5500SpecificOutput'] = @payment_product5500_specific_output.to_h if @payment_product5500_specific_output
|
36
40
|
hash['paymentProduct840SpecificOutput'] = @payment_product840_specific_output.to_h if @payment_product840_specific_output
|
@@ -46,6 +50,10 @@ module OnlinePayments::SDK
|
|
46
50
|
@fraud_results = OnlinePayments::SDK::Domain::FraudResults.new_from_hash(hash['fraudResults'])
|
47
51
|
end
|
48
52
|
@payment_option = hash['paymentOption'] if hash.key? 'paymentOption'
|
53
|
+
if hash.key? 'paymentProduct5001SpecificOutput'
|
54
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5001SpecificOutput']] unless hash['paymentProduct5001SpecificOutput'].is_a? Hash
|
55
|
+
@payment_product5001_specific_output = OnlinePayments::SDK::Domain::PaymentProduct5001SpecificOutput.new_from_hash(hash['paymentProduct5001SpecificOutput'])
|
56
|
+
end
|
49
57
|
if hash.key? 'paymentProduct5402SpecificOutput'
|
50
58
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5402SpecificOutput']] unless hash['paymentProduct5402SpecificOutput'].is_a? Hash
|
51
59
|
@payment_product5402_specific_output = OnlinePayments::SDK::Domain::PaymentProduct5402SpecificOutput.new_from_hash(hash['paymentProduct5402SpecificOutput'])
|
@@ -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.9.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.9.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-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -267,6 +267,7 @@ files:
|
|
267
267
|
- lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb
|
268
268
|
- lib/onlinepayments/sdk/domain/payment_product302_specific_data.rb
|
269
269
|
- lib/onlinepayments/sdk/domain/payment_product320_specific_data.rb
|
270
|
+
- lib/onlinepayments/sdk/domain/payment_product5001_specific_output.rb
|
270
271
|
- lib/onlinepayments/sdk/domain/payment_product5100_specific_input.rb
|
271
272
|
- lib/onlinepayments/sdk/domain/payment_product5402_specific_output.rb
|
272
273
|
- lib/onlinepayments/sdk/domain/payment_product5404.rb
|