onlinepayments-sdk-ruby 5.0.0 → 5.1.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: 6dc4e740cbc9653b392253ba2f6266a6ca88f5b2721c029dfc2e11b08c3bea93
4
- data.tar.gz: 1d7f251e223133008f132baac2d771a4349744868ce381ab8d294333014beaa9
3
+ metadata.gz: 6987f9c255f3b188e829f19f9fead3bd245ee17cf865fbd31495291b59b7d5dc
4
+ data.tar.gz: e586ef2c85d0a1c0fb39b953d95096f1dcf4a167d7723bb79f509ee95938a600
5
5
  SHA512:
6
- metadata.gz: 206a8aec1a179fb3b3918f20c5e4aad8ff5737087de7194fffa7bc6ee6eaf09d44c5f87ee98f2436dd3b290359518678822367a1b09ef3d76cf1d674e739b4b1
7
- data.tar.gz: 93c319108e40291f2f5ae50acbe6df67e1000f77214008b70a81e5c7e1bc030e7286cd4b7139942bae39249139b6bdf398b57b7d526cc81bdad5ff5e014a2143
6
+ metadata.gz: aeb66a311492611e256e399509285f001e6f864e0c4dbc13a28e94db77591070fd34a6e1e8adb4534b6125865287726f9671ef690033b22eb834272a6fc1e7a0
7
+ data.tar.gz: 52179edf9713ad9360cdfb5122c6b97a9dcb576d434ee37f454873257066af7aee8564a98f2ea0a8c5d0dde7650bb30830c41276026df8afcd7e8daa9f86926d
@@ -13,7 +13,7 @@ module OnlinePayments
13
13
  class MetadataProvider
14
14
  private
15
15
 
16
- SDK_VERSION = '5.0.0'.freeze
16
+ SDK_VERSION = '5.1.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
@@ -9,6 +9,7 @@ require 'onlinepayments/sdk/domain/data_object'
9
9
  require 'onlinepayments/sdk/domain/external_token_linked'
10
10
  require 'onlinepayments/sdk/domain/payment_product3208_specific_output'
11
11
  require 'onlinepayments/sdk/domain/payment_product3209_specific_output'
12
+ require 'onlinepayments/sdk/domain/reattempt_instructions'
12
13
  require 'onlinepayments/sdk/domain/three_d_secure_results'
13
14
 
14
15
  module OnlinePayments
@@ -27,6 +28,7 @@ module OnlinePayments
27
28
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct3208SpecificOutput] payment_product3208_specific_output
28
29
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct3209SpecificOutput] payment_product3209_specific_output
29
30
  # @attr [Integer] payment_product_id
31
+ # @attr [OnlinePayments::SDK::Domain::ReattemptInstructions] reattempt_instructions
30
32
  # @attr [String] scheme_reference_data
31
33
  # @attr [OnlinePayments::SDK::Domain::ThreeDSecureResults] three_d_secure_results
32
34
  # @attr [String] token
@@ -58,6 +60,8 @@ module OnlinePayments
58
60
 
59
61
  attr_accessor :payment_product_id
60
62
 
63
+ attr_accessor :reattempt_instructions
64
+
61
65
  attr_accessor :scheme_reference_data
62
66
 
63
67
  attr_accessor :three_d_secure_results
@@ -80,6 +84,7 @@ module OnlinePayments
80
84
  hash['paymentProduct3208SpecificOutput'] = @payment_product3208_specific_output.to_h unless @payment_product3208_specific_output.nil?
81
85
  hash['paymentProduct3209SpecificOutput'] = @payment_product3209_specific_output.to_h unless @payment_product3209_specific_output.nil?
82
86
  hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
87
+ hash['reattemptInstructions'] = @reattempt_instructions.to_h unless @reattempt_instructions.nil?
83
88
  hash['schemeReferenceData'] = @scheme_reference_data unless @scheme_reference_data.nil?
84
89
  hash['threeDSecureResults'] = @three_d_secure_results.to_h unless @three_d_secure_results.nil?
85
90
  hash['token'] = @token unless @token.nil?
@@ -134,6 +139,10 @@ module OnlinePayments
134
139
  if hash.has_key? 'paymentProductId'
135
140
  @payment_product_id = hash['paymentProductId']
136
141
  end
142
+ if hash.has_key? 'reattemptInstructions'
143
+ raise TypeError, "value '%s' is not a Hash" % [hash['reattemptInstructions']] unless hash['reattemptInstructions'].is_a? Hash
144
+ @reattempt_instructions = OnlinePayments::SDK::Domain::ReattemptInstructions.new_from_hash(hash['reattemptInstructions'])
145
+ end
137
146
  if hash.has_key? 'schemeReferenceData'
138
147
  @scheme_reference_data = hash['schemeReferenceData']
139
148
  end
@@ -24,6 +24,7 @@ module OnlinePayments
24
24
  # @attr [OnlinePayments::SDK::Domain::Feedbacks] feedbacks
25
25
  # @attr [OnlinePayments::SDK::Domain::FraudFields] fraud_fields
26
26
  # @attr [OnlinePayments::SDK::Domain::HostedCheckoutSpecificInput] hosted_checkout_specific_input
27
+ # @attr [true/false] is_reusable_link
27
28
  # @attr [OnlinePayments::SDK::Domain::MobilePaymentMethodHostedCheckoutSpecificInput] mobile_payment_method_specific_input
28
29
  # @attr [OnlinePayments::SDK::Domain::Order] order
29
30
  # @attr [OnlinePayments::SDK::Domain::PaymentLinkOrderInput] payment_link_order
@@ -47,6 +48,8 @@ module OnlinePayments
47
48
 
48
49
  attr_accessor :hosted_checkout_specific_input
49
50
 
51
+ attr_accessor :is_reusable_link
52
+
50
53
  attr_accessor :mobile_payment_method_specific_input
51
54
 
52
55
  attr_accessor :order
@@ -71,6 +74,7 @@ module OnlinePayments
71
74
  hash['feedbacks'] = @feedbacks.to_h unless @feedbacks.nil?
72
75
  hash['fraudFields'] = @fraud_fields.to_h unless @fraud_fields.nil?
73
76
  hash['hostedCheckoutSpecificInput'] = @hosted_checkout_specific_input.to_h unless @hosted_checkout_specific_input.nil?
77
+ hash['isReusableLink'] = @is_reusable_link unless @is_reusable_link.nil?
74
78
  hash['mobilePaymentMethodSpecificInput'] = @mobile_payment_method_specific_input.to_h unless @mobile_payment_method_specific_input.nil?
75
79
  hash['order'] = @order.to_h unless @order.nil?
76
80
  hash['paymentLinkOrder'] = @payment_link_order.to_h unless @payment_link_order.nil?
@@ -105,6 +109,9 @@ module OnlinePayments
105
109
  raise TypeError, "value '%s' is not a Hash" % [hash['hostedCheckoutSpecificInput']] unless hash['hostedCheckoutSpecificInput'].is_a? Hash
106
110
  @hosted_checkout_specific_input = OnlinePayments::SDK::Domain::HostedCheckoutSpecificInput.new_from_hash(hash['hostedCheckoutSpecificInput'])
107
111
  end
112
+ if hash.has_key? 'isReusableLink'
113
+ @is_reusable_link = hash['isReusableLink']
114
+ end
108
115
  if hash.has_key? 'mobilePaymentMethodSpecificInput'
109
116
  raise TypeError, "value '%s' is not a Hash" % [hash['mobilePaymentMethodSpecificInput']] unless hash['mobilePaymentMethodSpecificInput'].is_a? Hash
110
117
  @mobile_payment_method_specific_input = OnlinePayments::SDK::Domain::MobilePaymentMethodHostedCheckoutSpecificInput.new_from_hash(hash['mobilePaymentMethodSpecificInput'])
@@ -7,14 +7,19 @@ module OnlinePayments
7
7
  module SDK
8
8
  module Domain
9
9
  # @attr [String] webhook_url
10
+ # @attr [Array<String>] webhooks_urls
10
11
  class Feedbacks < OnlinePayments::SDK::Domain::DataObject
11
12
 
13
+ # @deprecated The URL where the webhook will be dispatched for all status change events related to this payment.
12
14
  attr_accessor :webhook_url
13
15
 
16
+ attr_accessor :webhooks_urls
17
+
14
18
  # @return (Hash)
15
19
  def to_h
16
20
  hash = super
17
21
  hash['webhookUrl'] = @webhook_url unless @webhook_url.nil?
22
+ hash['webhooksUrls'] = @webhooks_urls unless @webhooks_urls.nil?
18
23
  hash
19
24
  end
20
25
 
@@ -23,6 +28,13 @@ module OnlinePayments
23
28
  if hash.has_key? 'webhookUrl'
24
29
  @webhook_url = hash['webhookUrl']
25
30
  end
31
+ if hash.has_key? 'webhooksUrls'
32
+ raise TypeError, "value '%s' is not an Array" % [hash['webhooksUrls']] unless hash['webhooksUrls'].is_a? Array
33
+ @webhooks_urls = []
34
+ hash['webhooksUrls'].each do |e|
35
+ @webhooks_urls << e
36
+ end
37
+ end
26
38
  end
27
39
  end
28
40
  end
@@ -5,6 +5,7 @@ require 'onlinepayments/sdk/domain/data_object'
5
5
  require 'onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters'
6
6
  require 'onlinepayments/sdk/domain/redirect_data'
7
7
  require 'onlinepayments/sdk/domain/show_form_data'
8
+ require 'onlinepayments/sdk/domain/show_instructions_data'
8
9
 
9
10
  module OnlinePayments
10
11
  module SDK
@@ -13,6 +14,7 @@ module OnlinePayments
13
14
  # @attr [OnlinePayments::SDK::Domain::MobileThreeDSecureChallengeParameters] mobile_three_d_secure_challenge_parameters
14
15
  # @attr [OnlinePayments::SDK::Domain::RedirectData] redirect_data
15
16
  # @attr [OnlinePayments::SDK::Domain::ShowFormData] show_form_data
17
+ # @attr [OnlinePayments::SDK::Domain::ShowInstructionsData] show_instructions_data
16
18
  class MerchantAction < OnlinePayments::SDK::Domain::DataObject
17
19
 
18
20
  attr_accessor :action_type
@@ -23,6 +25,8 @@ module OnlinePayments
23
25
 
24
26
  attr_accessor :show_form_data
25
27
 
28
+ attr_accessor :show_instructions_data
29
+
26
30
  # @return (Hash)
27
31
  def to_h
28
32
  hash = super
@@ -30,6 +34,7 @@ module OnlinePayments
30
34
  hash['mobileThreeDSecureChallengeParameters'] = @mobile_three_d_secure_challenge_parameters.to_h unless @mobile_three_d_secure_challenge_parameters.nil?
31
35
  hash['redirectData'] = @redirect_data.to_h unless @redirect_data.nil?
32
36
  hash['showFormData'] = @show_form_data.to_h unless @show_form_data.nil?
37
+ hash['showInstructionsData'] = @show_instructions_data.to_h unless @show_instructions_data.nil?
33
38
  hash
34
39
  end
35
40
 
@@ -50,6 +55,10 @@ module OnlinePayments
50
55
  raise TypeError, "value '%s' is not a Hash" % [hash['showFormData']] unless hash['showFormData'].is_a? Hash
51
56
  @show_form_data = OnlinePayments::SDK::Domain::ShowFormData.new_from_hash(hash['showFormData'])
52
57
  end
58
+ if hash.has_key? 'showInstructionsData'
59
+ raise TypeError, "value '%s' is not a Hash" % [hash['showInstructionsData']] unless hash['showInstructionsData'].is_a? Hash
60
+ @show_instructions_data = OnlinePayments::SDK::Domain::ShowInstructionsData.new_from_hash(hash['showInstructionsData'])
61
+ end
53
62
  end
54
63
  end
55
64
  end
@@ -11,6 +11,7 @@ module OnlinePayments
11
11
  module SDK
12
12
  module Domain
13
13
  # @attr [DateTime] expiration_date
14
+ # @attr [true/false] is_reusable_link
14
15
  # @attr [String] payment_id
15
16
  # @attr [Array<OnlinePayments::SDK::Domain::PaymentLinkEvent>] payment_link_events
16
17
  # @attr [String] payment_link_id
@@ -22,6 +23,8 @@ module OnlinePayments
22
23
 
23
24
  attr_accessor :expiration_date
24
25
 
26
+ attr_accessor :is_reusable_link
27
+
25
28
  attr_accessor :payment_id
26
29
 
27
30
  attr_accessor :payment_link_events
@@ -40,6 +43,7 @@ module OnlinePayments
40
43
  def to_h
41
44
  hash = super
42
45
  hash['expirationDate'] = @expiration_date.iso8601(3) unless @expiration_date.nil?
46
+ hash['isReusableLink'] = @is_reusable_link unless @is_reusable_link.nil?
43
47
  hash['paymentId'] = @payment_id unless @payment_id.nil?
44
48
  hash['paymentLinkEvents'] = @payment_link_events.collect{|val| val.to_h} unless @payment_link_events.nil?
45
49
  hash['paymentLinkId'] = @payment_link_id unless @payment_link_id.nil?
@@ -55,6 +59,9 @@ module OnlinePayments
55
59
  if hash.has_key? 'expirationDate'
56
60
  @expiration_date = DateTime.parse(hash['expirationDate'])
57
61
  end
62
+ if hash.has_key? 'isReusableLink'
63
+ @is_reusable_link = hash['isReusableLink']
64
+ end
58
65
  if hash.has_key? 'paymentId'
59
66
  @payment_id = hash['paymentId']
60
67
  end
@@ -0,0 +1,46 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'onlinepayments/sdk/domain/data_object'
5
+ require 'onlinepayments/sdk/domain/reattempt_instructions_conditions'
6
+
7
+ module OnlinePayments
8
+ module SDK
9
+ module Domain
10
+ # @attr [OnlinePayments::SDK::Domain::ReattemptInstructionsConditions] conditions
11
+ # @attr [Integer] frozen_period
12
+ # @attr [String] indicator
13
+ class ReattemptInstructions < OnlinePayments::SDK::Domain::DataObject
14
+
15
+ attr_accessor :conditions
16
+
17
+ attr_accessor :frozen_period
18
+
19
+ attr_accessor :indicator
20
+
21
+ # @return (Hash)
22
+ def to_h
23
+ hash = super
24
+ hash['conditions'] = @conditions.to_h unless @conditions.nil?
25
+ hash['frozenPeriod'] = @frozen_period unless @frozen_period.nil?
26
+ hash['indicator'] = @indicator unless @indicator.nil?
27
+ hash
28
+ end
29
+
30
+ def from_hash(hash)
31
+ super
32
+ if hash.has_key? 'conditions'
33
+ raise TypeError, "value '%s' is not a Hash" % [hash['conditions']] unless hash['conditions'].is_a? Hash
34
+ @conditions = OnlinePayments::SDK::Domain::ReattemptInstructionsConditions.new_from_hash(hash['conditions'])
35
+ end
36
+ if hash.has_key? 'frozenPeriod'
37
+ @frozen_period = hash['frozenPeriod']
38
+ end
39
+ if hash.has_key? 'indicator'
40
+ @indicator = hash['indicator']
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,37 @@
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 [Integer] max_attempts
10
+ # @attr [Integer] max_delay
11
+ class ReattemptInstructionsConditions < OnlinePayments::SDK::Domain::DataObject
12
+
13
+ attr_accessor :max_attempts
14
+
15
+ attr_accessor :max_delay
16
+
17
+ # @return (Hash)
18
+ def to_h
19
+ hash = super
20
+ hash['maxAttempts'] = @max_attempts unless @max_attempts.nil?
21
+ hash['maxDelay'] = @max_delay unless @max_delay.nil?
22
+ hash
23
+ end
24
+
25
+ def from_hash(hash)
26
+ super
27
+ if hash.has_key? 'maxAttempts'
28
+ @max_attempts = hash['maxAttempts']
29
+ end
30
+ if hash.has_key? 'maxDelay'
31
+ @max_delay = hash['maxDelay']
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -3,10 +3,13 @@
3
3
  #
4
4
  require 'onlinepayments/sdk/domain/data_object'
5
5
  require 'onlinepayments/sdk/domain/redirect_payment_product3203_specific_input'
6
+ require 'onlinepayments/sdk/domain/redirect_payment_product3204_specific_input'
6
7
  require 'onlinepayments/sdk/domain/redirect_payment_product3302_specific_input'
7
8
  require 'onlinepayments/sdk/domain/redirect_payment_product3306_specific_input'
8
9
  require 'onlinepayments/sdk/domain/redirect_payment_product5001_specific_input'
9
10
  require 'onlinepayments/sdk/domain/redirect_payment_product5300_specific_input'
11
+ require 'onlinepayments/sdk/domain/redirect_payment_product5402_specific_input'
12
+ require 'onlinepayments/sdk/domain/redirect_payment_product5403_specific_input'
10
13
  require 'onlinepayments/sdk/domain/redirect_payment_product5406_specific_input'
11
14
  require 'onlinepayments/sdk/domain/redirect_payment_product5408_specific_input'
12
15
  require 'onlinepayments/sdk/domain/redirect_payment_product5410_specific_input'
@@ -19,10 +22,13 @@ module OnlinePayments
19
22
  module Domain
20
23
  # @attr [String] payment_option
21
24
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3203SpecificInput] payment_product3203_specific_input
25
+ # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3204SpecificInput] payment_product3204_specific_input
22
26
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3302SpecificInput] payment_product3302_specific_input
23
27
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3306SpecificInput] payment_product3306_specific_input
24
28
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5001SpecificInput] payment_product5001_specific_input
25
29
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5300SpecificInput] payment_product5300_specific_input
30
+ # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5402SpecificInput] payment_product5402_specific_input
31
+ # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5403SpecificInput] payment_product5403_specific_input
26
32
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput] payment_product5406_specific_input
27
33
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5408SpecificInput] payment_product5408_specific_input
28
34
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5410SpecificInput] payment_product5410_specific_input
@@ -39,6 +45,8 @@ module OnlinePayments
39
45
 
40
46
  attr_accessor :payment_product3203_specific_input
41
47
 
48
+ attr_accessor :payment_product3204_specific_input
49
+
42
50
  attr_accessor :payment_product3302_specific_input
43
51
 
44
52
  attr_accessor :payment_product3306_specific_input
@@ -47,6 +55,10 @@ module OnlinePayments
47
55
 
48
56
  attr_accessor :payment_product5300_specific_input
49
57
 
58
+ attr_accessor :payment_product5402_specific_input
59
+
60
+ attr_accessor :payment_product5403_specific_input
61
+
50
62
  attr_accessor :payment_product5406_specific_input
51
63
 
52
64
  attr_accessor :payment_product5408_specific_input
@@ -72,10 +84,13 @@ module OnlinePayments
72
84
  hash = super
73
85
  hash['paymentOption'] = @payment_option unless @payment_option.nil?
74
86
  hash['paymentProduct3203SpecificInput'] = @payment_product3203_specific_input.to_h unless @payment_product3203_specific_input.nil?
87
+ hash['paymentProduct3204SpecificInput'] = @payment_product3204_specific_input.to_h unless @payment_product3204_specific_input.nil?
75
88
  hash['paymentProduct3302SpecificInput'] = @payment_product3302_specific_input.to_h unless @payment_product3302_specific_input.nil?
76
89
  hash['paymentProduct3306SpecificInput'] = @payment_product3306_specific_input.to_h unless @payment_product3306_specific_input.nil?
77
90
  hash['paymentProduct5001SpecificInput'] = @payment_product5001_specific_input.to_h unless @payment_product5001_specific_input.nil?
78
91
  hash['paymentProduct5300SpecificInput'] = @payment_product5300_specific_input.to_h unless @payment_product5300_specific_input.nil?
92
+ hash['paymentProduct5402SpecificInput'] = @payment_product5402_specific_input.to_h unless @payment_product5402_specific_input.nil?
93
+ hash['paymentProduct5403SpecificInput'] = @payment_product5403_specific_input.to_h unless @payment_product5403_specific_input.nil?
79
94
  hash['paymentProduct5406SpecificInput'] = @payment_product5406_specific_input.to_h unless @payment_product5406_specific_input.nil?
80
95
  hash['paymentProduct5408SpecificInput'] = @payment_product5408_specific_input.to_h unless @payment_product5408_specific_input.nil?
81
96
  hash['paymentProduct5410SpecificInput'] = @payment_product5410_specific_input.to_h unless @payment_product5410_specific_input.nil?
@@ -98,6 +113,10 @@ module OnlinePayments
98
113
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3203SpecificInput']] unless hash['paymentProduct3203SpecificInput'].is_a? Hash
99
114
  @payment_product3203_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3203SpecificInput.new_from_hash(hash['paymentProduct3203SpecificInput'])
100
115
  end
116
+ if hash.has_key? 'paymentProduct3204SpecificInput'
117
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3204SpecificInput']] unless hash['paymentProduct3204SpecificInput'].is_a? Hash
118
+ @payment_product3204_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3204SpecificInput.new_from_hash(hash['paymentProduct3204SpecificInput'])
119
+ end
101
120
  if hash.has_key? 'paymentProduct3302SpecificInput'
102
121
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3302SpecificInput']] unless hash['paymentProduct3302SpecificInput'].is_a? Hash
103
122
  @payment_product3302_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3302SpecificInput.new_from_hash(hash['paymentProduct3302SpecificInput'])
@@ -114,6 +133,14 @@ module OnlinePayments
114
133
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5300SpecificInput']] unless hash['paymentProduct5300SpecificInput'].is_a? Hash
115
134
  @payment_product5300_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5300SpecificInput.new_from_hash(hash['paymentProduct5300SpecificInput'])
116
135
  end
136
+ if hash.has_key? 'paymentProduct5402SpecificInput'
137
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5402SpecificInput']] unless hash['paymentProduct5402SpecificInput'].is_a? Hash
138
+ @payment_product5402_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5402SpecificInput.new_from_hash(hash['paymentProduct5402SpecificInput'])
139
+ end
140
+ if hash.has_key? 'paymentProduct5403SpecificInput'
141
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5403SpecificInput']] unless hash['paymentProduct5403SpecificInput'].is_a? Hash
142
+ @payment_product5403_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5403SpecificInput.new_from_hash(hash['paymentProduct5403SpecificInput'])
143
+ end
117
144
  if hash.has_key? 'paymentProduct5406SpecificInput'
118
145
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5406SpecificInput']] unless hash['paymentProduct5406SpecificInput'].is_a? Hash
119
146
  @payment_product5406_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput.new_from_hash(hash['paymentProduct5406SpecificInput'])
@@ -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 [String] blik_code
10
+ class RedirectPaymentProduct3204SpecificInput < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :blik_code
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['blikCode'] = @blik_code unless @blik_code.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'blikCode'
24
+ @blik_code = hash['blikCode']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -6,20 +6,27 @@ require 'onlinepayments/sdk/domain/data_object'
6
6
  module OnlinePayments
7
7
  module SDK
8
8
  module Domain
9
+ # @attr [String] exemption_request
9
10
  # @attr [String] subsequent_type
10
11
  class RedirectPaymentProduct5001SpecificInput < OnlinePayments::SDK::Domain::DataObject
11
12
 
13
+ attr_accessor :exemption_request
14
+
12
15
  attr_accessor :subsequent_type
13
16
 
14
17
  # @return (Hash)
15
18
  def to_h
16
19
  hash = super
20
+ hash['exemptionRequest'] = @exemption_request unless @exemption_request.nil?
17
21
  hash['subsequentType'] = @subsequent_type unless @subsequent_type.nil?
18
22
  hash
19
23
  end
20
24
 
21
25
  def from_hash(hash)
22
26
  super
27
+ if hash.has_key? 'exemptionRequest'
28
+ @exemption_request = hash['exemptionRequest']
29
+ end
23
30
  if hash.has_key? 'subsequentType'
24
31
  @subsequent_type = hash['subsequentType']
25
32
  end
@@ -1,8 +1,6 @@
1
1
  #
2
2
  # This file was automatically generated.
3
3
  #
4
- require 'date'
5
-
6
4
  require 'onlinepayments/sdk/domain/data_object'
7
5
 
8
6
  module OnlinePayments
@@ -13,7 +11,7 @@ module OnlinePayments
13
11
  # @attr [String] birth_zip_code
14
12
  # @attr [String] channel
15
13
  # @attr [String] loyalty_card_number
16
- # @attr [Date] second_installment_payment_date
14
+ # @attr [String] second_installment_payment_date
17
15
  # @attr [Integer] session_duration
18
16
  class RedirectPaymentProduct5300SpecificInput < OnlinePayments::SDK::Domain::DataObject
19
17
 
@@ -39,7 +37,7 @@ module OnlinePayments
39
37
  hash['birthZipCode'] = @birth_zip_code unless @birth_zip_code.nil?
40
38
  hash['channel'] = @channel unless @channel.nil?
41
39
  hash['loyaltyCardNumber'] = @loyalty_card_number unless @loyalty_card_number.nil?
42
- hash['secondInstallmentPaymentDate'] = @second_installment_payment_date.iso8601 unless @second_installment_payment_date.nil?
40
+ hash['secondInstallmentPaymentDate'] = @second_installment_payment_date unless @second_installment_payment_date.nil?
43
41
  hash['sessionDuration'] = @session_duration unless @session_duration.nil?
44
42
  hash
45
43
  end
@@ -62,7 +60,7 @@ module OnlinePayments
62
60
  @loyalty_card_number = hash['loyaltyCardNumber']
63
61
  end
64
62
  if hash.has_key? 'secondInstallmentPaymentDate'
65
- @second_installment_payment_date = Date.parse(hash['secondInstallmentPaymentDate'])
63
+ @second_installment_payment_date = hash['secondInstallmentPaymentDate']
66
64
  end
67
65
  if hash.has_key? 'sessionDuration'
68
66
  @session_duration = hash['sessionDuration']
@@ -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 RedirectPaymentProduct5402SpecificInput < 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 RedirectPaymentProduct5403SpecificInput < 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 [String] show_data
10
+ class ShowInstructionsData < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :show_data
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['showData'] = @show_data unless @show_data.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'showData'
24
+ @show_data = hash['showData']
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 = '5.0.0'
3
+ spec.version = '5.1.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: 5.0.0
4
+ version: 5.1.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: 2025-04-15 00:00:00.000000000 Z
11
+ date: 2025-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -372,14 +372,19 @@ files:
372
372
  - lib/onlinepayments/sdk/domain/protection_eligibility.rb
373
373
  - lib/onlinepayments/sdk/domain/range_validator.rb
374
374
  - lib/onlinepayments/sdk/domain/rate_details.rb
375
+ - lib/onlinepayments/sdk/domain/reattempt_instructions.rb
376
+ - lib/onlinepayments/sdk/domain/reattempt_instructions_conditions.rb
375
377
  - lib/onlinepayments/sdk/domain/redirect_data.rb
376
378
  - lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb
377
379
  - lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb
378
380
  - lib/onlinepayments/sdk/domain/redirect_payment_product3203_specific_input.rb
381
+ - lib/onlinepayments/sdk/domain/redirect_payment_product3204_specific_input.rb
379
382
  - lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb
380
383
  - lib/onlinepayments/sdk/domain/redirect_payment_product3306_specific_input.rb
381
384
  - lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb
382
385
  - lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb
386
+ - lib/onlinepayments/sdk/domain/redirect_payment_product5402_specific_input.rb
387
+ - lib/onlinepayments/sdk/domain/redirect_payment_product5403_specific_input.rb
383
388
  - lib/onlinepayments/sdk/domain/redirect_payment_product5406_specific_input.rb
384
389
  - lib/onlinepayments/sdk/domain/redirect_payment_product5408_specific_input.rb
385
390
  - lib/onlinepayments/sdk/domain/redirect_payment_product5410_specific_input.rb
@@ -411,6 +416,7 @@ files:
411
416
  - lib/onlinepayments/sdk/domain/shopping_cart.rb
412
417
  - lib/onlinepayments/sdk/domain/shopping_cart_extension.rb
413
418
  - lib/onlinepayments/sdk/domain/show_form_data.rb
419
+ - lib/onlinepayments/sdk/domain/show_instructions_data.rb
414
420
  - lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb
415
421
  - lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb
416
422
  - lib/onlinepayments/sdk/domain/subsequent_payment_request.rb