onlinepayments-sdk-ruby 4.19.0 → 4.21.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_payment_method_specific_input_for_hosted_checkout.rb +10 -0
- data/lib/onlinepayments/sdk/domain/credit_card_specific_input_hosted_tokenization.rb +10 -0
- data/lib/onlinepayments/sdk/domain/payment_link_order_input.rb +8 -0
- data/lib/onlinepayments/sdk/domain/payment_link_order_output.rb +8 -0
- data/lib/onlinepayments/sdk/domain/payment_product3012.rb +30 -0
- data/lib/onlinepayments/sdk/domain/show_form_data.rb +8 -0
- data/lib/onlinepayments/sdk/domain/surcharge_for_payment_link.rb +26 -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: 30a4b1409961ce56a7d8679d47aae77af0079d0ced253f9e138fcb06acb64487
|
4
|
+
data.tar.gz: 8482c25fa8949b128e4515e16985cd9aabe3bb986afb1f4bafec16fb58868d34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c2403c8ea098473120c32fa89d7e1c1a80b230e198fd709365d635ff445ff2d2ad0a0a532a78b4cdc394491448398e8af5b30ee2c0fe74221ba90fbee39fe3a
|
7
|
+
data.tar.gz: 2b93a66d27dc5cf82f9712c081af3f39044742bece4962742f139e26ec56a3c99f7edbcdb7126dc7cc7c3d199a59f7f5caa390f0d13fa51215380753f4257c68
|
data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_for_hosted_checkout.rb
CHANGED
@@ -7,19 +7,29 @@ module OnlinePayments::SDK
|
|
7
7
|
module Domain
|
8
8
|
|
9
9
|
# @attr [true/false] group_cards
|
10
|
+
# @attr [Array<Integer>] payment_product_preferred_order
|
10
11
|
class CardPaymentMethodSpecificInputForHostedCheckout < OnlinePayments::SDK::DataObject
|
11
12
|
attr_accessor :group_cards
|
13
|
+
attr_accessor :payment_product_preferred_order
|
12
14
|
|
13
15
|
# @return (Hash)
|
14
16
|
def to_h
|
15
17
|
hash = super
|
16
18
|
hash['groupCards'] = @group_cards unless @group_cards.nil?
|
19
|
+
hash['paymentProductPreferredOrder'] = @payment_product_preferred_order unless @payment_product_preferred_order.nil?
|
17
20
|
hash
|
18
21
|
end
|
19
22
|
|
20
23
|
def from_hash(hash)
|
21
24
|
super
|
22
25
|
@group_cards = hash['groupCards'] if hash.key? 'groupCards'
|
26
|
+
if hash.key? 'paymentProductPreferredOrder'
|
27
|
+
raise TypeError, "value '%s' is not an Array" % [hash['paymentProductPreferredOrder']] unless hash['paymentProductPreferredOrder'].is_a? Array
|
28
|
+
@payment_product_preferred_order = []
|
29
|
+
hash['paymentProductPreferredOrder'].each do |e|
|
30
|
+
@payment_product_preferred_order << e
|
31
|
+
end
|
32
|
+
end
|
23
33
|
end
|
24
34
|
end
|
25
35
|
end
|
@@ -8,13 +8,16 @@ module OnlinePayments::SDK
|
|
8
8
|
module Domain
|
9
9
|
|
10
10
|
# @attr [OnlinePayments::SDK::Domain::CreditCardValidationRulesHostedTokenization] validation_rules
|
11
|
+
# @attr [Array<Integer>] payment_product_preferred_order
|
11
12
|
class CreditCardSpecificInputHostedTokenization < OnlinePayments::SDK::DataObject
|
12
13
|
attr_accessor :validation_rules
|
14
|
+
attr_accessor :payment_product_preferred_order
|
13
15
|
|
14
16
|
# @return (Hash)
|
15
17
|
def to_h
|
16
18
|
hash = super
|
17
19
|
hash['ValidationRules'] = @validation_rules.to_h if @validation_rules
|
20
|
+
hash['paymentProductPreferredOrder'] = @payment_product_preferred_order unless @payment_product_preferred_order.nil?
|
18
21
|
hash
|
19
22
|
end
|
20
23
|
|
@@ -24,6 +27,13 @@ module OnlinePayments::SDK
|
|
24
27
|
raise TypeError, "value '%s' is not a Hash" % [hash['ValidationRules']] unless hash['ValidationRules'].is_a? Hash
|
25
28
|
@validation_rules = OnlinePayments::SDK::Domain::CreditCardValidationRulesHostedTokenization.new_from_hash(hash['ValidationRules'])
|
26
29
|
end
|
30
|
+
if hash.key? 'paymentProductPreferredOrder'
|
31
|
+
raise TypeError, "value '%s' is not an Array" % [hash['paymentProductPreferredOrder']] unless hash['paymentProductPreferredOrder'].is_a? Array
|
32
|
+
@payment_product_preferred_order = []
|
33
|
+
hash['paymentProductPreferredOrder'].each do |e|
|
34
|
+
@payment_product_preferred_order << e
|
35
|
+
end
|
36
|
+
end
|
27
37
|
end
|
28
38
|
end
|
29
39
|
end
|
@@ -3,21 +3,25 @@
|
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/data_object'
|
5
5
|
require 'onlinepayments/sdk/domain/amount_of_money'
|
6
|
+
require 'onlinepayments/sdk/domain/surcharge_for_payment_link'
|
6
7
|
|
7
8
|
module OnlinePayments::SDK
|
8
9
|
module Domain
|
9
10
|
|
10
11
|
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount
|
11
12
|
# @attr [String] merchant_reference
|
13
|
+
# @attr [OnlinePayments::SDK::Domain::SurchargeForPaymentLink] surcharge_specific_input
|
12
14
|
class PaymentLinkOrderInput < OnlinePayments::SDK::DataObject
|
13
15
|
attr_accessor :amount
|
14
16
|
attr_accessor :merchant_reference
|
17
|
+
attr_accessor :surcharge_specific_input
|
15
18
|
|
16
19
|
# @return (Hash)
|
17
20
|
def to_h
|
18
21
|
hash = super
|
19
22
|
hash['amount'] = @amount.to_h if @amount
|
20
23
|
hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
|
24
|
+
hash['surchargeSpecificInput'] = @surcharge_specific_input.to_h if @surcharge_specific_input
|
21
25
|
hash
|
22
26
|
end
|
23
27
|
|
@@ -28,6 +32,10 @@ module OnlinePayments::SDK
|
|
28
32
|
@amount = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amount'])
|
29
33
|
end
|
30
34
|
@merchant_reference = hash['merchantReference'] if hash.key? 'merchantReference'
|
35
|
+
if hash.key? 'surchargeSpecificInput'
|
36
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['surchargeSpecificInput']] unless hash['surchargeSpecificInput'].is_a? Hash
|
37
|
+
@surcharge_specific_input = OnlinePayments::SDK::Domain::SurchargeForPaymentLink.new_from_hash(hash['surchargeSpecificInput'])
|
38
|
+
end
|
31
39
|
end
|
32
40
|
end
|
33
41
|
end
|
@@ -3,21 +3,25 @@
|
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/data_object'
|
5
5
|
require 'onlinepayments/sdk/domain/amount_of_money'
|
6
|
+
require 'onlinepayments/sdk/domain/surcharge_for_payment_link'
|
6
7
|
|
7
8
|
module OnlinePayments::SDK
|
8
9
|
module Domain
|
9
10
|
|
10
11
|
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount
|
11
12
|
# @attr [String] merchant_reference
|
13
|
+
# @attr [OnlinePayments::SDK::Domain::SurchargeForPaymentLink] surcharge_specific_output
|
12
14
|
class PaymentLinkOrderOutput < OnlinePayments::SDK::DataObject
|
13
15
|
attr_accessor :amount
|
14
16
|
attr_accessor :merchant_reference
|
17
|
+
attr_accessor :surcharge_specific_output
|
15
18
|
|
16
19
|
# @return (Hash)
|
17
20
|
def to_h
|
18
21
|
hash = super
|
19
22
|
hash['amount'] = @amount.to_h if @amount
|
20
23
|
hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
|
24
|
+
hash['surchargeSpecificOutput'] = @surcharge_specific_output.to_h if @surcharge_specific_output
|
21
25
|
hash
|
22
26
|
end
|
23
27
|
|
@@ -28,6 +32,10 @@ module OnlinePayments::SDK
|
|
28
32
|
@amount = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amount'])
|
29
33
|
end
|
30
34
|
@merchant_reference = hash['merchantReference'] if hash.key? 'merchantReference'
|
35
|
+
if hash.key? 'surchargeSpecificOutput'
|
36
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['surchargeSpecificOutput']] unless hash['surchargeSpecificOutput'].is_a? Hash
|
37
|
+
@surcharge_specific_output = OnlinePayments::SDK::Domain::SurchargeForPaymentLink.new_from_hash(hash['surchargeSpecificOutput'])
|
38
|
+
end
|
31
39
|
end
|
32
40
|
end
|
33
41
|
end
|
@@ -0,0 +1,30 @@
|
|
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] qr_code
|
10
|
+
# @attr [String] url_intent
|
11
|
+
class PaymentProduct3012 < OnlinePayments::SDK::DataObject
|
12
|
+
attr_accessor :qr_code
|
13
|
+
attr_accessor :url_intent
|
14
|
+
|
15
|
+
# @return (Hash)
|
16
|
+
def to_h
|
17
|
+
hash = super
|
18
|
+
hash['qrCode'] = @qr_code unless @qr_code.nil?
|
19
|
+
hash['urlIntent'] = @url_intent unless @url_intent.nil?
|
20
|
+
hash
|
21
|
+
end
|
22
|
+
|
23
|
+
def from_hash(hash)
|
24
|
+
super
|
25
|
+
@qr_code = hash['qrCode'] if hash.key? 'qrCode'
|
26
|
+
@url_intent = hash['urlIntent'] if hash.key? 'urlIntent'
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -2,21 +2,25 @@
|
|
2
2
|
# This class was auto-generated.
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/payment_product3012'
|
5
6
|
require 'onlinepayments/sdk/domain/payment_product5404'
|
6
7
|
require 'onlinepayments/sdk/domain/payment_product5407'
|
7
8
|
|
8
9
|
module OnlinePayments::SDK
|
9
10
|
module Domain
|
10
11
|
|
12
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct3012] payment_product3012
|
11
13
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct5404] payment_product5404
|
12
14
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct5407] payment_product5407
|
13
15
|
class ShowFormData < OnlinePayments::SDK::DataObject
|
16
|
+
attr_accessor :payment_product3012
|
14
17
|
attr_accessor :payment_product5404
|
15
18
|
attr_accessor :payment_product5407
|
16
19
|
|
17
20
|
# @return (Hash)
|
18
21
|
def to_h
|
19
22
|
hash = super
|
23
|
+
hash['paymentProduct3012'] = @payment_product3012.to_h if @payment_product3012
|
20
24
|
hash['paymentProduct5404'] = @payment_product5404.to_h if @payment_product5404
|
21
25
|
hash['paymentProduct5407'] = @payment_product5407.to_h if @payment_product5407
|
22
26
|
hash
|
@@ -24,6 +28,10 @@ module OnlinePayments::SDK
|
|
24
28
|
|
25
29
|
def from_hash(hash)
|
26
30
|
super
|
31
|
+
if hash.key? 'paymentProduct3012'
|
32
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3012']] unless hash['paymentProduct3012'].is_a? Hash
|
33
|
+
@payment_product3012 = OnlinePayments::SDK::Domain::PaymentProduct3012.new_from_hash(hash['paymentProduct3012'])
|
34
|
+
end
|
27
35
|
if hash.key? 'paymentProduct5404'
|
28
36
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5404']] unless hash['paymentProduct5404'].is_a? Hash
|
29
37
|
@payment_product5404 = OnlinePayments::SDK::Domain::PaymentProduct5404.new_from_hash(hash['paymentProduct5404'])
|
@@ -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] surcharge_mode
|
10
|
+
class SurchargeForPaymentLink < OnlinePayments::SDK::DataObject
|
11
|
+
attr_accessor :surcharge_mode
|
12
|
+
|
13
|
+
# @return (Hash)
|
14
|
+
def to_h
|
15
|
+
hash = super
|
16
|
+
hash['surchargeMode'] = @surcharge_mode unless @surcharge_mode.nil?
|
17
|
+
hash
|
18
|
+
end
|
19
|
+
|
20
|
+
def from_hash(hash)
|
21
|
+
super
|
22
|
+
@surcharge_mode = hash['surchargeMode'] if hash.key? 'surchargeMode'
|
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.21.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.21.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: 2024-
|
11
|
+
date: 2024-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -286,6 +286,7 @@ files:
|
|
286
286
|
- lib/onlinepayments/sdk/domain/payment_product.rb
|
287
287
|
- lib/onlinepayments/sdk/domain/payment_product130_specific_input.rb
|
288
288
|
- lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb
|
289
|
+
- lib/onlinepayments/sdk/domain/payment_product3012.rb
|
289
290
|
- lib/onlinepayments/sdk/domain/payment_product302_specific_data.rb
|
290
291
|
- lib/onlinepayments/sdk/domain/payment_product3208_specific_input.rb
|
291
292
|
- lib/onlinepayments/sdk/domain/payment_product3208_specific_output.rb
|
@@ -369,6 +370,7 @@ files:
|
|
369
370
|
- lib/onlinepayments/sdk/domain/subsequent_payment_response.rb
|
370
371
|
- lib/onlinepayments/sdk/domain/surcharge.rb
|
371
372
|
- lib/onlinepayments/sdk/domain/surcharge_calculation_card.rb
|
373
|
+
- lib/onlinepayments/sdk/domain/surcharge_for_payment_link.rb
|
372
374
|
- lib/onlinepayments/sdk/domain/surcharge_rate.rb
|
373
375
|
- lib/onlinepayments/sdk/domain/surcharge_specific_input.rb
|
374
376
|
- lib/onlinepayments/sdk/domain/surcharge_specific_output.rb
|