onlinepayments-sdk-ruby 3.4.0 → 3.5.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/api_error.rb +4 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +8 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb +8 -0
- data/lib/onlinepayments/sdk/domain/payment_product3012_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: 716c246b8a4ea8548e73e8c941989b813714367a15f37a7cc954ceb679a31107
|
4
|
+
data.tar.gz: 716b84eae40a2ea26fc05d1fcd7a54f9bbd1415302db69b585945aaa145d7aa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c81e3b4bfd2b9d76eb2c18da50c11f477f4ef3abf59ed264cf40f70bdb98976df541f2423db924ac70a436ec0899781ab90aeb7b0de0d1d91efc9ac161910e8
|
7
|
+
data.tar.gz: 1b292d156441c3a7b86dcb6706397d5ef19a50059615a46f071bfa5a0401340c079c7a9f079403bc69303a45fd731be52ba1e5ce5e69d7d46d778149aaefc248
|
@@ -8,6 +8,7 @@ module OnlinePayments::SDK
|
|
8
8
|
|
9
9
|
# @attr [String] category
|
10
10
|
# @attr [String] code
|
11
|
+
# @attr [String] error_code
|
11
12
|
# @attr [Integer] http_status_code
|
12
13
|
# @attr [String] id
|
13
14
|
# @attr [String] message
|
@@ -15,6 +16,7 @@ module OnlinePayments::SDK
|
|
15
16
|
class APIError < OnlinePayments::SDK::DataObject
|
16
17
|
attr_accessor :category
|
17
18
|
attr_accessor :code
|
19
|
+
attr_accessor :error_code
|
18
20
|
attr_accessor :http_status_code
|
19
21
|
attr_accessor :id
|
20
22
|
attr_accessor :message
|
@@ -25,6 +27,7 @@ module OnlinePayments::SDK
|
|
25
27
|
hash = super
|
26
28
|
hash['category'] = @category unless @category.nil?
|
27
29
|
hash['code'] = @code unless @code.nil?
|
30
|
+
hash['errorCode'] = @error_code unless @error_code.nil?
|
28
31
|
hash['httpStatusCode'] = @http_status_code unless @http_status_code.nil?
|
29
32
|
hash['id'] = @id unless @id.nil?
|
30
33
|
hash['message'] = @message unless @message.nil?
|
@@ -36,6 +39,7 @@ module OnlinePayments::SDK
|
|
36
39
|
super
|
37
40
|
@category = hash['category'] if hash.key? 'category'
|
38
41
|
@code = hash['code'] if hash.key? 'code'
|
42
|
+
@error_code = hash['errorCode'] if hash.key? 'errorCode'
|
39
43
|
@http_status_code = hash['httpStatusCode'] if hash.key? 'httpStatusCode'
|
40
44
|
@id = hash['id'] if hash.key? 'id'
|
41
45
|
@message = hash['message'] if hash.key? 'message'
|
@@ -5,6 +5,7 @@ require 'onlinepayments/sdk/data_object'
|
|
5
5
|
require 'onlinepayments/sdk/domain/card'
|
6
6
|
require 'onlinepayments/sdk/domain/card_recurrence_details'
|
7
7
|
require 'onlinepayments/sdk/domain/payment_product130_specific_input'
|
8
|
+
require 'onlinepayments/sdk/domain/payment_product3012_specific_input'
|
8
9
|
require 'onlinepayments/sdk/domain/three_d_secure'
|
9
10
|
|
10
11
|
module OnlinePayments::SDK
|
@@ -15,6 +16,7 @@ module OnlinePayments::SDK
|
|
15
16
|
# @attr [String] initial_scheme_transaction_id
|
16
17
|
# @attr [true/false] is_recurring
|
17
18
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput] payment_product130_specific_input
|
19
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput] payment_product3012_specific_input
|
18
20
|
# @attr [Integer] payment_product_id
|
19
21
|
# @attr [OnlinePayments::SDK::Domain::CardRecurrenceDetails] recurring
|
20
22
|
# @attr [String] return_url
|
@@ -31,6 +33,7 @@ module OnlinePayments::SDK
|
|
31
33
|
attr_accessor :initial_scheme_transaction_id
|
32
34
|
attr_accessor :is_recurring
|
33
35
|
attr_accessor :payment_product130_specific_input
|
36
|
+
attr_accessor :payment_product3012_specific_input
|
34
37
|
attr_accessor :payment_product_id
|
35
38
|
attr_accessor :recurring
|
36
39
|
attr_accessor :return_url
|
@@ -50,6 +53,7 @@ module OnlinePayments::SDK
|
|
50
53
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
51
54
|
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
52
55
|
hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h if @payment_product130_specific_input
|
56
|
+
hash['paymentProduct3012SpecificInput'] = @payment_product3012_specific_input.to_h if @payment_product3012_specific_input
|
53
57
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
54
58
|
hash['recurring'] = @recurring.to_h if @recurring
|
55
59
|
hash['returnUrl'] = @return_url unless @return_url.nil?
|
@@ -76,6 +80,10 @@ module OnlinePayments::SDK
|
|
76
80
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct130SpecificInput']] unless hash['paymentProduct130SpecificInput'].is_a? Hash
|
77
81
|
@payment_product130_specific_input = OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput.new_from_hash(hash['paymentProduct130SpecificInput'])
|
78
82
|
end
|
83
|
+
if hash.key? 'paymentProduct3012SpecificInput'
|
84
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3012SpecificInput']] unless hash['paymentProduct3012SpecificInput'].is_a? Hash
|
85
|
+
@payment_product3012_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput.new_from_hash(hash['paymentProduct3012SpecificInput'])
|
86
|
+
end
|
79
87
|
@payment_product_id = hash['paymentProductId'] if hash.key? 'paymentProductId'
|
80
88
|
if hash.key? 'recurring'
|
81
89
|
raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash
|
@@ -4,6 +4,7 @@
|
|
4
4
|
require 'onlinepayments/sdk/data_object'
|
5
5
|
require 'onlinepayments/sdk/domain/card_recurrence_details'
|
6
6
|
require 'onlinepayments/sdk/domain/payment_product130_specific_input'
|
7
|
+
require 'onlinepayments/sdk/domain/payment_product3012_specific_input'
|
7
8
|
require 'onlinepayments/sdk/domain/payment_product5100_specific_input'
|
8
9
|
require 'onlinepayments/sdk/domain/three_d_secure_base'
|
9
10
|
|
@@ -13,6 +14,7 @@ module OnlinePayments::SDK
|
|
13
14
|
# @attr [String] authorization_mode
|
14
15
|
# @attr [String] initial_scheme_transaction_id
|
15
16
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput] payment_product130_specific_input
|
17
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput] payment_product3012_specific_input
|
16
18
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct5100SpecificInput] payment_product5100_specific_input
|
17
19
|
# @attr [Integer] payment_product_id
|
18
20
|
# @attr [OnlinePayments::SDK::Domain::CardRecurrenceDetails] recurring
|
@@ -26,6 +28,7 @@ module OnlinePayments::SDK
|
|
26
28
|
attr_accessor :authorization_mode
|
27
29
|
attr_accessor :initial_scheme_transaction_id
|
28
30
|
attr_accessor :payment_product130_specific_input
|
31
|
+
attr_accessor :payment_product3012_specific_input
|
29
32
|
attr_accessor :payment_product5100_specific_input
|
30
33
|
attr_accessor :payment_product_id
|
31
34
|
attr_accessor :recurring
|
@@ -42,6 +45,7 @@ module OnlinePayments::SDK
|
|
42
45
|
hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
|
43
46
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
44
47
|
hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h if @payment_product130_specific_input
|
48
|
+
hash['paymentProduct3012SpecificInput'] = @payment_product3012_specific_input.to_h if @payment_product3012_specific_input
|
45
49
|
hash['paymentProduct5100SpecificInput'] = @payment_product5100_specific_input.to_h if @payment_product5100_specific_input
|
46
50
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
47
51
|
hash['recurring'] = @recurring.to_h if @recurring
|
@@ -62,6 +66,10 @@ module OnlinePayments::SDK
|
|
62
66
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct130SpecificInput']] unless hash['paymentProduct130SpecificInput'].is_a? Hash
|
63
67
|
@payment_product130_specific_input = OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput.new_from_hash(hash['paymentProduct130SpecificInput'])
|
64
68
|
end
|
69
|
+
if hash.key? 'paymentProduct3012SpecificInput'
|
70
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3012SpecificInput']] unless hash['paymentProduct3012SpecificInput'].is_a? Hash
|
71
|
+
@payment_product3012_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput.new_from_hash(hash['paymentProduct3012SpecificInput'])
|
72
|
+
end
|
65
73
|
if hash.key? 'paymentProduct5100SpecificInput'
|
66
74
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5100SpecificInput']] unless hash['paymentProduct5100SpecificInput'].is_a? Hash
|
67
75
|
@payment_product5100_specific_input = OnlinePayments::SDK::Domain::PaymentProduct5100SpecificInput.new_from_hash(hash['paymentProduct5100SpecificInput'])
|
@@ -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 [true/false] force_authentication
|
10
|
+
# @attr [true/false] is_wip_transaction
|
11
|
+
class PaymentProduct3012SpecificInput < OnlinePayments::SDK::DataObject
|
12
|
+
attr_accessor :force_authentication
|
13
|
+
attr_accessor :is_wip_transaction
|
14
|
+
|
15
|
+
# @return (Hash)
|
16
|
+
def to_h
|
17
|
+
hash = super
|
18
|
+
hash['forceAuthentication'] = @force_authentication unless @force_authentication.nil?
|
19
|
+
hash['isWipTransaction'] = @is_wip_transaction unless @is_wip_transaction.nil?
|
20
|
+
hash
|
21
|
+
end
|
22
|
+
|
23
|
+
def from_hash(hash)
|
24
|
+
super
|
25
|
+
@force_authentication = hash['forceAuthentication'] if hash.key? 'forceAuthentication'
|
26
|
+
@is_wip_transaction = hash['isWipTransaction'] if hash.key? 'isWipTransaction'
|
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 = '3.
|
3
|
+
spec.version = '3.5.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: 3.
|
4
|
+
version: 3.5.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: 2022-
|
11
|
+
date: 2022-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -260,6 +260,7 @@ files:
|
|
260
260
|
- lib/onlinepayments/sdk/domain/payment_product.rb
|
261
261
|
- lib/onlinepayments/sdk/domain/payment_product130_specific_input.rb
|
262
262
|
- lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb
|
263
|
+
- lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb
|
263
264
|
- lib/onlinepayments/sdk/domain/payment_product302_specific_data.rb
|
264
265
|
- lib/onlinepayments/sdk/domain/payment_product320_specific_data.rb
|
265
266
|
- lib/onlinepayments/sdk/domain/payment_product5100_specific_input.rb
|