onlinepayments-sdk-ruby 4.22.0 → 4.23.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/domain/address_personal.rb +4 -0
  3. data/lib/onlinepayments/sdk/domain/card_essentials.rb +0 -4
  4. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +8 -16
  5. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb +8 -8
  6. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb +0 -8
  7. data/lib/onlinepayments/sdk/domain/create_hosted_checkout_request.rb +0 -8
  8. data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_request.rb +0 -8
  9. data/lib/onlinepayments/sdk/domain/create_payment_request.rb +0 -12
  10. data/lib/onlinepayments/sdk/domain/mandate_address_response.rb +42 -0
  11. data/lib/onlinepayments/sdk/domain/mandate_customer_response.rb +58 -0
  12. data/lib/onlinepayments/sdk/domain/mandate_personal_information_response.rb +34 -0
  13. data/lib/onlinepayments/sdk/domain/mandate_personal_name_response.rb +30 -0
  14. data/lib/onlinepayments/sdk/domain/mandate_response.rb +7 -3
  15. data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_output.rb +0 -8
  16. data/lib/onlinepayments/sdk/domain/multiple_payment_information.rb +30 -0
  17. data/lib/onlinepayments/sdk/domain/payment_product3203_specific_output.rb +37 -0
  18. data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +8 -0
  19. data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +8 -0
  20. data/lib/onlinepayments/sdk/domain/redirect_payment_product3203_specific_input.rb +26 -0
  21. data/lib/onlinepayments/sdk/domain/show_form_data.rb +0 -8
  22. data/lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb +4 -0
  23. data/lib/onlinepayments/sdk/domain/three_d_secure.rb +0 -24
  24. data/lib/onlinepayments/sdk/domain/three_d_secure_base.rb +4 -24
  25. data/onlinepayments-sdk-ruby.gemspec +1 -1
  26. metadata +9 -8
  27. data/lib/onlinepayments/sdk/domain/network_token_essentials.rb +0 -38
  28. data/lib/onlinepayments/sdk/domain/page_customization.rb +0 -26
  29. data/lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb +0 -38
  30. data/lib/onlinepayments/sdk/domain/payment_product5002_specific_input.rb +0 -34
  31. data/lib/onlinepayments/sdk/domain/payment_product840.rb +0 -26
  32. data/lib/onlinepayments/sdk/domain/three_ds_whitelist.rb +0 -30
@@ -2,7 +2,6 @@
2
2
  # This class was auto-generated.
3
3
  #
4
4
  require 'onlinepayments/sdk/data_object'
5
- require 'onlinepayments/sdk/domain/acquirer_information'
6
5
  require 'onlinepayments/sdk/domain/card_fraud_results'
7
6
  require 'onlinepayments/sdk/domain/mobile_payment_data'
8
7
  require 'onlinepayments/sdk/domain/three_d_secure_results'
@@ -10,7 +9,6 @@ require 'onlinepayments/sdk/domain/three_d_secure_results'
10
9
  module OnlinePayments::SDK
11
10
  module Domain
12
11
 
13
- # @attr [OnlinePayments::SDK::Domain::AcquirerInformation] acquirer_information
14
12
  # @attr [String] authorisation_code
15
13
  # @attr [OnlinePayments::SDK::Domain::CardFraudResults] fraud_results
16
14
  # @attr [String] network
@@ -18,7 +16,6 @@ module OnlinePayments::SDK
18
16
  # @attr [Integer] payment_product_id
19
17
  # @attr [OnlinePayments::SDK::Domain::ThreeDSecureResults] three_d_secure_results
20
18
  class MobilePaymentMethodSpecificOutput < OnlinePayments::SDK::DataObject
21
- attr_accessor :acquirer_information
22
19
  attr_accessor :authorisation_code
23
20
  attr_accessor :fraud_results
24
21
  attr_accessor :network
@@ -29,7 +26,6 @@ module OnlinePayments::SDK
29
26
  # @return (Hash)
30
27
  def to_h
31
28
  hash = super
32
- hash['acquirerInformation'] = @acquirer_information.to_h if @acquirer_information
33
29
  hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
34
30
  hash['fraudResults'] = @fraud_results.to_h if @fraud_results
35
31
  hash['network'] = @network unless @network.nil?
@@ -41,10 +37,6 @@ module OnlinePayments::SDK
41
37
 
42
38
  def from_hash(hash)
43
39
  super
44
- if hash.key? 'acquirerInformation'
45
- raise TypeError, "value '%s' is not a Hash" % [hash['acquirerInformation']] unless hash['acquirerInformation'].is_a? Hash
46
- @acquirer_information = OnlinePayments::SDK::Domain::AcquirerInformation.new_from_hash(hash['acquirerInformation'])
47
- end
48
40
  @authorisation_code = hash['authorisationCode'] if hash.key? 'authorisationCode'
49
41
  if hash.key? 'fraudResults'
50
42
  raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']] unless hash['fraudResults'].is_a? Hash
@@ -0,0 +1,30 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+
6
+ module OnlinePayments::SDK
7
+ module Domain
8
+
9
+ # @attr [String] payment_pattern
10
+ # @attr [Integer] total_number_of_payments
11
+ class MultiplePaymentInformation < OnlinePayments::SDK::DataObject
12
+ attr_accessor :payment_pattern
13
+ attr_accessor :total_number_of_payments
14
+
15
+ # @return (Hash)
16
+ def to_h
17
+ hash = super
18
+ hash['paymentPattern'] = @payment_pattern unless @payment_pattern.nil?
19
+ hash['totalNumberOfPayments'] = @total_number_of_payments unless @total_number_of_payments.nil?
20
+ hash
21
+ end
22
+
23
+ def from_hash(hash)
24
+ super
25
+ @payment_pattern = hash['paymentPattern'] if hash.key? 'paymentPattern'
26
+ @total_number_of_payments = hash['totalNumberOfPayments'] if hash.key? 'totalNumberOfPayments'
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,37 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/address_personal'
6
+
7
+ module OnlinePayments::SDK
8
+ module Domain
9
+
10
+ # @attr [OnlinePayments::SDK::Domain::AddressPersonal] billing_address
11
+ # @attr [OnlinePayments::SDK::Domain::AddressPersonal] shipping_address
12
+ class PaymentProduct3203SpecificOutput < OnlinePayments::SDK::DataObject
13
+ attr_accessor :billing_address
14
+ attr_accessor :shipping_address
15
+
16
+ # @return (Hash)
17
+ def to_h
18
+ hash = super
19
+ hash['billingAddress'] = @billing_address.to_h if @billing_address
20
+ hash['shippingAddress'] = @shipping_address.to_h if @shipping_address
21
+ hash
22
+ end
23
+
24
+ def from_hash(hash)
25
+ super
26
+ if hash.key? 'billingAddress'
27
+ raise TypeError, "value '%s' is not a Hash" % [hash['billingAddress']] unless hash['billingAddress'].is_a? Hash
28
+ @billing_address = OnlinePayments::SDK::Domain::AddressPersonal.new_from_hash(hash['billingAddress'])
29
+ end
30
+ if hash.key? 'shippingAddress'
31
+ raise TypeError, "value '%s' is not a Hash" % [hash['shippingAddress']] unless hash['shippingAddress'].is_a? Hash
32
+ @shipping_address = OnlinePayments::SDK::Domain::AddressPersonal.new_from_hash(hash['shippingAddress'])
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -2,6 +2,7 @@
2
2
  # This class was auto-generated.
3
3
  #
4
4
  require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/redirect_payment_product3203_specific_input'
5
6
  require 'onlinepayments/sdk/domain/redirect_payment_product3306_specific_input'
6
7
  require 'onlinepayments/sdk/domain/redirect_payment_product5001_specific_input'
7
8
  require 'onlinepayments/sdk/domain/redirect_payment_product5406_specific_input'
@@ -14,6 +15,7 @@ module OnlinePayments::SDK
14
15
  module Domain
15
16
 
16
17
  # @attr [String] payment_option
18
+ # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3203SpecificInput] payment_product3203_specific_input
17
19
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3306SpecificInput] payment_product3306_specific_input
18
20
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5001SpecificInput] payment_product5001_specific_input
19
21
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput] payment_product5406_specific_input
@@ -27,6 +29,7 @@ module OnlinePayments::SDK
27
29
  # @attr [true/false] tokenize
28
30
  class RedirectPaymentMethodSpecificInput < OnlinePayments::SDK::DataObject
29
31
  attr_accessor :payment_option
32
+ attr_accessor :payment_product3203_specific_input
30
33
  attr_accessor :payment_product3306_specific_input
31
34
  attr_accessor :payment_product5001_specific_input
32
35
  attr_accessor :payment_product5406_specific_input
@@ -43,6 +46,7 @@ module OnlinePayments::SDK
43
46
  def to_h
44
47
  hash = super
45
48
  hash['paymentOption'] = @payment_option unless @payment_option.nil?
49
+ hash['paymentProduct3203SpecificInput'] = @payment_product3203_specific_input.to_h if @payment_product3203_specific_input
46
50
  hash['paymentProduct3306SpecificInput'] = @payment_product3306_specific_input.to_h if @payment_product3306_specific_input
47
51
  hash['paymentProduct5001SpecificInput'] = @payment_product5001_specific_input.to_h if @payment_product5001_specific_input
48
52
  hash['paymentProduct5406SpecificInput'] = @payment_product5406_specific_input.to_h if @payment_product5406_specific_input
@@ -60,6 +64,10 @@ module OnlinePayments::SDK
60
64
  def from_hash(hash)
61
65
  super
62
66
  @payment_option = hash['paymentOption'] if hash.key? 'paymentOption'
67
+ if hash.key? 'paymentProduct3203SpecificInput'
68
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3203SpecificInput']] unless hash['paymentProduct3203SpecificInput'].is_a? Hash
69
+ @payment_product3203_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3203SpecificInput.new_from_hash(hash['paymentProduct3203SpecificInput'])
70
+ end
63
71
  if hash.key? 'paymentProduct3306SpecificInput'
64
72
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3306SpecificInput']] unless hash['paymentProduct3306SpecificInput'].is_a? Hash
65
73
  @payment_product3306_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3306SpecificInput.new_from_hash(hash['paymentProduct3306SpecificInput'])
@@ -4,6 +4,7 @@
4
4
  require 'onlinepayments/sdk/data_object'
5
5
  require 'onlinepayments/sdk/domain/customer_bank_account'
6
6
  require 'onlinepayments/sdk/domain/fraud_results'
7
+ require 'onlinepayments/sdk/domain/payment_product3203_specific_output'
7
8
  require 'onlinepayments/sdk/domain/payment_product5001_specific_output'
8
9
  require 'onlinepayments/sdk/domain/payment_product5402_specific_output'
9
10
  require 'onlinepayments/sdk/domain/payment_product5500_specific_output'
@@ -16,6 +17,7 @@ module OnlinePayments::SDK
16
17
  # @attr [OnlinePayments::SDK::Domain::CustomerBankAccount] customer_bank_account
17
18
  # @attr [OnlinePayments::SDK::Domain::FraudResults] fraud_results
18
19
  # @attr [String] payment_option
20
+ # @attr [OnlinePayments::SDK::Domain::PaymentProduct3203SpecificOutput] payment_product3203_specific_output
19
21
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5001SpecificOutput] payment_product5001_specific_output
20
22
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5402SpecificOutput] payment_product5402_specific_output
21
23
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5500SpecificOutput] payment_product5500_specific_output
@@ -27,6 +29,7 @@ module OnlinePayments::SDK
27
29
  attr_accessor :customer_bank_account
28
30
  attr_accessor :fraud_results
29
31
  attr_accessor :payment_option
32
+ attr_accessor :payment_product3203_specific_output
30
33
  attr_accessor :payment_product5001_specific_output
31
34
  attr_accessor :payment_product5402_specific_output
32
35
  attr_accessor :payment_product5500_specific_output
@@ -41,6 +44,7 @@ module OnlinePayments::SDK
41
44
  hash['customerBankAccount'] = @customer_bank_account.to_h if @customer_bank_account
42
45
  hash['fraudResults'] = @fraud_results.to_h if @fraud_results
43
46
  hash['paymentOption'] = @payment_option unless @payment_option.nil?
47
+ hash['paymentProduct3203SpecificOutput'] = @payment_product3203_specific_output.to_h if @payment_product3203_specific_output
44
48
  hash['paymentProduct5001SpecificOutput'] = @payment_product5001_specific_output.to_h if @payment_product5001_specific_output
45
49
  hash['paymentProduct5402SpecificOutput'] = @payment_product5402_specific_output.to_h if @payment_product5402_specific_output
46
50
  hash['paymentProduct5500SpecificOutput'] = @payment_product5500_specific_output.to_h if @payment_product5500_specific_output
@@ -62,6 +66,10 @@ module OnlinePayments::SDK
62
66
  @fraud_results = OnlinePayments::SDK::Domain::FraudResults.new_from_hash(hash['fraudResults'])
63
67
  end
64
68
  @payment_option = hash['paymentOption'] if hash.key? 'paymentOption'
69
+ if hash.key? 'paymentProduct3203SpecificOutput'
70
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3203SpecificOutput']] unless hash['paymentProduct3203SpecificOutput'].is_a? Hash
71
+ @payment_product3203_specific_output = OnlinePayments::SDK::Domain::PaymentProduct3203SpecificOutput.new_from_hash(hash['paymentProduct3203SpecificOutput'])
72
+ end
65
73
  if hash.key? 'paymentProduct5001SpecificOutput'
66
74
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5001SpecificOutput']] unless hash['paymentProduct5001SpecificOutput'].is_a? Hash
67
75
  @payment_product5001_specific_output = OnlinePayments::SDK::Domain::PaymentProduct5001SpecificOutput.new_from_hash(hash['paymentProduct5001SpecificOutput'])
@@ -0,0 +1,26 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+
6
+ module OnlinePayments::SDK
7
+ module Domain
8
+
9
+ # @attr [String] checkout_type
10
+ class RedirectPaymentProduct3203SpecificInput < OnlinePayments::SDK::DataObject
11
+ attr_accessor :checkout_type
12
+
13
+ # @return (Hash)
14
+ def to_h
15
+ hash = super
16
+ hash['checkoutType'] = @checkout_type unless @checkout_type.nil?
17
+ hash
18
+ end
19
+
20
+ def from_hash(hash)
21
+ super
22
+ @checkout_type = hash['checkoutType'] if hash.key? 'checkoutType'
23
+ end
24
+ end
25
+ end
26
+ end
@@ -5,7 +5,6 @@ require 'onlinepayments/sdk/data_object'
5
5
  require 'onlinepayments/sdk/domain/payment_product3012'
6
6
  require 'onlinepayments/sdk/domain/payment_product5404'
7
7
  require 'onlinepayments/sdk/domain/payment_product5407'
8
- require 'onlinepayments/sdk/domain/payment_product840'
9
8
 
10
9
  module OnlinePayments::SDK
11
10
  module Domain
@@ -13,12 +12,10 @@ module OnlinePayments::SDK
13
12
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct3012] payment_product3012
14
13
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5404] payment_product5404
15
14
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5407] payment_product5407
16
- # @attr [OnlinePayments::SDK::Domain::PaymentProduct840] payment_product840
17
15
  class ShowFormData < OnlinePayments::SDK::DataObject
18
16
  attr_accessor :payment_product3012
19
17
  attr_accessor :payment_product5404
20
18
  attr_accessor :payment_product5407
21
- attr_accessor :payment_product840
22
19
 
23
20
  # @return (Hash)
24
21
  def to_h
@@ -26,7 +23,6 @@ module OnlinePayments::SDK
26
23
  hash['paymentProduct3012'] = @payment_product3012.to_h if @payment_product3012
27
24
  hash['paymentProduct5404'] = @payment_product5404.to_h if @payment_product5404
28
25
  hash['paymentProduct5407'] = @payment_product5407.to_h if @payment_product5407
29
- hash['paymentProduct840'] = @payment_product840.to_h if @payment_product840
30
26
  hash
31
27
  end
32
28
 
@@ -44,10 +40,6 @@ module OnlinePayments::SDK
44
40
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5407']] unless hash['paymentProduct5407'].is_a? Hash
45
41
  @payment_product5407 = OnlinePayments::SDK::Domain::PaymentProduct5407.new_from_hash(hash['paymentProduct5407'])
46
42
  end
47
- if hash.key? 'paymentProduct840'
48
- raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840']] unless hash['paymentProduct840'].is_a? Hash
49
- @payment_product840 = OnlinePayments::SDK::Domain::PaymentProduct840.new_from_hash(hash['paymentProduct840'])
50
- end
51
43
  end
52
44
  end
53
45
  end
@@ -7,12 +7,14 @@ module OnlinePayments::SDK
7
7
  module Domain
8
8
 
9
9
  # @attr [String] authorization_mode
10
+ # @attr [Integer] payment_number
10
11
  # @attr [String] scheme_reference_data
11
12
  # @attr [String] subsequent_type
12
13
  # @attr [String] token
13
14
  # @attr [String] transaction_channel
14
15
  class SubsequentCardPaymentMethodSpecificInput < OnlinePayments::SDK::DataObject
15
16
  attr_accessor :authorization_mode
17
+ attr_accessor :payment_number
16
18
  attr_accessor :scheme_reference_data
17
19
  attr_accessor :subsequent_type
18
20
  attr_accessor :token
@@ -22,6 +24,7 @@ module OnlinePayments::SDK
22
24
  def to_h
23
25
  hash = super
24
26
  hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
27
+ hash['paymentNumber'] = @payment_number unless @payment_number.nil?
25
28
  hash['schemeReferenceData'] = @scheme_reference_data unless @scheme_reference_data.nil?
26
29
  hash['subsequentType'] = @subsequent_type unless @subsequent_type.nil?
27
30
  hash['token'] = @token unless @token.nil?
@@ -32,6 +35,7 @@ module OnlinePayments::SDK
32
35
  def from_hash(hash)
33
36
  super
34
37
  @authorization_mode = hash['authorizationMode'] if hash.key? 'authorizationMode'
38
+ @payment_number = hash['paymentNumber'] if hash.key? 'paymentNumber'
35
39
  @scheme_reference_data = hash['schemeReferenceData'] if hash.key? 'schemeReferenceData'
36
40
  @subsequent_type = hash['subsequentType'] if hash.key? 'subsequentType'
37
41
  @token = hash['token'] if hash.key? 'token'
@@ -4,7 +4,6 @@
4
4
  require 'onlinepayments/sdk/data_object'
5
5
  require 'onlinepayments/sdk/domain/external_cardholder_authentication_data'
6
6
  require 'onlinepayments/sdk/domain/redirection_data'
7
- require 'onlinepayments/sdk/domain/three_ds_whitelist'
8
7
  require 'onlinepayments/sdk/domain/three_d_secure_data'
9
8
 
10
9
  module OnlinePayments::SDK
@@ -13,36 +12,26 @@ module OnlinePayments::SDK
13
12
  # @attr [Long] authentication_amount
14
13
  # @attr [String] challenge_canvas_size
15
14
  # @attr [String] challenge_indicator
16
- # @attr [true/false] decoupled_indicator
17
- # @attr [String] decoupled_max_time
18
15
  # @attr [String] exemption_request
19
16
  # @attr [OnlinePayments::SDK::Domain::ExternalCardholderAuthenticationData] external_cardholder_authentication_data
20
17
  # @attr [Integer] merchant_fraud_rate
21
- # @attr [String] payment_token_source
22
18
  # @attr [OnlinePayments::SDK::Domain::ThreeDSecureData] prior_three_d_secure_data
23
19
  # @attr [OnlinePayments::SDK::Domain::RedirectionData] redirection_data
24
20
  # @attr [true/false] secure_corporate_payment
25
21
  # @attr [true/false] skip_authentication
26
22
  # @attr [true/false] skip_soft_decline
27
- # @attr [String] three_ri_indicator
28
- # @attr [OnlinePayments::SDK::Domain::ThreeDSWhitelist] whitelist
29
23
  class ThreeDSecure < OnlinePayments::SDK::DataObject
30
24
  attr_accessor :authentication_amount
31
25
  attr_accessor :challenge_canvas_size
32
26
  attr_accessor :challenge_indicator
33
- attr_accessor :decoupled_indicator
34
- attr_accessor :decoupled_max_time
35
27
  attr_accessor :exemption_request
36
28
  attr_accessor :external_cardholder_authentication_data
37
29
  attr_accessor :merchant_fraud_rate
38
- attr_accessor :payment_token_source
39
30
  attr_accessor :prior_three_d_secure_data
40
31
  attr_accessor :redirection_data
41
32
  attr_accessor :secure_corporate_payment
42
33
  attr_accessor :skip_authentication
43
34
  attr_accessor :skip_soft_decline
44
- attr_accessor :three_ri_indicator
45
- attr_accessor :whitelist
46
35
 
47
36
  # @return (Hash)
48
37
  def to_h
@@ -50,19 +39,14 @@ module OnlinePayments::SDK
50
39
  hash['authenticationAmount'] = @authentication_amount unless @authentication_amount.nil?
51
40
  hash['challengeCanvasSize'] = @challenge_canvas_size unless @challenge_canvas_size.nil?
52
41
  hash['challengeIndicator'] = @challenge_indicator unless @challenge_indicator.nil?
53
- hash['decoupledIndicator'] = @decoupled_indicator unless @decoupled_indicator.nil?
54
- hash['decoupledMaxTime'] = @decoupled_max_time unless @decoupled_max_time.nil?
55
42
  hash['exemptionRequest'] = @exemption_request unless @exemption_request.nil?
56
43
  hash['externalCardholderAuthenticationData'] = @external_cardholder_authentication_data.to_h if @external_cardholder_authentication_data
57
44
  hash['merchantFraudRate'] = @merchant_fraud_rate unless @merchant_fraud_rate.nil?
58
- hash['paymentTokenSource'] = @payment_token_source unless @payment_token_source.nil?
59
45
  hash['priorThreeDSecureData'] = @prior_three_d_secure_data.to_h if @prior_three_d_secure_data
60
46
  hash['redirectionData'] = @redirection_data.to_h if @redirection_data
61
47
  hash['secureCorporatePayment'] = @secure_corporate_payment unless @secure_corporate_payment.nil?
62
48
  hash['skipAuthentication'] = @skip_authentication unless @skip_authentication.nil?
63
49
  hash['skipSoftDecline'] = @skip_soft_decline unless @skip_soft_decline.nil?
64
- hash['threeRIIndicator'] = @three_ri_indicator unless @three_ri_indicator.nil?
65
- hash['whitelist'] = @whitelist.to_h if @whitelist
66
50
  hash
67
51
  end
68
52
 
@@ -71,15 +55,12 @@ module OnlinePayments::SDK
71
55
  @authentication_amount = hash['authenticationAmount'] if hash.key? 'authenticationAmount'
72
56
  @challenge_canvas_size = hash['challengeCanvasSize'] if hash.key? 'challengeCanvasSize'
73
57
  @challenge_indicator = hash['challengeIndicator'] if hash.key? 'challengeIndicator'
74
- @decoupled_indicator = hash['decoupledIndicator'] if hash.key? 'decoupledIndicator'
75
- @decoupled_max_time = hash['decoupledMaxTime'] if hash.key? 'decoupledMaxTime'
76
58
  @exemption_request = hash['exemptionRequest'] if hash.key? 'exemptionRequest'
77
59
  if hash.key? 'externalCardholderAuthenticationData'
78
60
  raise TypeError, "value '%s' is not a Hash" % [hash['externalCardholderAuthenticationData']] unless hash['externalCardholderAuthenticationData'].is_a? Hash
79
61
  @external_cardholder_authentication_data = OnlinePayments::SDK::Domain::ExternalCardholderAuthenticationData.new_from_hash(hash['externalCardholderAuthenticationData'])
80
62
  end
81
63
  @merchant_fraud_rate = hash['merchantFraudRate'] if hash.key? 'merchantFraudRate'
82
- @payment_token_source = hash['paymentTokenSource'] if hash.key? 'paymentTokenSource'
83
64
  if hash.key? 'priorThreeDSecureData'
84
65
  raise TypeError, "value '%s' is not a Hash" % [hash['priorThreeDSecureData']] unless hash['priorThreeDSecureData'].is_a? Hash
85
66
  @prior_three_d_secure_data = OnlinePayments::SDK::Domain::ThreeDSecureData.new_from_hash(hash['priorThreeDSecureData'])
@@ -91,11 +72,6 @@ module OnlinePayments::SDK
91
72
  @secure_corporate_payment = hash['secureCorporatePayment'] if hash.key? 'secureCorporatePayment'
92
73
  @skip_authentication = hash['skipAuthentication'] if hash.key? 'skipAuthentication'
93
74
  @skip_soft_decline = hash['skipSoftDecline'] if hash.key? 'skipSoftDecline'
94
- @three_ri_indicator = hash['threeRIIndicator'] if hash.key? 'threeRIIndicator'
95
- if hash.key? 'whitelist'
96
- raise TypeError, "value '%s' is not a Hash" % [hash['whitelist']] unless hash['whitelist'].is_a? Hash
97
- @whitelist = OnlinePayments::SDK::Domain::ThreeDSWhitelist.new_from_hash(hash['whitelist'])
98
- end
99
75
  end
100
76
  end
101
77
  end
@@ -2,68 +2,53 @@
2
2
  # This class was auto-generated.
3
3
  #
4
4
  require 'onlinepayments/sdk/data_object'
5
- require 'onlinepayments/sdk/domain/three_ds_whitelist'
6
5
  require 'onlinepayments/sdk/domain/three_d_secure_data'
7
6
 
8
7
  module OnlinePayments::SDK
9
8
  module Domain
10
9
 
10
+ # @attr [Long] authentication_amount
11
11
  # @attr [String] challenge_canvas_size
12
12
  # @attr [String] challenge_indicator
13
- # @attr [true/false] decoupled_indicator
14
- # @attr [String] decoupled_max_time
15
13
  # @attr [String] exemption_request
16
14
  # @attr [Integer] merchant_fraud_rate
17
- # @attr [String] payment_token_source
18
15
  # @attr [OnlinePayments::SDK::Domain::ThreeDSecureData] prior_three_d_secure_data
19
16
  # @attr [true/false] secure_corporate_payment
20
17
  # @attr [true/false] skip_authentication
21
18
  # @attr [true/false] skip_soft_decline
22
- # @attr [String] three_ri_indicator
23
- # @attr [OnlinePayments::SDK::Domain::ThreeDSWhitelist] whitelist
24
19
  class ThreeDSecureBase < OnlinePayments::SDK::DataObject
20
+ attr_accessor :authentication_amount
25
21
  attr_accessor :challenge_canvas_size
26
22
  attr_accessor :challenge_indicator
27
- attr_accessor :decoupled_indicator
28
- attr_accessor :decoupled_max_time
29
23
  attr_accessor :exemption_request
30
24
  attr_accessor :merchant_fraud_rate
31
- attr_accessor :payment_token_source
32
25
  attr_accessor :prior_three_d_secure_data
33
26
  attr_accessor :secure_corporate_payment
34
27
  attr_accessor :skip_authentication
35
28
  attr_accessor :skip_soft_decline
36
- attr_accessor :three_ri_indicator
37
- attr_accessor :whitelist
38
29
 
39
30
  # @return (Hash)
40
31
  def to_h
41
32
  hash = super
33
+ hash['authenticationAmount'] = @authentication_amount unless @authentication_amount.nil?
42
34
  hash['challengeCanvasSize'] = @challenge_canvas_size unless @challenge_canvas_size.nil?
43
35
  hash['challengeIndicator'] = @challenge_indicator unless @challenge_indicator.nil?
44
- hash['decoupledIndicator'] = @decoupled_indicator unless @decoupled_indicator.nil?
45
- hash['decoupledMaxTime'] = @decoupled_max_time unless @decoupled_max_time.nil?
46
36
  hash['exemptionRequest'] = @exemption_request unless @exemption_request.nil?
47
37
  hash['merchantFraudRate'] = @merchant_fraud_rate unless @merchant_fraud_rate.nil?
48
- hash['paymentTokenSource'] = @payment_token_source unless @payment_token_source.nil?
49
38
  hash['priorThreeDSecureData'] = @prior_three_d_secure_data.to_h if @prior_three_d_secure_data
50
39
  hash['secureCorporatePayment'] = @secure_corporate_payment unless @secure_corporate_payment.nil?
51
40
  hash['skipAuthentication'] = @skip_authentication unless @skip_authentication.nil?
52
41
  hash['skipSoftDecline'] = @skip_soft_decline unless @skip_soft_decline.nil?
53
- hash['threeRIIndicator'] = @three_ri_indicator unless @three_ri_indicator.nil?
54
- hash['whitelist'] = @whitelist.to_h if @whitelist
55
42
  hash
56
43
  end
57
44
 
58
45
  def from_hash(hash)
59
46
  super
47
+ @authentication_amount = hash['authenticationAmount'] if hash.key? 'authenticationAmount'
60
48
  @challenge_canvas_size = hash['challengeCanvasSize'] if hash.key? 'challengeCanvasSize'
61
49
  @challenge_indicator = hash['challengeIndicator'] if hash.key? 'challengeIndicator'
62
- @decoupled_indicator = hash['decoupledIndicator'] if hash.key? 'decoupledIndicator'
63
- @decoupled_max_time = hash['decoupledMaxTime'] if hash.key? 'decoupledMaxTime'
64
50
  @exemption_request = hash['exemptionRequest'] if hash.key? 'exemptionRequest'
65
51
  @merchant_fraud_rate = hash['merchantFraudRate'] if hash.key? 'merchantFraudRate'
66
- @payment_token_source = hash['paymentTokenSource'] if hash.key? 'paymentTokenSource'
67
52
  if hash.key? 'priorThreeDSecureData'
68
53
  raise TypeError, "value '%s' is not a Hash" % [hash['priorThreeDSecureData']] unless hash['priorThreeDSecureData'].is_a? Hash
69
54
  @prior_three_d_secure_data = OnlinePayments::SDK::Domain::ThreeDSecureData.new_from_hash(hash['priorThreeDSecureData'])
@@ -71,11 +56,6 @@ module OnlinePayments::SDK
71
56
  @secure_corporate_payment = hash['secureCorporatePayment'] if hash.key? 'secureCorporatePayment'
72
57
  @skip_authentication = hash['skipAuthentication'] if hash.key? 'skipAuthentication'
73
58
  @skip_soft_decline = hash['skipSoftDecline'] if hash.key? 'skipSoftDecline'
74
- @three_ri_indicator = hash['threeRIIndicator'] if hash.key? 'threeRIIndicator'
75
- if hash.key? 'whitelist'
76
- raise TypeError, "value '%s' is not a Hash" % [hash['whitelist']] unless hash['whitelist'].is_a? Hash
77
- @whitelist = OnlinePayments::SDK::Domain::ThreeDSWhitelist.new_from_hash(hash['whitelist'])
78
- end
79
59
  end
80
60
  end
81
61
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'onlinepayments-sdk-ruby'
3
- spec.version = '4.22.0'
3
+ spec.version = '4.23.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: 4.22.0
4
+ version: 4.23.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: 2024-06-13 00:00:00.000000000 Z
11
+ date: 2024-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -253,11 +253,15 @@ files:
253
253
  - lib/onlinepayments/sdk/domain/loan_recipient.rb
254
254
  - lib/onlinepayments/sdk/domain/lodging_data.rb
255
255
  - lib/onlinepayments/sdk/domain/mandate_address.rb
256
+ - lib/onlinepayments/sdk/domain/mandate_address_response.rb
256
257
  - lib/onlinepayments/sdk/domain/mandate_contact_details.rb
257
258
  - lib/onlinepayments/sdk/domain/mandate_customer.rb
259
+ - lib/onlinepayments/sdk/domain/mandate_customer_response.rb
258
260
  - lib/onlinepayments/sdk/domain/mandate_merchant_action.rb
259
261
  - lib/onlinepayments/sdk/domain/mandate_personal_information.rb
262
+ - lib/onlinepayments/sdk/domain/mandate_personal_information_response.rb
260
263
  - lib/onlinepayments/sdk/domain/mandate_personal_name.rb
264
+ - lib/onlinepayments/sdk/domain/mandate_personal_name_response.rb
261
265
  - lib/onlinepayments/sdk/domain/mandate_redirect_data.rb
262
266
  - lib/onlinepayments/sdk/domain/mandate_response.rb
263
267
  - lib/onlinepayments/sdk/domain/merchant_action.rb
@@ -266,7 +270,7 @@ files:
266
270
  - lib/onlinepayments/sdk/domain/mobile_payment_method_specific_input.rb
267
271
  - lib/onlinepayments/sdk/domain/mobile_payment_method_specific_output.rb
268
272
  - lib/onlinepayments/sdk/domain/mobile_payment_product320_specific_input.rb
269
- - lib/onlinepayments/sdk/domain/network_token_essentials.rb
273
+ - lib/onlinepayments/sdk/domain/multiple_payment_information.rb
270
274
  - lib/onlinepayments/sdk/domain/omnichannel_payout_specific_input.rb
271
275
  - lib/onlinepayments/sdk/domain/operation_output.rb
272
276
  - lib/onlinepayments/sdk/domain/order.rb
@@ -274,7 +278,6 @@ files:
274
278
  - lib/onlinepayments/sdk/domain/order_references.rb
275
279
  - lib/onlinepayments/sdk/domain/order_status_output.rb
276
280
  - lib/onlinepayments/sdk/domain/order_type_information.rb
277
- - lib/onlinepayments/sdk/domain/page_customization.rb
278
281
  - lib/onlinepayments/sdk/domain/payment_account_on_file.rb
279
282
  - lib/onlinepayments/sdk/domain/payment_context.rb
280
283
  - lib/onlinepayments/sdk/domain/payment_creation_output.rb
@@ -290,22 +293,20 @@ files:
290
293
  - lib/onlinepayments/sdk/domain/payment_product130_specific_input.rb
291
294
  - lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb
292
295
  - lib/onlinepayments/sdk/domain/payment_product3012.rb
293
- - lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb
294
296
  - lib/onlinepayments/sdk/domain/payment_product302_specific_data.rb
297
+ - lib/onlinepayments/sdk/domain/payment_product3203_specific_output.rb
295
298
  - lib/onlinepayments/sdk/domain/payment_product3208_specific_input.rb
296
299
  - lib/onlinepayments/sdk/domain/payment_product3208_specific_output.rb
297
300
  - lib/onlinepayments/sdk/domain/payment_product3209_specific_input.rb
298
301
  - lib/onlinepayments/sdk/domain/payment_product3209_specific_output.rb
299
302
  - lib/onlinepayments/sdk/domain/payment_product320_specific_data.rb
300
303
  - lib/onlinepayments/sdk/domain/payment_product5001_specific_output.rb
301
- - lib/onlinepayments/sdk/domain/payment_product5002_specific_input.rb
302
304
  - lib/onlinepayments/sdk/domain/payment_product5100_specific_input.rb
303
305
  - lib/onlinepayments/sdk/domain/payment_product5402_specific_output.rb
304
306
  - lib/onlinepayments/sdk/domain/payment_product5404.rb
305
307
  - lib/onlinepayments/sdk/domain/payment_product5407.rb
306
308
  - lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb
307
309
  - lib/onlinepayments/sdk/domain/payment_product771_specific_output.rb
308
- - lib/onlinepayments/sdk/domain/payment_product840.rb
309
310
  - lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb
310
311
  - lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb
311
312
  - lib/onlinepayments/sdk/domain/payment_product_display_hints.rb
@@ -341,6 +342,7 @@ files:
341
342
  - lib/onlinepayments/sdk/domain/redirect_data.rb
342
343
  - lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb
343
344
  - lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb
345
+ - lib/onlinepayments/sdk/domain/redirect_payment_product3203_specific_input.rb
344
346
  - lib/onlinepayments/sdk/domain/redirect_payment_product3306_specific_input.rb
345
347
  - lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb
346
348
  - lib/onlinepayments/sdk/domain/redirect_payment_product5406_specific_input.rb
@@ -387,7 +389,6 @@ files:
387
389
  - lib/onlinepayments/sdk/domain/three_d_secure_base.rb
388
390
  - lib/onlinepayments/sdk/domain/three_d_secure_data.rb
389
391
  - lib/onlinepayments/sdk/domain/three_d_secure_results.rb
390
- - lib/onlinepayments/sdk/domain/three_ds_whitelist.rb
391
392
  - lib/onlinepayments/sdk/domain/token_card.rb
392
393
  - lib/onlinepayments/sdk/domain/token_card_data.rb
393
394
  - lib/onlinepayments/sdk/domain/token_card_specific_input.rb
@@ -1,38 +0,0 @@
1
- #
2
- # This class was auto-generated.
3
- #
4
- require 'onlinepayments/sdk/data_object'
5
-
6
- module OnlinePayments::SDK
7
- module Domain
8
-
9
- # @attr [String] bin
10
- # @attr [String] country_code
11
- # @attr [String] network_token
12
- # @attr [String] token_expiry_date
13
- class NetworkTokenEssentials < OnlinePayments::SDK::DataObject
14
- attr_accessor :bin
15
- attr_accessor :country_code
16
- attr_accessor :network_token
17
- attr_accessor :token_expiry_date
18
-
19
- # @return (Hash)
20
- def to_h
21
- hash = super
22
- hash['bin'] = @bin unless @bin.nil?
23
- hash['countryCode'] = @country_code unless @country_code.nil?
24
- hash['networkToken'] = @network_token unless @network_token.nil?
25
- hash['tokenExpiryDate'] = @token_expiry_date unless @token_expiry_date.nil?
26
- hash
27
- end
28
-
29
- def from_hash(hash)
30
- super
31
- @bin = hash['bin'] if hash.key? 'bin'
32
- @country_code = hash['countryCode'] if hash.key? 'countryCode'
33
- @network_token = hash['networkToken'] if hash.key? 'networkToken'
34
- @token_expiry_date = hash['tokenExpiryDate'] if hash.key? 'tokenExpiryDate'
35
- end
36
- end
37
- end
38
- end
@@ -1,26 +0,0 @@
1
- #
2
- # This class was auto-generated.
3
- #
4
- require 'onlinepayments/sdk/data_object'
5
-
6
- module OnlinePayments::SDK
7
- module Domain
8
-
9
- # @attr [String] template
10
- class PageCustomization < OnlinePayments::SDK::DataObject
11
- attr_accessor :template
12
-
13
- # @return (Hash)
14
- def to_h
15
- hash = super
16
- hash['template'] = @template unless @template.nil?
17
- hash
18
- end
19
-
20
- def from_hash(hash)
21
- super
22
- @template = hash['template'] if hash.key? 'template'
23
- end
24
- end
25
- end
26
- end