onlinepayments-sdk-ruby 7.2.2 → 7.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 844c28693af05242f63c2c8ad50ac46ea27f71f880e75f51ff44dd80db649b78
4
- data.tar.gz: 69a983cecf551acfefaed5ade4cf74e80d1dd90103f33ee1cdb79f107b9da775
3
+ metadata.gz: a0b52c80c4be84834cd391c9921e283f7880a133d528702f1633fc5b8774e6a9
4
+ data.tar.gz: 00570bddfd30d757ddce8255519661643a8612224ff4fca7dcaa098e19e31b7b
5
5
  SHA512:
6
- metadata.gz: b388b7d5c9ee241184ff79dff290c086e2aa5ba309f1c7fb12def53c0765bde748e0f7b59ff79b543ba0e8ab6cc5c6515e8f26fce61767a9d655fdb361b47818
7
- data.tar.gz: 7c8458617732db0bbb5d7bdbac16b71d4a4e5215a7853405da8fb8b1dd2630482303527fb7f59bc1e21654f1a7ad2e277784beed009cda9bec0a0ac570ebd80e
6
+ metadata.gz: 4770f3e35ef811e3f1f758360d43a7bd149c2a00d16a96d6edcd16f66770ae3a74782c289d462b2775046f940fb7694c8416bb0bd2097b70156f496f5d14713e
7
+ data.tar.gz: 22a31731e385d8ad4229303099189e5866bf616b18e5a8a4d18a8ebe145edeb53ff7101173a270040b15e06795b4a7dba6afb420a89e9223f9989c29dc35fb65
@@ -13,7 +13,7 @@ module OnlinePayments
13
13
  class MetadataProvider
14
14
  private
15
15
 
16
- SDK_VERSION = '7.2.2'.freeze
16
+ SDK_VERSION = '7.3.0'.freeze
17
17
  SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'.freeze
18
18
  PROHIBITED_HEADERS = [SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key', 'Date', 'Content-Type', 'Authorization'].sort!.freeze
19
19
  CHARSET = 'utf-8'.freeze
@@ -7,11 +7,14 @@ require 'onlinepayments/sdk/domain/session_data'
7
7
  module OnlinePayments
8
8
  module SDK
9
9
  module Domain
10
+ # @attr [Array<String>] invalid_tokens
10
11
  # @attr [String] sdk_sri
11
12
  # @attr [String] sdk_url
12
13
  # @attr [OnlinePayments::SDK::Domain::SessionData] session_data
13
14
  class CreateHostedFieldsSessionResponse < OnlinePayments::SDK::Domain::DataObject
14
15
 
16
+ attr_accessor :invalid_tokens
17
+
15
18
  attr_accessor :sdk_sri
16
19
 
17
20
  attr_accessor :sdk_url
@@ -21,6 +24,7 @@ module OnlinePayments
21
24
  # @return (Hash)
22
25
  def to_h
23
26
  hash = super
27
+ hash['invalidTokens'] = @invalid_tokens unless @invalid_tokens.nil?
24
28
  hash['sdkSri'] = @sdk_sri unless @sdk_sri.nil?
25
29
  hash['sdkUrl'] = @sdk_url unless @sdk_url.nil?
26
30
  hash['sessionData'] = @session_data.to_h unless @session_data.nil?
@@ -29,6 +33,13 @@ module OnlinePayments
29
33
 
30
34
  def from_hash(hash)
31
35
  super
36
+ if hash.has_key? 'invalidTokens'
37
+ raise TypeError, "value '%s' is not an Array" % [hash['invalidTokens']] unless hash['invalidTokens'].is_a? Array
38
+ @invalid_tokens = []
39
+ hash['invalidTokens'].each do |e|
40
+ @invalid_tokens << e
41
+ end
42
+ end
32
43
  if hash.has_key? 'sdkSri'
33
44
  @sdk_sri = hash['sdkSri']
34
45
  end
@@ -3,6 +3,9 @@
3
3
  #
4
4
  require 'onlinepayments/sdk/domain/data_object'
5
5
  require 'onlinepayments/sdk/domain/redirect_payment_product11_specific_input'
6
+ require 'onlinepayments/sdk/domain/redirect_payment_product3103_specific_input'
7
+ require 'onlinepayments/sdk/domain/redirect_payment_product3112_specific_input'
8
+ require 'onlinepayments/sdk/domain/redirect_payment_product3116_specific_input'
6
9
  require 'onlinepayments/sdk/domain/redirect_payment_product3203_specific_input'
7
10
  require 'onlinepayments/sdk/domain/redirect_payment_product3204_specific_input'
8
11
  require 'onlinepayments/sdk/domain/redirect_payment_product3302_specific_input'
@@ -16,6 +19,7 @@ require 'onlinepayments/sdk/domain/redirect_payment_product5406_specific_input'
16
19
  require 'onlinepayments/sdk/domain/redirect_payment_product5408_specific_input'
17
20
  require 'onlinepayments/sdk/domain/redirect_payment_product5410_specific_input'
18
21
  require 'onlinepayments/sdk/domain/redirect_payment_product5412_specific_input'
22
+ require 'onlinepayments/sdk/domain/redirect_payment_product5601_specific_input'
19
23
  require 'onlinepayments/sdk/domain/redirect_payment_product809_specific_input'
20
24
  require 'onlinepayments/sdk/domain/redirect_payment_product840_specific_input'
21
25
  require 'onlinepayments/sdk/domain/redirection_data'
@@ -25,6 +29,9 @@ module OnlinePayments
25
29
  module Domain
26
30
  # @attr [String] payment_option
27
31
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct11SpecificInput] payment_product11_specific_input
32
+ # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3103SpecificInput] payment_product3103_specific_input
33
+ # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3112SpecificInput] payment_product3112_specific_input
34
+ # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3116SpecificInput] payment_product3116_specific_input
28
35
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3203SpecificInput] payment_product3203_specific_input
29
36
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3204SpecificInput] payment_product3204_specific_input
30
37
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3302SpecificInput] payment_product3302_specific_input
@@ -38,6 +45,7 @@ module OnlinePayments
38
45
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5408SpecificInput] payment_product5408_specific_input
39
46
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5410SpecificInput] payment_product5410_specific_input
40
47
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5412SpecificInput] payment_product5412_specific_input
48
+ # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5601SpecificInput] payment_product5601_specific_input
41
49
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct809SpecificInput] payment_product809_specific_input
42
50
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct840SpecificInput] payment_product840_specific_input
43
51
  # @attr [Integer] payment_product_id
@@ -51,6 +59,12 @@ module OnlinePayments
51
59
 
52
60
  attr_accessor :payment_product11_specific_input
53
61
 
62
+ attr_accessor :payment_product3103_specific_input
63
+
64
+ attr_accessor :payment_product3112_specific_input
65
+
66
+ attr_accessor :payment_product3116_specific_input
67
+
54
68
  attr_accessor :payment_product3203_specific_input
55
69
 
56
70
  attr_accessor :payment_product3204_specific_input
@@ -77,6 +91,8 @@ module OnlinePayments
77
91
 
78
92
  attr_accessor :payment_product5412_specific_input
79
93
 
94
+ attr_accessor :payment_product5601_specific_input
95
+
80
96
  attr_accessor :payment_product809_specific_input
81
97
 
82
98
  attr_accessor :payment_product840_specific_input
@@ -96,6 +112,9 @@ module OnlinePayments
96
112
  hash = super
97
113
  hash['paymentOption'] = @payment_option unless @payment_option.nil?
98
114
  hash['paymentProduct11SpecificInput'] = @payment_product11_specific_input.to_h unless @payment_product11_specific_input.nil?
115
+ hash['paymentProduct3103SpecificInput'] = @payment_product3103_specific_input.to_h unless @payment_product3103_specific_input.nil?
116
+ hash['paymentProduct3112SpecificInput'] = @payment_product3112_specific_input.to_h unless @payment_product3112_specific_input.nil?
117
+ hash['paymentProduct3116SpecificInput'] = @payment_product3116_specific_input.to_h unless @payment_product3116_specific_input.nil?
99
118
  hash['paymentProduct3203SpecificInput'] = @payment_product3203_specific_input.to_h unless @payment_product3203_specific_input.nil?
100
119
  hash['paymentProduct3204SpecificInput'] = @payment_product3204_specific_input.to_h unless @payment_product3204_specific_input.nil?
101
120
  hash['paymentProduct3302SpecificInput'] = @payment_product3302_specific_input.to_h unless @payment_product3302_specific_input.nil?
@@ -109,6 +128,7 @@ module OnlinePayments
109
128
  hash['paymentProduct5408SpecificInput'] = @payment_product5408_specific_input.to_h unless @payment_product5408_specific_input.nil?
110
129
  hash['paymentProduct5410SpecificInput'] = @payment_product5410_specific_input.to_h unless @payment_product5410_specific_input.nil?
111
130
  hash['paymentProduct5412SpecificInput'] = @payment_product5412_specific_input.to_h unless @payment_product5412_specific_input.nil?
131
+ hash['paymentProduct5601SpecificInput'] = @payment_product5601_specific_input.to_h unless @payment_product5601_specific_input.nil?
112
132
  hash['paymentProduct809SpecificInput'] = @payment_product809_specific_input.to_h unless @payment_product809_specific_input.nil?
113
133
  hash['paymentProduct840SpecificInput'] = @payment_product840_specific_input.to_h unless @payment_product840_specific_input.nil?
114
134
  hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
@@ -128,6 +148,18 @@ module OnlinePayments
128
148
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct11SpecificInput']] unless hash['paymentProduct11SpecificInput'].is_a? Hash
129
149
  @payment_product11_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct11SpecificInput.new_from_hash(hash['paymentProduct11SpecificInput'])
130
150
  end
151
+ if hash.has_key? 'paymentProduct3103SpecificInput'
152
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3103SpecificInput']] unless hash['paymentProduct3103SpecificInput'].is_a? Hash
153
+ @payment_product3103_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3103SpecificInput.new_from_hash(hash['paymentProduct3103SpecificInput'])
154
+ end
155
+ if hash.has_key? 'paymentProduct3112SpecificInput'
156
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3112SpecificInput']] unless hash['paymentProduct3112SpecificInput'].is_a? Hash
157
+ @payment_product3112_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3112SpecificInput.new_from_hash(hash['paymentProduct3112SpecificInput'])
158
+ end
159
+ if hash.has_key? 'paymentProduct3116SpecificInput'
160
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3116SpecificInput']] unless hash['paymentProduct3116SpecificInput'].is_a? Hash
161
+ @payment_product3116_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3116SpecificInput.new_from_hash(hash['paymentProduct3116SpecificInput'])
162
+ end
131
163
  if hash.has_key? 'paymentProduct3203SpecificInput'
132
164
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3203SpecificInput']] unless hash['paymentProduct3203SpecificInput'].is_a? Hash
133
165
  @payment_product3203_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3203SpecificInput.new_from_hash(hash['paymentProduct3203SpecificInput'])
@@ -180,6 +212,10 @@ module OnlinePayments
180
212
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5412SpecificInput']] unless hash['paymentProduct5412SpecificInput'].is_a? Hash
181
213
  @payment_product5412_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5412SpecificInput.new_from_hash(hash['paymentProduct5412SpecificInput'])
182
214
  end
215
+ if hash.has_key? 'paymentProduct5601SpecificInput'
216
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5601SpecificInput']] unless hash['paymentProduct5601SpecificInput'].is_a? Hash
217
+ @payment_product5601_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5601SpecificInput.new_from_hash(hash['paymentProduct5601SpecificInput'])
218
+ end
183
219
  if hash.has_key? 'paymentProduct809SpecificInput'
184
220
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct809SpecificInput']] unless hash['paymentProduct809SpecificInput'].is_a? Hash
185
221
  @payment_product809_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct809SpecificInput.new_from_hash(hash['paymentProduct809SpecificInput'])
@@ -0,0 +1,30 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'onlinepayments/sdk/domain/data_object'
5
+
6
+ module OnlinePayments
7
+ module SDK
8
+ module Domain
9
+ # @attr [true/false] complete_remaining_payment_amount
10
+ class RedirectPaymentProduct3103SpecificInput < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :complete_remaining_payment_amount
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['completeRemainingPaymentAmount'] = @complete_remaining_payment_amount unless @complete_remaining_payment_amount.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'completeRemainingPaymentAmount'
24
+ @complete_remaining_payment_amount = hash['completeRemainingPaymentAmount']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'onlinepayments/sdk/domain/data_object'
5
+
6
+ module OnlinePayments
7
+ module SDK
8
+ module Domain
9
+ # @attr [true/false] complete_remaining_payment_amount
10
+ class RedirectPaymentProduct3112SpecificInput < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :complete_remaining_payment_amount
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['completeRemainingPaymentAmount'] = @complete_remaining_payment_amount unless @complete_remaining_payment_amount.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'completeRemainingPaymentAmount'
24
+ @complete_remaining_payment_amount = hash['completeRemainingPaymentAmount']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'onlinepayments/sdk/domain/data_object'
5
+
6
+ module OnlinePayments
7
+ module SDK
8
+ module Domain
9
+ # @attr [true/false] complete_remaining_payment_amount
10
+ class RedirectPaymentProduct3116SpecificInput < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :complete_remaining_payment_amount
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['completeRemainingPaymentAmount'] = @complete_remaining_payment_amount unless @complete_remaining_payment_amount.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'completeRemainingPaymentAmount'
24
+ @complete_remaining_payment_amount = hash['completeRemainingPaymentAmount']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'onlinepayments/sdk/domain/data_object'
5
+
6
+ module OnlinePayments
7
+ module SDK
8
+ module Domain
9
+ # @attr [true/false] complete_remaining_payment_amount
10
+ class RedirectPaymentProduct5601SpecificInput < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :complete_remaining_payment_amount
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['completeRemainingPaymentAmount'] = @complete_remaining_payment_amount unless @complete_remaining_payment_amount.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'completeRemainingPaymentAmount'
24
+ @complete_remaining_payment_amount = hash['completeRemainingPaymentAmount']
25
+ end
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 = '7.2.2'
3
+ spec.version = '7.3.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: 7.2.2
4
+ version: 7.3.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: 2026-03-05 00:00:00.000000000 Z
11
+ date: 2026-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -413,6 +413,9 @@ files:
413
413
  - lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb
414
414
  - lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb
415
415
  - lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb
416
+ - lib/onlinepayments/sdk/domain/redirect_payment_product3103_specific_input.rb
417
+ - lib/onlinepayments/sdk/domain/redirect_payment_product3112_specific_input.rb
418
+ - lib/onlinepayments/sdk/domain/redirect_payment_product3116_specific_input.rb
416
419
  - lib/onlinepayments/sdk/domain/redirect_payment_product3203_specific_input.rb
417
420
  - lib/onlinepayments/sdk/domain/redirect_payment_product3204_specific_input.rb
418
421
  - lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb
@@ -426,6 +429,7 @@ files:
426
429
  - lib/onlinepayments/sdk/domain/redirect_payment_product5408_specific_input.rb
427
430
  - lib/onlinepayments/sdk/domain/redirect_payment_product5410_specific_input.rb
428
431
  - lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb
432
+ - lib/onlinepayments/sdk/domain/redirect_payment_product5601_specific_input.rb
429
433
  - lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb
430
434
  - lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb
431
435
  - lib/onlinepayments/sdk/domain/redirection_data.rb