onlinepayments-sdk-ruby 5.1.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 (32) 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 +9 -0
  8. data/lib/onlinepayments/sdk/domain/click_to_pay.rb +30 -0
  9. data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +93 -0
  10. data/lib/onlinepayments/sdk/domain/iin_detail.rb +100 -0
  11. data/lib/onlinepayments/sdk/domain/mobile_payment_product320_specific_input.rb +23 -0
  12. data/lib/onlinepayments/sdk/domain/network_token_data.rb +65 -0
  13. data/lib/onlinepayments/sdk/domain/operation_payment_references.rb +7 -0
  14. data/lib/onlinepayments/sdk/domain/order_references.rb +7 -0
  15. data/lib/onlinepayments/sdk/domain/payment_link_order_input.rb +1 -0
  16. data/lib/onlinepayments/sdk/domain/payment_product3204_specific_output.rb +30 -0
  17. data/lib/onlinepayments/sdk/domain/payment_product5001.rb +37 -0
  18. data/lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb +9 -0
  19. data/lib/onlinepayments/sdk/domain/payment_references.rb +7 -0
  20. data/lib/onlinepayments/sdk/domain/product320_recurring.rb +30 -0
  21. data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +9 -0
  22. data/lib/onlinepayments/sdk/domain/redirect_payment_product3204_specific_input.rb +7 -0
  23. data/lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb +1 -0
  24. data/lib/onlinepayments/sdk/domain/refund_request.rb +7 -0
  25. data/lib/onlinepayments/sdk/domain/revoke_mandate_request.rb +30 -0
  26. data/lib/onlinepayments/sdk/domain/show_form_data.rb +9 -0
  27. data/lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb +7 -0
  28. data/lib/onlinepayments/sdk/merchant/mandates/mandates_client.rb +3 -2
  29. data/lib/onlinepayments/sdk/merchant/productgroups/get_product_group_params.rb +1 -0
  30. data/lib/onlinepayments/sdk/merchant/productgroups/get_product_groups_params.rb +1 -0
  31. data/onlinepayments-sdk-ruby.gemspec +1 -1
  32. metadata +8 -2
@@ -0,0 +1,65 @@
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] cardholder_name
10
+ # @attr [String] cryptogram
11
+ # @attr [Integer] eci
12
+ # @attr [String] network_token
13
+ # @attr [String] scheme_token_requestor_id
14
+ # @attr [String] token_expiry_date
15
+ class NetworkTokenData < OnlinePayments::SDK::Domain::DataObject
16
+
17
+ attr_accessor :cardholder_name
18
+
19
+ attr_accessor :cryptogram
20
+
21
+ attr_accessor :eci
22
+
23
+ attr_accessor :network_token
24
+
25
+ attr_accessor :scheme_token_requestor_id
26
+
27
+ attr_accessor :token_expiry_date
28
+
29
+ # @return (Hash)
30
+ def to_h
31
+ hash = super
32
+ hash['cardholderName'] = @cardholder_name unless @cardholder_name.nil?
33
+ hash['cryptogram'] = @cryptogram unless @cryptogram.nil?
34
+ hash['eci'] = @eci unless @eci.nil?
35
+ hash['networkToken'] = @network_token unless @network_token.nil?
36
+ hash['schemeTokenRequestorId'] = @scheme_token_requestor_id unless @scheme_token_requestor_id.nil?
37
+ hash['tokenExpiryDate'] = @token_expiry_date unless @token_expiry_date.nil?
38
+ hash
39
+ end
40
+
41
+ def from_hash(hash)
42
+ super
43
+ if hash.has_key? 'cardholderName'
44
+ @cardholder_name = hash['cardholderName']
45
+ end
46
+ if hash.has_key? 'cryptogram'
47
+ @cryptogram = hash['cryptogram']
48
+ end
49
+ if hash.has_key? 'eci'
50
+ @eci = hash['eci']
51
+ end
52
+ if hash.has_key? 'networkToken'
53
+ @network_token = hash['networkToken']
54
+ end
55
+ if hash.has_key? 'schemeTokenRequestorId'
56
+ @scheme_token_requestor_id = hash['schemeTokenRequestorId']
57
+ end
58
+ if hash.has_key? 'tokenExpiryDate'
59
+ @token_expiry_date = hash['tokenExpiryDate']
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -7,14 +7,18 @@ module OnlinePayments
7
7
  module SDK
8
8
  module Domain
9
9
  # @attr [String] merchant_reference
10
+ # @attr [String] operation_group_reference
10
11
  class OperationPaymentReferences < OnlinePayments::SDK::Domain::DataObject
11
12
 
12
13
  attr_accessor :merchant_reference
13
14
 
15
+ attr_accessor :operation_group_reference
16
+
14
17
  # @return (Hash)
15
18
  def to_h
16
19
  hash = super
17
20
  hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
21
+ hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil?
18
22
  hash
19
23
  end
20
24
 
@@ -23,6 +27,9 @@ module OnlinePayments
23
27
  if hash.has_key? 'merchantReference'
24
28
  @merchant_reference = hash['merchantReference']
25
29
  end
30
+ if hash.has_key? 'operationGroupReference'
31
+ @operation_group_reference = hash['operationGroupReference']
32
+ end
26
33
  end
27
34
  end
28
35
  end
@@ -9,6 +9,7 @@ module OnlinePayments
9
9
  # @attr [String] descriptor
10
10
  # @attr [String] merchant_parameters
11
11
  # @attr [String] merchant_reference
12
+ # @attr [String] operation_group_reference
12
13
  class OrderReferences < OnlinePayments::SDK::Domain::DataObject
13
14
 
14
15
  attr_accessor :descriptor
@@ -17,12 +18,15 @@ module OnlinePayments
17
18
 
18
19
  attr_accessor :merchant_reference
19
20
 
21
+ attr_accessor :operation_group_reference
22
+
20
23
  # @return (Hash)
21
24
  def to_h
22
25
  hash = super
23
26
  hash['descriptor'] = @descriptor unless @descriptor.nil?
24
27
  hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.nil?
25
28
  hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
29
+ hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil?
26
30
  hash
27
31
  end
28
32
 
@@ -37,6 +41,9 @@ module OnlinePayments
37
41
  if hash.has_key? 'merchantReference'
38
42
  @merchant_reference = hash['merchantReference']
39
43
  end
44
+ if hash.has_key? 'operationGroupReference'
45
+ @operation_group_reference = hash['operationGroupReference']
46
+ end
40
47
  end
41
48
  end
42
49
  end
@@ -11,6 +11,7 @@ module OnlinePayments
11
11
  # @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount
12
12
  # @attr [String] merchant_reference
13
13
  # @attr [OnlinePayments::SDK::Domain::SurchargeForPaymentLink] surcharge_specific_input
14
+ # @deprecated An object containing the details of the related payment input. All properties in paymentLinkOrder are deprecated. Use corresponding values as noted below: | Property | Replacement | | - | - | | merchantReference | references/merchantReference | | amount | order/amountOfMoney | | surchargeSpecificInput | order/surchargeSpecificInput |
14
15
  class PaymentLinkOrderInput < OnlinePayments::SDK::Domain::DataObject
15
16
 
16
17
  attr_accessor :amount
@@ -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] banking_app_label
10
+ class PaymentProduct3204SpecificOutput < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :banking_app_label
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['bankingAppLabel'] = @banking_app_label unless @banking_app_label.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'bankingAppLabel'
24
+ @banking_app_label = hash['bankingAppLabel']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ 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] message
10
+ # @attr [String] polling_url
11
+ class PaymentProduct5001 < OnlinePayments::SDK::Domain::DataObject
12
+
13
+ attr_accessor :message
14
+
15
+ attr_accessor :polling_url
16
+
17
+ # @return (Hash)
18
+ def to_h
19
+ hash = super
20
+ hash['message'] = @message unless @message.nil?
21
+ hash['pollingUrl'] = @polling_url unless @polling_url.nil?
22
+ hash
23
+ end
24
+
25
+ def from_hash(hash)
26
+ super
27
+ if hash.has_key? 'message'
28
+ @message = hash['message']
29
+ end
30
+ if hash.has_key? 'pollingUrl'
31
+ @polling_url = hash['pollingUrl']
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -2,6 +2,7 @@
2
2
  # This file was automatically generated.
3
3
  #
4
4
  require 'onlinepayments/sdk/domain/address'
5
+ require 'onlinepayments/sdk/domain/address_personal'
5
6
  require 'onlinepayments/sdk/domain/data_object'
6
7
  require 'onlinepayments/sdk/domain/payment_product840_customer_account'
7
8
  require 'onlinepayments/sdk/domain/protection_eligibility'
@@ -10,6 +11,7 @@ module OnlinePayments
10
11
  module SDK
11
12
  module Domain
12
13
  # @attr [OnlinePayments::SDK::Domain::Address] billing_address
14
+ # @attr [OnlinePayments::SDK::Domain::AddressPersonal] billing_personal_address
13
15
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct840CustomerAccount] customer_account
14
16
  # @attr [OnlinePayments::SDK::Domain::Address] customer_address
15
17
  # @attr [OnlinePayments::SDK::Domain::ProtectionEligibility] protection_eligibility
@@ -17,6 +19,8 @@ module OnlinePayments
17
19
 
18
20
  attr_accessor :billing_address
19
21
 
22
+ attr_accessor :billing_personal_address
23
+
20
24
  attr_accessor :customer_account
21
25
 
22
26
  attr_accessor :customer_address
@@ -27,6 +31,7 @@ module OnlinePayments
27
31
  def to_h
28
32
  hash = super
29
33
  hash['billingAddress'] = @billing_address.to_h unless @billing_address.nil?
34
+ hash['billingPersonalAddress'] = @billing_personal_address.to_h unless @billing_personal_address.nil?
30
35
  hash['customerAccount'] = @customer_account.to_h unless @customer_account.nil?
31
36
  hash['customerAddress'] = @customer_address.to_h unless @customer_address.nil?
32
37
  hash['protectionEligibility'] = @protection_eligibility.to_h unless @protection_eligibility.nil?
@@ -39,6 +44,10 @@ module OnlinePayments
39
44
  raise TypeError, "value '%s' is not a Hash" % [hash['billingAddress']] unless hash['billingAddress'].is_a? Hash
40
45
  @billing_address = OnlinePayments::SDK::Domain::Address.new_from_hash(hash['billingAddress'])
41
46
  end
47
+ if hash.has_key? 'billingPersonalAddress'
48
+ raise TypeError, "value '%s' is not a Hash" % [hash['billingPersonalAddress']] unless hash['billingPersonalAddress'].is_a? Hash
49
+ @billing_personal_address = OnlinePayments::SDK::Domain::AddressPersonal.new_from_hash(hash['billingPersonalAddress'])
50
+ end
42
51
  if hash.has_key? 'customerAccount'
43
52
  raise TypeError, "value '%s' is not a Hash" % [hash['customerAccount']] unless hash['customerAccount'].is_a? Hash
44
53
  @customer_account = OnlinePayments::SDK::Domain::PaymentProduct840CustomerAccount.new_from_hash(hash['customerAccount'])
@@ -8,17 +8,21 @@ module OnlinePayments
8
8
  module Domain
9
9
  # @attr [String] merchant_parameters
10
10
  # @attr [String] merchant_reference
11
+ # @attr [String] operation_group_reference
11
12
  class PaymentReferences < OnlinePayments::SDK::Domain::DataObject
12
13
 
13
14
  attr_accessor :merchant_parameters
14
15
 
15
16
  attr_accessor :merchant_reference
16
17
 
18
+ attr_accessor :operation_group_reference
19
+
17
20
  # @return (Hash)
18
21
  def to_h
19
22
  hash = super
20
23
  hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.nil?
21
24
  hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
25
+ hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil?
22
26
  hash
23
27
  end
24
28
 
@@ -30,6 +34,9 @@ module OnlinePayments
30
34
  if hash.has_key? 'merchantReference'
31
35
  @merchant_reference = hash['merchantReference']
32
36
  end
37
+ if hash.has_key? 'operationGroupReference'
38
+ @operation_group_reference = hash['operationGroupReference']
39
+ end
33
40
  end
34
41
  end
35
42
  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] recurring_payment_sequence_indicator
10
+ class Product320Recurring < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :recurring_payment_sequence_indicator
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['recurringPaymentSequenceIndicator'] = @recurring_payment_sequence_indicator unless @recurring_payment_sequence_indicator.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'recurringPaymentSequenceIndicator'
24
+ @recurring_payment_sequence_indicator = hash['recurringPaymentSequenceIndicator']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -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
@@ -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] alias_label
9
10
  # @attr [String] blik_code
10
11
  class RedirectPaymentProduct3204SpecificInput < OnlinePayments::SDK::Domain::DataObject
11
12
 
13
+ attr_accessor :alias_label
14
+
12
15
  attr_accessor :blik_code
13
16
 
14
17
  # @return (Hash)
15
18
  def to_h
16
19
  hash = super
20
+ hash['aliasLabel'] = @alias_label unless @alias_label.nil?
17
21
  hash['blikCode'] = @blik_code unless @blik_code.nil?
18
22
  hash
19
23
  end
20
24
 
21
25
  def from_hash(hash)
22
26
  super
27
+ if hash.has_key? 'aliasLabel'
28
+ @alias_label = hash['aliasLabel']
29
+ end
23
30
  if hash.has_key? 'blikCode'
24
31
  @blik_code = hash['blikCode']
25
32
  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'])
@@ -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.1.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.1.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-05-22 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,6 +372,7 @@ 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
@@ -403,6 +408,7 @@ files:
403
408
  - lib/onlinepayments/sdk/domain/refund_response.rb
404
409
  - lib/onlinepayments/sdk/domain/refunds_response.rb
405
410
  - lib/onlinepayments/sdk/domain/regular_expression_validator.rb
411
+ - lib/onlinepayments/sdk/domain/revoke_mandate_request.rb
406
412
  - lib/onlinepayments/sdk/domain/send_test_request.rb
407
413
  - lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input.rb
408
414
  - lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input_base.rb