onlinepayments-sdk-ruby 5.0.0 → 6.0.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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/lib/onlinepayments/sdk/communication/metadata_provider.rb +1 -1
  3. data/lib/onlinepayments/sdk/domain/account_on_file.rb +1 -1
  4. data/lib/onlinepayments/sdk/domain/cancel_payment_request.rb +9 -0
  5. data/lib/onlinepayments/sdk/domain/card_essentials.rb +100 -0
  6. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +9 -0
  7. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb +18 -0
  8. data/lib/onlinepayments/sdk/domain/click_to_pay.rb +30 -0
  9. data/lib/onlinepayments/sdk/domain/create_payment_link_request.rb +7 -0
  10. data/lib/onlinepayments/sdk/domain/feedbacks.rb +12 -0
  11. data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +93 -0
  12. data/lib/onlinepayments/sdk/domain/iin_detail.rb +100 -0
  13. data/lib/onlinepayments/sdk/domain/merchant_action.rb +9 -0
  14. data/lib/onlinepayments/sdk/domain/mobile_payment_product320_specific_input.rb +23 -0
  15. data/lib/onlinepayments/sdk/domain/network_token_data.rb +65 -0
  16. data/lib/onlinepayments/sdk/domain/operation_payment_references.rb +7 -0
  17. data/lib/onlinepayments/sdk/domain/order_references.rb +7 -0
  18. data/lib/onlinepayments/sdk/domain/payment_link_order_input.rb +1 -0
  19. data/lib/onlinepayments/sdk/domain/payment_link_response.rb +7 -0
  20. data/lib/onlinepayments/sdk/domain/payment_product3204_specific_output.rb +30 -0
  21. data/lib/onlinepayments/sdk/domain/payment_product5001.rb +37 -0
  22. data/lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb +9 -0
  23. data/lib/onlinepayments/sdk/domain/payment_references.rb +7 -0
  24. data/lib/onlinepayments/sdk/domain/product320_recurring.rb +30 -0
  25. data/lib/onlinepayments/sdk/domain/reattempt_instructions.rb +46 -0
  26. data/lib/onlinepayments/sdk/domain/reattempt_instructions_conditions.rb +37 -0
  27. data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +27 -0
  28. data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +9 -0
  29. data/lib/onlinepayments/sdk/domain/redirect_payment_product3204_specific_input.rb +37 -0
  30. data/lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb +7 -0
  31. data/lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb +3 -5
  32. data/lib/onlinepayments/sdk/domain/redirect_payment_product5402_specific_input.rb +30 -0
  33. data/lib/onlinepayments/sdk/domain/redirect_payment_product5403_specific_input.rb +30 -0
  34. data/lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb +1 -0
  35. data/lib/onlinepayments/sdk/domain/refund_request.rb +7 -0
  36. data/lib/onlinepayments/sdk/domain/revoke_mandate_request.rb +30 -0
  37. data/lib/onlinepayments/sdk/domain/show_form_data.rb +9 -0
  38. data/lib/onlinepayments/sdk/domain/show_instructions_data.rb +30 -0
  39. data/lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb +7 -0
  40. data/lib/onlinepayments/sdk/merchant/mandates/mandates_client.rb +3 -2
  41. data/lib/onlinepayments/sdk/merchant/productgroups/get_product_group_params.rb +1 -0
  42. data/lib/onlinepayments/sdk/merchant/productgroups/get_product_groups_params.rb +1 -0
  43. data/onlinepayments-sdk-ruby.gemspec +1 -1
  44. metadata +14 -2
@@ -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'])
@@ -5,6 +5,7 @@ require 'onlinepayments/sdk/domain/customer_bank_account'
5
5
  require 'onlinepayments/sdk/domain/data_object'
6
6
  require 'onlinepayments/sdk/domain/fraud_results'
7
7
  require 'onlinepayments/sdk/domain/payment_product3203_specific_output'
8
+ require 'onlinepayments/sdk/domain/payment_product3204_specific_output'
8
9
  require 'onlinepayments/sdk/domain/payment_product5001_specific_output'
9
10
  require 'onlinepayments/sdk/domain/payment_product5402_specific_output'
10
11
  require 'onlinepayments/sdk/domain/payment_product5500_specific_output'
@@ -16,6 +17,7 @@ module OnlinePayments
16
17
  # @attr [String] authorisation_code
17
18
  # @attr [OnlinePayments::SDK::Domain::CustomerBankAccount] customer_bank_account
18
19
  # @attr [OnlinePayments::SDK::Domain::FraudResults] fraud_results
20
+ # @attr [OnlinePayments::SDK::Domain::PaymentProduct3204SpecificOutput] payment_method3204_specific_output
19
21
  # @attr [String] payment_option
20
22
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct3203SpecificOutput] payment_product3203_specific_output
21
23
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5001SpecificOutput] payment_product5001_specific_output
@@ -32,6 +34,8 @@ module OnlinePayments
32
34
 
33
35
  attr_accessor :fraud_results
34
36
 
37
+ attr_accessor :payment_method3204_specific_output
38
+
35
39
  attr_accessor :payment_option
36
40
 
37
41
  attr_accessor :payment_product3203_specific_output
@@ -54,6 +58,7 @@ module OnlinePayments
54
58
  hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
55
59
  hash['customerBankAccount'] = @customer_bank_account.to_h unless @customer_bank_account.nil?
56
60
  hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
61
+ hash['paymentMethod3204SpecificOutput'] = @payment_method3204_specific_output.to_h unless @payment_method3204_specific_output.nil?
57
62
  hash['paymentOption'] = @payment_option unless @payment_option.nil?
58
63
  hash['paymentProduct3203SpecificOutput'] = @payment_product3203_specific_output.to_h unless @payment_product3203_specific_output.nil?
59
64
  hash['paymentProduct5001SpecificOutput'] = @payment_product5001_specific_output.to_h unless @payment_product5001_specific_output.nil?
@@ -78,6 +83,10 @@ module OnlinePayments
78
83
  raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']] unless hash['fraudResults'].is_a? Hash
79
84
  @fraud_results = OnlinePayments::SDK::Domain::FraudResults.new_from_hash(hash['fraudResults'])
80
85
  end
86
+ if hash.has_key? 'paymentMethod3204SpecificOutput'
87
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentMethod3204SpecificOutput']] unless hash['paymentMethod3204SpecificOutput'].is_a? Hash
88
+ @payment_method3204_specific_output = OnlinePayments::SDK::Domain::PaymentProduct3204SpecificOutput.new_from_hash(hash['paymentMethod3204SpecificOutput'])
89
+ end
81
90
  if hash.has_key? 'paymentOption'
82
91
  @payment_option = hash['paymentOption']
83
92
  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 [String] alias_label
10
+ # @attr [String] blik_code
11
+ class RedirectPaymentProduct3204SpecificInput < OnlinePayments::SDK::Domain::DataObject
12
+
13
+ attr_accessor :alias_label
14
+
15
+ attr_accessor :blik_code
16
+
17
+ # @return (Hash)
18
+ def to_h
19
+ hash = super
20
+ hash['aliasLabel'] = @alias_label unless @alias_label.nil?
21
+ hash['blikCode'] = @blik_code unless @blik_code.nil?
22
+ hash
23
+ end
24
+
25
+ def from_hash(hash)
26
+ super
27
+ if hash.has_key? 'aliasLabel'
28
+ @alias_label = hash['aliasLabel']
29
+ end
30
+ if hash.has_key? 'blikCode'
31
+ @blik_code = hash['blikCode']
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ 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
@@ -7,6 +7,7 @@ module OnlinePayments
7
7
  module SDK
8
8
  module Domain
9
9
  # @attr [String] issuer_id
10
+ # @deprecated Deprecated, this is no longer used.
10
11
  class RedirectPaymentProduct809SpecificInput < OnlinePayments::SDK::Domain::DataObject
11
12
 
12
13
  attr_accessor :issuer_id
@@ -12,6 +12,7 @@ module OnlinePayments
12
12
  # @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount_of_money
13
13
  # @attr [String] capture_id
14
14
  # @attr [OnlinePayments::SDK::Domain::OperationPaymentReferences] operation_references
15
+ # @attr [String] reason
15
16
  # @attr [OnlinePayments::SDK::Domain::PaymentReferences] references
16
17
  class RefundRequest < OnlinePayments::SDK::Domain::DataObject
17
18
 
@@ -21,6 +22,8 @@ module OnlinePayments
21
22
 
22
23
  attr_accessor :operation_references
23
24
 
25
+ attr_accessor :reason
26
+
24
27
  attr_accessor :references
25
28
 
26
29
  # @return (Hash)
@@ -29,6 +32,7 @@ module OnlinePayments
29
32
  hash['amountOfMoney'] = @amount_of_money.to_h unless @amount_of_money.nil?
30
33
  hash['captureId'] = @capture_id unless @capture_id.nil?
31
34
  hash['operationReferences'] = @operation_references.to_h unless @operation_references.nil?
35
+ hash['reason'] = @reason unless @reason.nil?
32
36
  hash['references'] = @references.to_h unless @references.nil?
33
37
  hash
34
38
  end
@@ -46,6 +50,9 @@ module OnlinePayments
46
50
  raise TypeError, "value '%s' is not a Hash" % [hash['operationReferences']] unless hash['operationReferences'].is_a? Hash
47
51
  @operation_references = OnlinePayments::SDK::Domain::OperationPaymentReferences.new_from_hash(hash['operationReferences'])
48
52
  end
53
+ if hash.has_key? 'reason'
54
+ @reason = hash['reason']
55
+ end
49
56
  if hash.has_key? 'references'
50
57
  raise TypeError, "value '%s' is not a Hash" % [hash['references']] unless hash['references'].is_a? Hash
51
58
  @references = OnlinePayments::SDK::Domain::PaymentReferences.new_from_hash(hash['references'])
@@ -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] revocation_reason
10
+ class RevokeMandateRequest < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :revocation_reason
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['revocationReason'] = @revocation_reason unless @revocation_reason.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'revocationReason'
24
+ @revocation_reason = hash['revocationReason']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -3,6 +3,7 @@
3
3
  #
4
4
  require 'onlinepayments/sdk/domain/data_object'
5
5
  require 'onlinepayments/sdk/domain/payment_product3012'
6
+ require 'onlinepayments/sdk/domain/payment_product5001'
6
7
  require 'onlinepayments/sdk/domain/payment_product5404'
7
8
  require 'onlinepayments/sdk/domain/payment_product5407'
8
9
 
@@ -10,12 +11,15 @@ module OnlinePayments
10
11
  module SDK
11
12
  module Domain
12
13
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct3012] payment_product3012
14
+ # @attr [OnlinePayments::SDK::Domain::PaymentProduct5001] payment_product5001
13
15
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5404] payment_product5404
14
16
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5407] payment_product5407
15
17
  class ShowFormData < OnlinePayments::SDK::Domain::DataObject
16
18
 
17
19
  attr_accessor :payment_product3012
18
20
 
21
+ attr_accessor :payment_product5001
22
+
19
23
  attr_accessor :payment_product5404
20
24
 
21
25
  attr_accessor :payment_product5407
@@ -24,6 +28,7 @@ module OnlinePayments
24
28
  def to_h
25
29
  hash = super
26
30
  hash['paymentProduct3012'] = @payment_product3012.to_h unless @payment_product3012.nil?
31
+ hash['paymentProduct5001'] = @payment_product5001.to_h unless @payment_product5001.nil?
27
32
  hash['paymentProduct5404'] = @payment_product5404.to_h unless @payment_product5404.nil?
28
33
  hash['paymentProduct5407'] = @payment_product5407.to_h unless @payment_product5407.nil?
29
34
  hash
@@ -35,6 +40,10 @@ module OnlinePayments
35
40
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3012']] unless hash['paymentProduct3012'].is_a? Hash
36
41
  @payment_product3012 = OnlinePayments::SDK::Domain::PaymentProduct3012.new_from_hash(hash['paymentProduct3012'])
37
42
  end
43
+ if hash.has_key? 'paymentProduct5001'
44
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5001']] unless hash['paymentProduct5001'].is_a? Hash
45
+ @payment_product5001 = OnlinePayments::SDK::Domain::PaymentProduct5001.new_from_hash(hash['paymentProduct5001'])
46
+ end
38
47
  if hash.has_key? 'paymentProduct5404'
39
48
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5404']] unless hash['paymentProduct5404'].is_a? Hash
40
49
  @payment_product5404 = OnlinePayments::SDK::Domain::PaymentProduct5404.new_from_hash(hash['paymentProduct5404'])
@@ -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
@@ -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] authorization_mode
9
10
  # @attr [String] subsequent_type
10
11
  class SubsequentPaymentProduct5001SpecificInput < OnlinePayments::SDK::Domain::DataObject
11
12
 
13
+ attr_accessor :authorization_mode
14
+
12
15
  attr_accessor :subsequent_type
13
16
 
14
17
  # @return (Hash)
15
18
  def to_h
16
19
  hash = super
20
+ hash['authorizationMode'] = @authorization_mode unless @authorization_mode.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? 'authorizationMode'
28
+ @authorization_mode = hash['authorizationMode']
29
+ end
23
30
  if hash.has_key? 'subsequentType'
24
31
  @subsequent_type = hash['subsequentType']
25
32
  end
@@ -148,6 +148,7 @@ module OnlinePayments
148
148
  # Resource /v2/!{merchantId}/mandates/!{uniqueMandateReference}/revoke - Revoke mandate
149
149
  #
150
150
  # @param unique_mandate_reference [String]
151
+ # @param body [OnlinePayments::SDK::Domain::RevokeMandateRequest]
151
152
  # @param context [OnlinePayments::SDK::CallContext, nil]
152
153
  # @return [OnlinePayments::SDK::Domain::GetMandateResponse]
153
154
  # @raise [OnlinePayments::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
@@ -159,7 +160,7 @@ module OnlinePayments
159
160
  # the payment platform was unable to process a message from a downstream partner/acquirer,
160
161
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
161
162
  # @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
162
- def revoke_mandate(unique_mandate_reference, context = nil)
163
+ def revoke_mandate(unique_mandate_reference, body, context = nil)
163
164
  path_context = {
164
165
  'uniqueMandateReference'.freeze => unique_mandate_reference,
165
166
  }
@@ -168,7 +169,7 @@ module OnlinePayments
168
169
  uri,
169
170
  client_headers,
170
171
  nil,
171
- nil,
172
+ body,
172
173
  OnlinePayments::SDK::Domain::GetMandateResponse,
173
174
  context)
174
175
  rescue OnlinePayments::SDK::Communication::ResponseException => e
@@ -22,6 +22,7 @@ module OnlinePayments
22
22
 
23
23
  attr_accessor :currency_code
24
24
 
25
+ # @deprecated This field has no effect.
25
26
  attr_accessor :locale
26
27
 
27
28
  attr_accessor :amount
@@ -22,6 +22,7 @@ module OnlinePayments
22
22
 
23
23
  attr_accessor :currency_code
24
24
 
25
+ # @deprecated This field has no effect.
25
26
  attr_accessor :locale
26
27
 
27
28
  attr_accessor :amount
@@ -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 = '6.0.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: 6.0.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-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -211,6 +211,7 @@ files:
211
211
  - lib/onlinepayments/sdk/domain/card_recurrence_details.rb
212
212
  - lib/onlinepayments/sdk/domain/card_source.rb
213
213
  - lib/onlinepayments/sdk/domain/card_without_cvv.rb
214
+ - lib/onlinepayments/sdk/domain/click_to_pay.rb
214
215
  - lib/onlinepayments/sdk/domain/company_information.rb
215
216
  - lib/onlinepayments/sdk/domain/complete_payment_card_payment_method_specific_input.rb
216
217
  - lib/onlinepayments/sdk/domain/complete_payment_request.rb
@@ -301,6 +302,7 @@ files:
301
302
  - lib/onlinepayments/sdk/domain/mobile_payment_product320_specific_input.rb
302
303
  - lib/onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters.rb
303
304
  - lib/onlinepayments/sdk/domain/multiple_payment_information.rb
305
+ - lib/onlinepayments/sdk/domain/network_token_data.rb
304
306
  - lib/onlinepayments/sdk/domain/omnichannel_payout_specific_input.rb
305
307
  - lib/onlinepayments/sdk/domain/operation_output.rb
306
308
  - lib/onlinepayments/sdk/domain/operation_payment_references.rb
@@ -328,11 +330,13 @@ files:
328
330
  - lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb
329
331
  - lib/onlinepayments/sdk/domain/payment_product302_specific_data.rb
330
332
  - lib/onlinepayments/sdk/domain/payment_product3203_specific_output.rb
333
+ - lib/onlinepayments/sdk/domain/payment_product3204_specific_output.rb
331
334
  - lib/onlinepayments/sdk/domain/payment_product3208_specific_input.rb
332
335
  - lib/onlinepayments/sdk/domain/payment_product3208_specific_output.rb
333
336
  - lib/onlinepayments/sdk/domain/payment_product3209_specific_input.rb
334
337
  - lib/onlinepayments/sdk/domain/payment_product3209_specific_output.rb
335
338
  - lib/onlinepayments/sdk/domain/payment_product320_specific_data.rb
339
+ - lib/onlinepayments/sdk/domain/payment_product5001.rb
336
340
  - lib/onlinepayments/sdk/domain/payment_product5001_specific_output.rb
337
341
  - lib/onlinepayments/sdk/domain/payment_product5100_specific_input.rb
338
342
  - lib/onlinepayments/sdk/domain/payment_product5402_specific_output.rb
@@ -368,18 +372,24 @@ files:
368
372
  - lib/onlinepayments/sdk/domain/personal_information_token.rb
369
373
  - lib/onlinepayments/sdk/domain/personal_name.rb
370
374
  - lib/onlinepayments/sdk/domain/personal_name_token.rb
375
+ - lib/onlinepayments/sdk/domain/product320_recurring.rb
371
376
  - lib/onlinepayments/sdk/domain/product_directory.rb
372
377
  - lib/onlinepayments/sdk/domain/protection_eligibility.rb
373
378
  - lib/onlinepayments/sdk/domain/range_validator.rb
374
379
  - lib/onlinepayments/sdk/domain/rate_details.rb
380
+ - lib/onlinepayments/sdk/domain/reattempt_instructions.rb
381
+ - lib/onlinepayments/sdk/domain/reattempt_instructions_conditions.rb
375
382
  - lib/onlinepayments/sdk/domain/redirect_data.rb
376
383
  - lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb
377
384
  - lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb
378
385
  - lib/onlinepayments/sdk/domain/redirect_payment_product3203_specific_input.rb
386
+ - lib/onlinepayments/sdk/domain/redirect_payment_product3204_specific_input.rb
379
387
  - lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb
380
388
  - lib/onlinepayments/sdk/domain/redirect_payment_product3306_specific_input.rb
381
389
  - lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb
382
390
  - lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb
391
+ - lib/onlinepayments/sdk/domain/redirect_payment_product5402_specific_input.rb
392
+ - lib/onlinepayments/sdk/domain/redirect_payment_product5403_specific_input.rb
383
393
  - lib/onlinepayments/sdk/domain/redirect_payment_product5406_specific_input.rb
384
394
  - lib/onlinepayments/sdk/domain/redirect_payment_product5408_specific_input.rb
385
395
  - lib/onlinepayments/sdk/domain/redirect_payment_product5410_specific_input.rb
@@ -398,6 +408,7 @@ files:
398
408
  - lib/onlinepayments/sdk/domain/refund_response.rb
399
409
  - lib/onlinepayments/sdk/domain/refunds_response.rb
400
410
  - lib/onlinepayments/sdk/domain/regular_expression_validator.rb
411
+ - lib/onlinepayments/sdk/domain/revoke_mandate_request.rb
401
412
  - lib/onlinepayments/sdk/domain/send_test_request.rb
402
413
  - lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input.rb
403
414
  - lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input_base.rb
@@ -411,6 +422,7 @@ files:
411
422
  - lib/onlinepayments/sdk/domain/shopping_cart.rb
412
423
  - lib/onlinepayments/sdk/domain/shopping_cart_extension.rb
413
424
  - lib/onlinepayments/sdk/domain/show_form_data.rb
425
+ - lib/onlinepayments/sdk/domain/show_instructions_data.rb
414
426
  - lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb
415
427
  - lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb
416
428
  - lib/onlinepayments/sdk/domain/subsequent_payment_request.rb