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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 483c54124fb65fe695f50ed2e6721901c7ff389a5f0bc15f110379ca3d4beed4
4
- data.tar.gz: 00ed4077883e208c23a2881b33929a93986bd083b06095c66bb86f497a847c56
3
+ metadata.gz: 987bf75ee1540bd8abf3a28d9906db7e94f1375dd4f1fa5633a32b87a5ca0ae5
4
+ data.tar.gz: 232425d9abf5e0c208264d6fc38133cddbfc0d8b1a372860b31d1c699d0ce403
5
5
  SHA512:
6
- metadata.gz: 3a568eda619ae3fb3c8658175e00024bb74f8eeaaa04159d3de59ba2229d8f77104eacb7f817fdbed9a7ee7e0af45ed44600035b69f4356f588d2bdbfe40f37f
7
- data.tar.gz: b21beb1ecfddef17480c0298b24b7339ee2c5cfefbb744817a104c24ea456d88a7fbc07865c7df212316d1802389ce524b8c2663920665a860fb9a4d46d8b81d
6
+ metadata.gz: f6287c6f28f6940aa3d0925f64b5906f24d2d85908b9909a65e075a4347930a49edb2d72a888c8eef4cc1970cc04a5b8bdbaf5245601c26c1300788ae3951d50
7
+ data.tar.gz: ffb47f7328e8216c595fe4978fd8394633fca9323806a6843c3e5a67ef0643059257f3d260b861d669c474a602c55827e4e54cbef636f0881a109f5108b15d8e
@@ -9,6 +9,7 @@ module OnlinePayments::SDK
9
9
 
10
10
  # @attr [String] additional_info
11
11
  # @attr [String] city
12
+ # @attr [String] company_name
12
13
  # @attr [String] country_code
13
14
  # @attr [String] house_number
14
15
  # @attr [OnlinePayments::SDK::Domain::PersonalName] name
@@ -18,6 +19,7 @@ module OnlinePayments::SDK
18
19
  class AddressPersonal < OnlinePayments::SDK::DataObject
19
20
  attr_accessor :additional_info
20
21
  attr_accessor :city
22
+ attr_accessor :company_name
21
23
  attr_accessor :country_code
22
24
  attr_accessor :house_number
23
25
  attr_accessor :name
@@ -30,6 +32,7 @@ module OnlinePayments::SDK
30
32
  hash = super
31
33
  hash['additionalInfo'] = @additional_info unless @additional_info.nil?
32
34
  hash['city'] = @city unless @city.nil?
35
+ hash['companyName'] = @company_name unless @company_name.nil?
33
36
  hash['countryCode'] = @country_code unless @country_code.nil?
34
37
  hash['houseNumber'] = @house_number unless @house_number.nil?
35
38
  hash['name'] = @name.to_h if @name
@@ -43,6 +46,7 @@ module OnlinePayments::SDK
43
46
  super
44
47
  @additional_info = hash['additionalInfo'] if hash.key? 'additionalInfo'
45
48
  @city = hash['city'] if hash.key? 'city'
49
+ @company_name = hash['companyName'] if hash.key? 'companyName'
46
50
  @country_code = hash['countryCode'] if hash.key? 'countryCode'
47
51
  @house_number = hash['houseNumber'] if hash.key? 'houseNumber'
48
52
  if hash.key? 'name'
@@ -8,13 +8,11 @@ module OnlinePayments::SDK
8
8
 
9
9
  # @attr [String] bin
10
10
  # @attr [String] card_number
11
- # @attr [String] card_type
12
11
  # @attr [String] country_code
13
12
  # @attr [String] expiry_date
14
13
  class CardEssentials < OnlinePayments::SDK::DataObject
15
14
  attr_accessor :bin
16
15
  attr_accessor :card_number
17
- attr_accessor :card_type
18
16
  attr_accessor :country_code
19
17
  attr_accessor :expiry_date
20
18
 
@@ -23,7 +21,6 @@ module OnlinePayments::SDK
23
21
  hash = super
24
22
  hash['bin'] = @bin unless @bin.nil?
25
23
  hash['cardNumber'] = @card_number unless @card_number.nil?
26
- hash['cardType'] = @card_type unless @card_type.nil?
27
24
  hash['countryCode'] = @country_code unless @country_code.nil?
28
25
  hash['expiryDate'] = @expiry_date unless @expiry_date.nil?
29
26
  hash
@@ -33,7 +30,6 @@ module OnlinePayments::SDK
33
30
  super
34
31
  @bin = hash['bin'] if hash.key? 'bin'
35
32
  @card_number = hash['cardNumber'] if hash.key? 'cardNumber'
36
- @card_type = hash['cardType'] if hash.key? 'cardType'
37
33
  @country_code = hash['countryCode'] if hash.key? 'countryCode'
38
34
  @expiry_date = hash['expiryDate'] if hash.key? 'expiryDate'
39
35
  end
@@ -5,11 +5,10 @@ require 'onlinepayments/sdk/data_object'
5
5
  require 'onlinepayments/sdk/domain/card'
6
6
  require 'onlinepayments/sdk/domain/card_recurrence_details'
7
7
  require 'onlinepayments/sdk/domain/currency_conversion_input'
8
+ require 'onlinepayments/sdk/domain/multiple_payment_information'
8
9
  require 'onlinepayments/sdk/domain/payment_product130_specific_input'
9
- require 'onlinepayments/sdk/domain/payment_product3012_specific_input'
10
10
  require 'onlinepayments/sdk/domain/payment_product3208_specific_input'
11
11
  require 'onlinepayments/sdk/domain/payment_product3209_specific_input'
12
- require 'onlinepayments/sdk/domain/payment_product5002_specific_input'
13
12
  require 'onlinepayments/sdk/domain/three_d_secure'
14
13
 
15
14
  module OnlinePayments::SDK
@@ -23,11 +22,10 @@ module OnlinePayments::SDK
23
22
  # @attr [OnlinePayments::SDK::Domain::CurrencyConversionInput] currency_conversion
24
23
  # @attr [String] initial_scheme_transaction_id
25
24
  # @attr [true/false] is_recurring
25
+ # @attr [OnlinePayments::SDK::Domain::MultiplePaymentInformation] multiple_payment_information
26
26
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput] payment_product130_specific_input
27
- # @attr [OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput] payment_product3012_specific_input
28
27
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct3208SpecificInput] payment_product3208_specific_input
29
28
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct3209SpecificInput] payment_product3209_specific_input
30
- # @attr [OnlinePayments::SDK::Domain::PaymentProduct5002SpecificInput] payment_product5002_specific_input
31
29
  # @attr [Integer] payment_product_id
32
30
  # @attr [OnlinePayments::SDK::Domain::CardRecurrenceDetails] recurring
33
31
  # @attr [String] return_url
@@ -48,11 +46,10 @@ module OnlinePayments::SDK
48
46
  attr_accessor :currency_conversion
49
47
  attr_accessor :initial_scheme_transaction_id
50
48
  attr_accessor :is_recurring
49
+ attr_accessor :multiple_payment_information
51
50
  attr_accessor :payment_product130_specific_input
52
- attr_accessor :payment_product3012_specific_input
53
51
  attr_accessor :payment_product3208_specific_input
54
52
  attr_accessor :payment_product3209_specific_input
55
- attr_accessor :payment_product5002_specific_input
56
53
  attr_accessor :payment_product_id
57
54
  attr_accessor :recurring
58
55
  attr_accessor :return_url
@@ -76,11 +73,10 @@ module OnlinePayments::SDK
76
73
  hash['currencyConversion'] = @currency_conversion.to_h if @currency_conversion
77
74
  hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
78
75
  hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
76
+ hash['multiplePaymentInformation'] = @multiple_payment_information.to_h if @multiple_payment_information
79
77
  hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h if @payment_product130_specific_input
80
- hash['paymentProduct3012SpecificInput'] = @payment_product3012_specific_input.to_h if @payment_product3012_specific_input
81
78
  hash['paymentProduct3208SpecificInput'] = @payment_product3208_specific_input.to_h if @payment_product3208_specific_input
82
79
  hash['paymentProduct3209SpecificInput'] = @payment_product3209_specific_input.to_h if @payment_product3209_specific_input
83
- hash['paymentProduct5002SpecificInput'] = @payment_product5002_specific_input.to_h if @payment_product5002_specific_input
84
80
  hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
85
81
  hash['recurring'] = @recurring.to_h if @recurring
86
82
  hash['returnUrl'] = @return_url unless @return_url.nil?
@@ -111,14 +107,14 @@ module OnlinePayments::SDK
111
107
  end
112
108
  @initial_scheme_transaction_id = hash['initialSchemeTransactionId'] if hash.key? 'initialSchemeTransactionId'
113
109
  @is_recurring = hash['isRecurring'] if hash.key? 'isRecurring'
110
+ if hash.key? 'multiplePaymentInformation'
111
+ raise TypeError, "value '%s' is not a Hash" % [hash['multiplePaymentInformation']] unless hash['multiplePaymentInformation'].is_a? Hash
112
+ @multiple_payment_information = OnlinePayments::SDK::Domain::MultiplePaymentInformation.new_from_hash(hash['multiplePaymentInformation'])
113
+ end
114
114
  if hash.key? 'paymentProduct130SpecificInput'
115
115
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct130SpecificInput']] unless hash['paymentProduct130SpecificInput'].is_a? Hash
116
116
  @payment_product130_specific_input = OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput.new_from_hash(hash['paymentProduct130SpecificInput'])
117
117
  end
118
- if hash.key? 'paymentProduct3012SpecificInput'
119
- raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3012SpecificInput']] unless hash['paymentProduct3012SpecificInput'].is_a? Hash
120
- @payment_product3012_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput.new_from_hash(hash['paymentProduct3012SpecificInput'])
121
- end
122
118
  if hash.key? 'paymentProduct3208SpecificInput'
123
119
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3208SpecificInput']] unless hash['paymentProduct3208SpecificInput'].is_a? Hash
124
120
  @payment_product3208_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3208SpecificInput.new_from_hash(hash['paymentProduct3208SpecificInput'])
@@ -127,10 +123,6 @@ module OnlinePayments::SDK
127
123
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3209SpecificInput']] unless hash['paymentProduct3209SpecificInput'].is_a? Hash
128
124
  @payment_product3209_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3209SpecificInput.new_from_hash(hash['paymentProduct3209SpecificInput'])
129
125
  end
130
- if hash.key? 'paymentProduct5002SpecificInput'
131
- raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5002SpecificInput']] unless hash['paymentProduct5002SpecificInput'].is_a? Hash
132
- @payment_product5002_specific_input = OnlinePayments::SDK::Domain::PaymentProduct5002SpecificInput.new_from_hash(hash['paymentProduct5002SpecificInput'])
133
- end
134
126
  @payment_product_id = hash['paymentProductId'] if hash.key? 'paymentProductId'
135
127
  if hash.key? 'recurring'
136
128
  raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash
@@ -4,8 +4,8 @@
4
4
  require 'onlinepayments/sdk/data_object'
5
5
  require 'onlinepayments/sdk/domain/card_recurrence_details'
6
6
  require 'onlinepayments/sdk/domain/currency_conversion_specific_input'
7
+ require 'onlinepayments/sdk/domain/multiple_payment_information'
7
8
  require 'onlinepayments/sdk/domain/payment_product130_specific_input'
8
- require 'onlinepayments/sdk/domain/payment_product3012_specific_input'
9
9
  require 'onlinepayments/sdk/domain/payment_product3208_specific_input'
10
10
  require 'onlinepayments/sdk/domain/payment_product3209_specific_input'
11
11
  require 'onlinepayments/sdk/domain/payment_product5100_specific_input'
@@ -18,8 +18,8 @@ module OnlinePayments::SDK
18
18
  # @attr [String] authorization_mode
19
19
  # @attr [OnlinePayments::SDK::Domain::CurrencyConversionSpecificInput] currency_conversion_specific_input
20
20
  # @attr [String] initial_scheme_transaction_id
21
+ # @attr [OnlinePayments::SDK::Domain::MultiplePaymentInformation] multiple_payment_information
21
22
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput] payment_product130_specific_input
22
- # @attr [OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput] payment_product3012_specific_input
23
23
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct3208SpecificInput] payment_product3208_specific_input
24
24
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct3209SpecificInput] payment_product3209_specific_input
25
25
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5100SpecificInput] payment_product5100_specific_input
@@ -36,8 +36,8 @@ module OnlinePayments::SDK
36
36
  attr_accessor :authorization_mode
37
37
  attr_accessor :currency_conversion_specific_input
38
38
  attr_accessor :initial_scheme_transaction_id
39
+ attr_accessor :multiple_payment_information
39
40
  attr_accessor :payment_product130_specific_input
40
- attr_accessor :payment_product3012_specific_input
41
41
  attr_accessor :payment_product3208_specific_input
42
42
  attr_accessor :payment_product3209_specific_input
43
43
  attr_accessor :payment_product5100_specific_input
@@ -57,8 +57,8 @@ module OnlinePayments::SDK
57
57
  hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
58
58
  hash['currencyConversionSpecificInput'] = @currency_conversion_specific_input.to_h if @currency_conversion_specific_input
59
59
  hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
60
+ hash['multiplePaymentInformation'] = @multiple_payment_information.to_h if @multiple_payment_information
60
61
  hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h if @payment_product130_specific_input
61
- hash['paymentProduct3012SpecificInput'] = @payment_product3012_specific_input.to_h if @payment_product3012_specific_input
62
62
  hash['paymentProduct3208SpecificInput'] = @payment_product3208_specific_input.to_h if @payment_product3208_specific_input
63
63
  hash['paymentProduct3209SpecificInput'] = @payment_product3209_specific_input.to_h if @payment_product3209_specific_input
64
64
  hash['paymentProduct5100SpecificInput'] = @payment_product5100_specific_input.to_h if @payment_product5100_specific_input
@@ -82,14 +82,14 @@ module OnlinePayments::SDK
82
82
  @currency_conversion_specific_input = OnlinePayments::SDK::Domain::CurrencyConversionSpecificInput.new_from_hash(hash['currencyConversionSpecificInput'])
83
83
  end
84
84
  @initial_scheme_transaction_id = hash['initialSchemeTransactionId'] if hash.key? 'initialSchemeTransactionId'
85
+ if hash.key? 'multiplePaymentInformation'
86
+ raise TypeError, "value '%s' is not a Hash" % [hash['multiplePaymentInformation']] unless hash['multiplePaymentInformation'].is_a? Hash
87
+ @multiple_payment_information = OnlinePayments::SDK::Domain::MultiplePaymentInformation.new_from_hash(hash['multiplePaymentInformation'])
88
+ end
85
89
  if hash.key? 'paymentProduct130SpecificInput'
86
90
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct130SpecificInput']] unless hash['paymentProduct130SpecificInput'].is_a? Hash
87
91
  @payment_product130_specific_input = OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput.new_from_hash(hash['paymentProduct130SpecificInput'])
88
92
  end
89
- if hash.key? 'paymentProduct3012SpecificInput'
90
- raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3012SpecificInput']] unless hash['paymentProduct3012SpecificInput'].is_a? Hash
91
- @payment_product3012_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput.new_from_hash(hash['paymentProduct3012SpecificInput'])
92
- end
93
93
  if hash.key? 'paymentProduct3208SpecificInput'
94
94
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3208SpecificInput']] unless hash['paymentProduct3208SpecificInput'].is_a? Hash
95
95
  @payment_product3208_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3208SpecificInput.new_from_hash(hash['paymentProduct3208SpecificInput'])
@@ -7,7 +7,6 @@ require 'onlinepayments/sdk/domain/card_essentials'
7
7
  require 'onlinepayments/sdk/domain/card_fraud_results'
8
8
  require 'onlinepayments/sdk/domain/currency_conversion'
9
9
  require 'onlinepayments/sdk/domain/external_token_linked'
10
- require 'onlinepayments/sdk/domain/network_token_essentials'
11
10
  require 'onlinepayments/sdk/domain/payment_product3208_specific_output'
12
11
  require 'onlinepayments/sdk/domain/payment_product3209_specific_output'
13
12
  require 'onlinepayments/sdk/domain/three_d_secure_results'
@@ -23,7 +22,6 @@ module OnlinePayments::SDK
23
22
  # @attr [OnlinePayments::SDK::Domain::ExternalTokenLinked] external_token_linked
24
23
  # @attr [OnlinePayments::SDK::Domain::CardFraudResults] fraud_results
25
24
  # @attr [String] initial_scheme_transaction_id
26
- # @attr [OnlinePayments::SDK::Domain::NetworkTokenEssentials] network_token_data
27
25
  # @attr [String] payment_account_reference
28
26
  # @attr [String] payment_option
29
27
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct3208SpecificOutput] payment_product3208_specific_output
@@ -41,7 +39,6 @@ module OnlinePayments::SDK
41
39
  attr_accessor :external_token_linked
42
40
  attr_accessor :fraud_results
43
41
  attr_accessor :initial_scheme_transaction_id
44
- attr_accessor :network_token_data
45
42
  attr_accessor :payment_account_reference
46
43
  attr_accessor :payment_option
47
44
  attr_accessor :payment_product3208_specific_output
@@ -62,7 +59,6 @@ module OnlinePayments::SDK
62
59
  hash['externalTokenLinked'] = @external_token_linked.to_h if @external_token_linked
63
60
  hash['fraudResults'] = @fraud_results.to_h if @fraud_results
64
61
  hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
65
- hash['networkTokenData'] = @network_token_data.to_h if @network_token_data
66
62
  hash['paymentAccountReference'] = @payment_account_reference unless @payment_account_reference.nil?
67
63
  hash['paymentOption'] = @payment_option unless @payment_option.nil?
68
64
  hash['paymentProduct3208SpecificOutput'] = @payment_product3208_specific_output.to_h if @payment_product3208_specific_output
@@ -99,10 +95,6 @@ module OnlinePayments::SDK
99
95
  @fraud_results = OnlinePayments::SDK::Domain::CardFraudResults.new_from_hash(hash['fraudResults'])
100
96
  end
101
97
  @initial_scheme_transaction_id = hash['initialSchemeTransactionId'] if hash.key? 'initialSchemeTransactionId'
102
- if hash.key? 'networkTokenData'
103
- raise TypeError, "value '%s' is not a Hash" % [hash['networkTokenData']] unless hash['networkTokenData'].is_a? Hash
104
- @network_token_data = OnlinePayments::SDK::Domain::NetworkTokenEssentials.new_from_hash(hash['networkTokenData'])
105
- end
106
98
  @payment_account_reference = hash['paymentAccountReference'] if hash.key? 'paymentAccountReference'
107
99
  @payment_option = hash['paymentOption'] if hash.key? 'paymentOption'
108
100
  if hash.key? 'paymentProduct3208SpecificOutput'
@@ -7,7 +7,6 @@ require 'onlinepayments/sdk/domain/fraud_fields'
7
7
  require 'onlinepayments/sdk/domain/hosted_checkout_specific_input'
8
8
  require 'onlinepayments/sdk/domain/mobile_payment_method_hosted_checkout_specific_input'
9
9
  require 'onlinepayments/sdk/domain/order'
10
- require 'onlinepayments/sdk/domain/page_customization'
11
10
  require 'onlinepayments/sdk/domain/redirect_payment_method_specific_input'
12
11
  require 'onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input_base'
13
12
 
@@ -19,7 +18,6 @@ module OnlinePayments::SDK
19
18
  # @attr [OnlinePayments::SDK::Domain::HostedCheckoutSpecificInput] hosted_checkout_specific_input
20
19
  # @attr [OnlinePayments::SDK::Domain::MobilePaymentMethodHostedCheckoutSpecificInput] mobile_payment_method_specific_input
21
20
  # @attr [OnlinePayments::SDK::Domain::Order] order
22
- # @attr [OnlinePayments::SDK::Domain::PageCustomization] page_customization
23
21
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificInput] redirect_payment_method_specific_input
24
22
  # @attr [OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificInputBase] sepa_direct_debit_payment_method_specific_input
25
23
  class CreateHostedCheckoutRequest < OnlinePayments::SDK::DataObject
@@ -28,7 +26,6 @@ module OnlinePayments::SDK
28
26
  attr_accessor :hosted_checkout_specific_input
29
27
  attr_accessor :mobile_payment_method_specific_input
30
28
  attr_accessor :order
31
- attr_accessor :page_customization
32
29
  attr_accessor :redirect_payment_method_specific_input
33
30
  attr_accessor :sepa_direct_debit_payment_method_specific_input
34
31
 
@@ -40,7 +37,6 @@ module OnlinePayments::SDK
40
37
  hash['hostedCheckoutSpecificInput'] = @hosted_checkout_specific_input.to_h if @hosted_checkout_specific_input
41
38
  hash['mobilePaymentMethodSpecificInput'] = @mobile_payment_method_specific_input.to_h if @mobile_payment_method_specific_input
42
39
  hash['order'] = @order.to_h if @order
43
- hash['pageCustomization'] = @page_customization.to_h if @page_customization
44
40
  hash['redirectPaymentMethodSpecificInput'] = @redirect_payment_method_specific_input.to_h if @redirect_payment_method_specific_input
45
41
  hash['sepaDirectDebitPaymentMethodSpecificInput'] = @sepa_direct_debit_payment_method_specific_input.to_h if @sepa_direct_debit_payment_method_specific_input
46
42
  hash
@@ -68,10 +64,6 @@ module OnlinePayments::SDK
68
64
  raise TypeError, "value '%s' is not a Hash" % [hash['order']] unless hash['order'].is_a? Hash
69
65
  @order = OnlinePayments::SDK::Domain::Order.new_from_hash(hash['order'])
70
66
  end
71
- if hash.key? 'pageCustomization'
72
- raise TypeError, "value '%s' is not a Hash" % [hash['pageCustomization']] unless hash['pageCustomization'].is_a? Hash
73
- @page_customization = OnlinePayments::SDK::Domain::PageCustomization.new_from_hash(hash['pageCustomization'])
74
- end
75
67
  if hash.key? 'redirectPaymentMethodSpecificInput'
76
68
  raise TypeError, "value '%s' is not a Hash" % [hash['redirectPaymentMethodSpecificInput']] unless hash['redirectPaymentMethodSpecificInput'].is_a? Hash
77
69
  @redirect_payment_method_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificInput.new_from_hash(hash['redirectPaymentMethodSpecificInput'])
@@ -3,7 +3,6 @@
3
3
  #
4
4
  require 'onlinepayments/sdk/data_object'
5
5
  require 'onlinepayments/sdk/domain/credit_card_specific_input_hosted_tokenization'
6
- require 'onlinepayments/sdk/domain/page_customization'
7
6
  require 'onlinepayments/sdk/domain/payment_product_filters_hosted_tokenization'
8
7
 
9
8
  module OnlinePayments::SDK
@@ -12,7 +11,6 @@ module OnlinePayments::SDK
12
11
  # @attr [true/false] ask_consumer_consent
13
12
  # @attr [OnlinePayments::SDK::Domain::CreditCardSpecificInputHostedTokenization] credit_card_specific_input
14
13
  # @attr [String] locale
15
- # @attr [OnlinePayments::SDK::Domain::PageCustomization] page_customization
16
14
  # @attr [OnlinePayments::SDK::Domain::PaymentProductFiltersHostedTokenization] payment_product_filters
17
15
  # @attr [String] tokens
18
16
  # @attr [String] variant
@@ -20,7 +18,6 @@ module OnlinePayments::SDK
20
18
  attr_accessor :ask_consumer_consent
21
19
  attr_accessor :credit_card_specific_input
22
20
  attr_accessor :locale
23
- attr_accessor :page_customization
24
21
  attr_accessor :payment_product_filters
25
22
  attr_accessor :tokens
26
23
  attr_accessor :variant
@@ -31,7 +28,6 @@ module OnlinePayments::SDK
31
28
  hash['askConsumerConsent'] = @ask_consumer_consent unless @ask_consumer_consent.nil?
32
29
  hash['creditCardSpecificInput'] = @credit_card_specific_input.to_h if @credit_card_specific_input
33
30
  hash['locale'] = @locale unless @locale.nil?
34
- hash['pageCustomization'] = @page_customization.to_h if @page_customization
35
31
  hash['paymentProductFilters'] = @payment_product_filters.to_h if @payment_product_filters
36
32
  hash['tokens'] = @tokens unless @tokens.nil?
37
33
  hash['variant'] = @variant unless @variant.nil?
@@ -46,10 +42,6 @@ module OnlinePayments::SDK
46
42
  @credit_card_specific_input = OnlinePayments::SDK::Domain::CreditCardSpecificInputHostedTokenization.new_from_hash(hash['creditCardSpecificInput'])
47
43
  end
48
44
  @locale = hash['locale'] if hash.key? 'locale'
49
- if hash.key? 'pageCustomization'
50
- raise TypeError, "value '%s' is not a Hash" % [hash['pageCustomization']] unless hash['pageCustomization'].is_a? Hash
51
- @page_customization = OnlinePayments::SDK::Domain::PageCustomization.new_from_hash(hash['pageCustomization'])
52
- end
53
45
  if hash.key? 'paymentProductFilters'
54
46
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProductFilters']] unless hash['paymentProductFilters'].is_a? Hash
55
47
  @payment_product_filters = OnlinePayments::SDK::Domain::PaymentProductFiltersHostedTokenization.new_from_hash(hash['paymentProductFilters'])
@@ -6,7 +6,6 @@ require 'onlinepayments/sdk/domain/card_payment_method_specific_input'
6
6
  require 'onlinepayments/sdk/domain/fraud_fields'
7
7
  require 'onlinepayments/sdk/domain/mobile_payment_method_specific_input'
8
8
  require 'onlinepayments/sdk/domain/order'
9
- require 'onlinepayments/sdk/domain/page_customization'
10
9
  require 'onlinepayments/sdk/domain/redirect_payment_method_specific_input'
11
10
  require 'onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input'
12
11
 
@@ -19,10 +18,8 @@ module OnlinePayments::SDK
19
18
  # @attr [String] hosted_tokenization_id
20
19
  # @attr [OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificInput] mobile_payment_method_specific_input
21
20
  # @attr [OnlinePayments::SDK::Domain::Order] order
22
- # @attr [OnlinePayments::SDK::Domain::PageCustomization] page_customization
23
21
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificInput] redirect_payment_method_specific_input
24
22
  # @attr [OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificInput] sepa_direct_debit_payment_method_specific_input
25
- # @attr [Integer] session_timeout
26
23
  class CreatePaymentRequest < OnlinePayments::SDK::DataObject
27
24
  attr_accessor :card_payment_method_specific_input
28
25
  attr_accessor :encrypted_customer_input
@@ -30,10 +27,8 @@ module OnlinePayments::SDK
30
27
  attr_accessor :hosted_tokenization_id
31
28
  attr_accessor :mobile_payment_method_specific_input
32
29
  attr_accessor :order
33
- attr_accessor :page_customization
34
30
  attr_accessor :redirect_payment_method_specific_input
35
31
  attr_accessor :sepa_direct_debit_payment_method_specific_input
36
- attr_accessor :session_timeout
37
32
 
38
33
  # @return (Hash)
39
34
  def to_h
@@ -44,10 +39,8 @@ module OnlinePayments::SDK
44
39
  hash['hostedTokenizationId'] = @hosted_tokenization_id unless @hosted_tokenization_id.nil?
45
40
  hash['mobilePaymentMethodSpecificInput'] = @mobile_payment_method_specific_input.to_h if @mobile_payment_method_specific_input
46
41
  hash['order'] = @order.to_h if @order
47
- hash['pageCustomization'] = @page_customization.to_h if @page_customization
48
42
  hash['redirectPaymentMethodSpecificInput'] = @redirect_payment_method_specific_input.to_h if @redirect_payment_method_specific_input
49
43
  hash['sepaDirectDebitPaymentMethodSpecificInput'] = @sepa_direct_debit_payment_method_specific_input.to_h if @sepa_direct_debit_payment_method_specific_input
50
- hash['sessionTimeout'] = @session_timeout unless @session_timeout.nil?
51
44
  hash
52
45
  end
53
46
 
@@ -71,10 +64,6 @@ module OnlinePayments::SDK
71
64
  raise TypeError, "value '%s' is not a Hash" % [hash['order']] unless hash['order'].is_a? Hash
72
65
  @order = OnlinePayments::SDK::Domain::Order.new_from_hash(hash['order'])
73
66
  end
74
- if hash.key? 'pageCustomization'
75
- raise TypeError, "value '%s' is not a Hash" % [hash['pageCustomization']] unless hash['pageCustomization'].is_a? Hash
76
- @page_customization = OnlinePayments::SDK::Domain::PageCustomization.new_from_hash(hash['pageCustomization'])
77
- end
78
67
  if hash.key? 'redirectPaymentMethodSpecificInput'
79
68
  raise TypeError, "value '%s' is not a Hash" % [hash['redirectPaymentMethodSpecificInput']] unless hash['redirectPaymentMethodSpecificInput'].is_a? Hash
80
69
  @redirect_payment_method_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificInput.new_from_hash(hash['redirectPaymentMethodSpecificInput'])
@@ -83,7 +72,6 @@ module OnlinePayments::SDK
83
72
  raise TypeError, "value '%s' is not a Hash" % [hash['sepaDirectDebitPaymentMethodSpecificInput']] unless hash['sepaDirectDebitPaymentMethodSpecificInput'].is_a? Hash
84
73
  @sepa_direct_debit_payment_method_specific_input = OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificInput.new_from_hash(hash['sepaDirectDebitPaymentMethodSpecificInput'])
85
74
  end
86
- @session_timeout = hash['sessionTimeout'] if hash.key? 'sessionTimeout'
87
75
  end
88
76
  end
89
77
  end
@@ -0,0 +1,42 @@
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] city
10
+ # @attr [String] country_code
11
+ # @attr [String] house_number
12
+ # @attr [String] street
13
+ # @attr [String] zip
14
+ class MandateAddressResponse < OnlinePayments::SDK::DataObject
15
+ attr_accessor :city
16
+ attr_accessor :country_code
17
+ attr_accessor :house_number
18
+ attr_accessor :street
19
+ attr_accessor :zip
20
+
21
+ # @return (Hash)
22
+ def to_h
23
+ hash = super
24
+ hash['city'] = @city unless @city.nil?
25
+ hash['countryCode'] = @country_code unless @country_code.nil?
26
+ hash['houseNumber'] = @house_number unless @house_number.nil?
27
+ hash['street'] = @street unless @street.nil?
28
+ hash['zip'] = @zip unless @zip.nil?
29
+ hash
30
+ end
31
+
32
+ def from_hash(hash)
33
+ super
34
+ @city = hash['city'] if hash.key? 'city'
35
+ @country_code = hash['countryCode'] if hash.key? 'countryCode'
36
+ @house_number = hash['houseNumber'] if hash.key? 'houseNumber'
37
+ @street = hash['street'] if hash.key? 'street'
38
+ @zip = hash['zip'] if hash.key? 'zip'
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,58 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/bank_account_iban'
6
+ require 'onlinepayments/sdk/domain/mandate_address_response'
7
+ require 'onlinepayments/sdk/domain/mandate_contact_details'
8
+ require 'onlinepayments/sdk/domain/mandate_personal_information_response'
9
+
10
+ module OnlinePayments::SDK
11
+ module Domain
12
+
13
+ # @attr [OnlinePayments::SDK::Domain::BankAccountIban] bank_account_iban
14
+ # @attr [String] company_name
15
+ # @attr [OnlinePayments::SDK::Domain::MandateContactDetails] contact_details
16
+ # @attr [OnlinePayments::SDK::Domain::MandateAddressResponse] mandate_address
17
+ # @attr [OnlinePayments::SDK::Domain::MandatePersonalInformationResponse] personal_information
18
+ class MandateCustomerResponse < OnlinePayments::SDK::DataObject
19
+ attr_accessor :bank_account_iban
20
+ attr_accessor :company_name
21
+ attr_accessor :contact_details
22
+ attr_accessor :mandate_address
23
+ attr_accessor :personal_information
24
+
25
+ # @return (Hash)
26
+ def to_h
27
+ hash = super
28
+ hash['bankAccountIban'] = @bank_account_iban.to_h if @bank_account_iban
29
+ hash['companyName'] = @company_name unless @company_name.nil?
30
+ hash['contactDetails'] = @contact_details.to_h if @contact_details
31
+ hash['mandateAddress'] = @mandate_address.to_h if @mandate_address
32
+ hash['personalInformation'] = @personal_information.to_h if @personal_information
33
+ hash
34
+ end
35
+
36
+ def from_hash(hash)
37
+ super
38
+ if hash.key? 'bankAccountIban'
39
+ raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountIban']] unless hash['bankAccountIban'].is_a? Hash
40
+ @bank_account_iban = OnlinePayments::SDK::Domain::BankAccountIban.new_from_hash(hash['bankAccountIban'])
41
+ end
42
+ @company_name = hash['companyName'] if hash.key? 'companyName'
43
+ if hash.key? 'contactDetails'
44
+ raise TypeError, "value '%s' is not a Hash" % [hash['contactDetails']] unless hash['contactDetails'].is_a? Hash
45
+ @contact_details = OnlinePayments::SDK::Domain::MandateContactDetails.new_from_hash(hash['contactDetails'])
46
+ end
47
+ if hash.key? 'mandateAddress'
48
+ raise TypeError, "value '%s' is not a Hash" % [hash['mandateAddress']] unless hash['mandateAddress'].is_a? Hash
49
+ @mandate_address = OnlinePayments::SDK::Domain::MandateAddressResponse.new_from_hash(hash['mandateAddress'])
50
+ end
51
+ if hash.key? 'personalInformation'
52
+ raise TypeError, "value '%s' is not a Hash" % [hash['personalInformation']] unless hash['personalInformation'].is_a? Hash
53
+ @personal_information = OnlinePayments::SDK::Domain::MandatePersonalInformationResponse.new_from_hash(hash['personalInformation'])
54
+ end
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,34 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/mandate_personal_name_response'
6
+
7
+ module OnlinePayments::SDK
8
+ module Domain
9
+
10
+ # @attr [OnlinePayments::SDK::Domain::MandatePersonalNameResponse] name
11
+ # @attr [String] title
12
+ class MandatePersonalInformationResponse < OnlinePayments::SDK::DataObject
13
+ attr_accessor :name
14
+ attr_accessor :title
15
+
16
+ # @return (Hash)
17
+ def to_h
18
+ hash = super
19
+ hash['name'] = @name.to_h if @name
20
+ hash['title'] = @title unless @title.nil?
21
+ hash
22
+ end
23
+
24
+ def from_hash(hash)
25
+ super
26
+ if hash.key? 'name'
27
+ raise TypeError, "value '%s' is not a Hash" % [hash['name']] unless hash['name'].is_a? Hash
28
+ @name = OnlinePayments::SDK::Domain::MandatePersonalNameResponse.new_from_hash(hash['name'])
29
+ end
30
+ @title = hash['title'] if hash.key? 'title'
31
+ end
32
+ end
33
+ end
34
+ end
@@ -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] first_name
10
+ # @attr [String] surname
11
+ class MandatePersonalNameResponse < OnlinePayments::SDK::DataObject
12
+ attr_accessor :first_name
13
+ attr_accessor :surname
14
+
15
+ # @return (Hash)
16
+ def to_h
17
+ hash = super
18
+ hash['firstName'] = @first_name unless @first_name.nil?
19
+ hash['surname'] = @surname unless @surname.nil?
20
+ hash
21
+ end
22
+
23
+ def from_hash(hash)
24
+ super
25
+ @first_name = hash['firstName'] if hash.key? 'firstName'
26
+ @surname = hash['surname'] if hash.key? 'surname'
27
+ end
28
+ end
29
+ end
30
+ end
@@ -2,14 +2,15 @@
2
2
  # This class was auto-generated.
3
3
  #
4
4
  require 'onlinepayments/sdk/data_object'
5
- require 'onlinepayments/sdk/domain/mandate_customer'
5
+ require 'onlinepayments/sdk/domain/mandate_customer_response'
6
6
 
7
7
  module OnlinePayments::SDK
8
8
  module Domain
9
9
 
10
10
  # @attr [String] alias
11
- # @attr [OnlinePayments::SDK::Domain::MandateCustomer] customer
11
+ # @attr [OnlinePayments::SDK::Domain::MandateCustomerResponse] customer
12
12
  # @attr [String] customer_reference
13
+ # @attr [String] mandate_pdf
13
14
  # @attr [String] recurrence_type
14
15
  # @attr [String] status
15
16
  # @attr [String] unique_mandate_reference
@@ -17,6 +18,7 @@ module OnlinePayments::SDK
17
18
  attr_accessor :alias
18
19
  attr_accessor :customer
19
20
  attr_accessor :customer_reference
21
+ attr_accessor :mandate_pdf
20
22
  attr_accessor :recurrence_type
21
23
  attr_accessor :status
22
24
  attr_accessor :unique_mandate_reference
@@ -27,6 +29,7 @@ module OnlinePayments::SDK
27
29
  hash['alias'] = @alias unless @alias.nil?
28
30
  hash['customer'] = @customer.to_h if @customer
29
31
  hash['customerReference'] = @customer_reference unless @customer_reference.nil?
32
+ hash['mandatePdf'] = @mandate_pdf unless @mandate_pdf.nil?
30
33
  hash['recurrenceType'] = @recurrence_type unless @recurrence_type.nil?
31
34
  hash['status'] = @status unless @status.nil?
32
35
  hash['uniqueMandateReference'] = @unique_mandate_reference unless @unique_mandate_reference.nil?
@@ -38,9 +41,10 @@ module OnlinePayments::SDK
38
41
  @alias = hash['alias'] if hash.key? 'alias'
39
42
  if hash.key? 'customer'
40
43
  raise TypeError, "value '%s' is not a Hash" % [hash['customer']] unless hash['customer'].is_a? Hash
41
- @customer = OnlinePayments::SDK::Domain::MandateCustomer.new_from_hash(hash['customer'])
44
+ @customer = OnlinePayments::SDK::Domain::MandateCustomerResponse.new_from_hash(hash['customer'])
42
45
  end
43
46
  @customer_reference = hash['customerReference'] if hash.key? 'customerReference'
47
+ @mandate_pdf = hash['mandatePdf'] if hash.key? 'mandatePdf'
44
48
  @recurrence_type = hash['recurrenceType'] if hash.key? 'recurrenceType'
45
49
  @status = hash['status'] if hash.key? 'status'
46
50
  @unique_mandate_reference = hash['uniqueMandateReference'] if hash.key? 'uniqueMandateReference'