onlinepayments-sdk-ruby 6.3.1 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe015629d32e6e358cf0bfe83726a3e80fc22dd3f12f0be5c6b806e99f12fb4a
4
- data.tar.gz: 360e97f6ce3a57ef4db88a546e32c24b94b02c0fed060afcf59526f99df46d88
3
+ metadata.gz: 52e82f952e61980375271eaa15607b061b42496558fd79468d462f9e0948fdd5
4
+ data.tar.gz: 030072f63759120ce93d1c6da301bfeb54c555674f329bde27ba351a761e7840
5
5
  SHA512:
6
- metadata.gz: f04d811c01094bcc5f337eb9aa29a94a3bdbc1eec988ea02478cf228331bcf1d12823c5ddd521e0f7833e2064ef8cfc033141529972f082ff5664090df25b689
7
- data.tar.gz: d8192455c69d32cbbfe1a16e46c3399a506a36748becd639ffe3ece3f98c564575407dc71e3833d348da863ced1f5efda12cad2a9d50ac17884b53e87614681c
6
+ metadata.gz: 9396cfa5c9621e4e05eaafba67daa3b06618731dfcf957379f518c10076ba36aad1ca38d80d7939fbffb5805f2e751d20fd286fe1f127d1ac0e8f2d278568b8a
7
+ data.tar.gz: c52cc91f0994268bb6d5b989c64d22623e4505d25f7f8a9530aff8e33d53bf628e790013152e2a1a6f344d42def0f4ad8438526f01eb667066bcf99cff14e70e
@@ -16,6 +16,7 @@ module OnlinePayments
16
16
  CONTENT_TYPE = 'Content-Type'.freeze
17
17
  DATE = 'Date'.freeze
18
18
  XGCS = 'X-GCS'.freeze
19
+ XGCS_LOWER = XGCS.downcase.freeze
19
20
 
20
21
  # Constructs a new V1HmacAuthenticator instance using the provided CommunicatorConfiguration.
21
22
  #
@@ -66,7 +67,7 @@ module OnlinePayments
66
67
  content_type = value
67
68
  when name.casecmp(DATE).zero?
68
69
  date = value
69
- when to_canonical_header_name(name).start_with?("X-GCS")
70
+ when to_canonical_header_name(name).start_with?(XGCS_LOWER)
70
71
  xgc_http_headers << [to_canonical_header_name(name), to_canonical_header_value(value)]
71
72
  end
72
73
  end
@@ -13,7 +13,7 @@ module OnlinePayments
13
13
  class MetadataProvider
14
14
  private
15
15
 
16
- SDK_VERSION = '6.3.1'.freeze
16
+ SDK_VERSION = '6.4.0'.freeze
17
17
  SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'.freeze
18
18
  PROHIBITED_HEADERS = [SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key', 'Date', 'Content-Type', 'Authorization'].sort!.freeze
19
19
  CHARSET = 'utf-8'.freeze
@@ -8,6 +8,7 @@ require 'onlinepayments/sdk/domain/click_to_pay'
8
8
  require 'onlinepayments/sdk/domain/currency_conversion'
9
9
  require 'onlinepayments/sdk/domain/data_object'
10
10
  require 'onlinepayments/sdk/domain/external_token_linked'
11
+ require 'onlinepayments/sdk/domain/network_token_essentials'
11
12
  require 'onlinepayments/sdk/domain/payment_product3208_specific_output'
12
13
  require 'onlinepayments/sdk/domain/payment_product3209_specific_output'
13
14
  require 'onlinepayments/sdk/domain/reattempt_instructions'
@@ -21,10 +22,12 @@ module OnlinePayments
21
22
  # @attr [String] authorisation_code
22
23
  # @attr [OnlinePayments::SDK::Domain::CardEssentials] card
23
24
  # @attr [OnlinePayments::SDK::Domain::ClickToPay] click_to_pay
25
+ # @attr [String] cobrand_selection_indicator
24
26
  # @attr [OnlinePayments::SDK::Domain::CurrencyConversion] currency_conversion
25
27
  # @attr [OnlinePayments::SDK::Domain::ExternalTokenLinked] external_token_linked
26
28
  # @attr [OnlinePayments::SDK::Domain::CardFraudResults] fraud_results
27
29
  # @attr [String] initial_scheme_transaction_id
30
+ # @attr [OnlinePayments::SDK::Domain::NetworkTokenEssentials] network_token_data
28
31
  # @attr [String] payment_account_reference
29
32
  # @attr [String] payment_option
30
33
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct3208SpecificOutput] payment_product3208_specific_output
@@ -46,6 +49,8 @@ module OnlinePayments
46
49
 
47
50
  attr_accessor :click_to_pay
48
51
 
52
+ attr_accessor :cobrand_selection_indicator
53
+
49
54
  attr_accessor :currency_conversion
50
55
 
51
56
  attr_accessor :external_token_linked
@@ -54,6 +59,8 @@ module OnlinePayments
54
59
 
55
60
  attr_accessor :initial_scheme_transaction_id
56
61
 
62
+ attr_accessor :network_token_data
63
+
57
64
  attr_accessor :payment_account_reference
58
65
 
59
66
  attr_accessor :payment_option
@@ -80,10 +87,12 @@ module OnlinePayments
80
87
  hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
81
88
  hash['card'] = @card.to_h unless @card.nil?
82
89
  hash['clickToPay'] = @click_to_pay.to_h unless @click_to_pay.nil?
90
+ hash['cobrandSelectionIndicator'] = @cobrand_selection_indicator unless @cobrand_selection_indicator.nil?
83
91
  hash['currencyConversion'] = @currency_conversion.to_h unless @currency_conversion.nil?
84
92
  hash['externalTokenLinked'] = @external_token_linked.to_h unless @external_token_linked.nil?
85
93
  hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
86
94
  hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
95
+ hash['networkTokenData'] = @network_token_data.to_h unless @network_token_data.nil?
87
96
  hash['paymentAccountReference'] = @payment_account_reference unless @payment_account_reference.nil?
88
97
  hash['paymentOption'] = @payment_option unless @payment_option.nil?
89
98
  hash['paymentProduct3208SpecificOutput'] = @payment_product3208_specific_output.to_h unless @payment_product3208_specific_output.nil?
@@ -116,6 +125,9 @@ module OnlinePayments
116
125
  raise TypeError, "value '%s' is not a Hash" % [hash['clickToPay']] unless hash['clickToPay'].is_a? Hash
117
126
  @click_to_pay = OnlinePayments::SDK::Domain::ClickToPay.new_from_hash(hash['clickToPay'])
118
127
  end
128
+ if hash.has_key? 'cobrandSelectionIndicator'
129
+ @cobrand_selection_indicator = hash['cobrandSelectionIndicator']
130
+ end
119
131
  if hash.has_key? 'currencyConversion'
120
132
  raise TypeError, "value '%s' is not a Hash" % [hash['currencyConversion']] unless hash['currencyConversion'].is_a? Hash
121
133
  @currency_conversion = OnlinePayments::SDK::Domain::CurrencyConversion.new_from_hash(hash['currencyConversion'])
@@ -131,6 +143,10 @@ module OnlinePayments
131
143
  if hash.has_key? 'initialSchemeTransactionId'
132
144
  @initial_scheme_transaction_id = hash['initialSchemeTransactionId']
133
145
  end
146
+ if hash.has_key? 'networkTokenData'
147
+ raise TypeError, "value '%s' is not a Hash" % [hash['networkTokenData']] unless hash['networkTokenData'].is_a? Hash
148
+ @network_token_data = OnlinePayments::SDK::Domain::NetworkTokenEssentials.new_from_hash(hash['networkTokenData'])
149
+ end
134
150
  if hash.has_key? 'paymentAccountReference'
135
151
  @payment_account_reference = hash['paymentAccountReference']
136
152
  end
@@ -17,6 +17,7 @@ module OnlinePayments
17
17
  # @attr [String] encrypted_customer_input
18
18
  # @attr [OnlinePayments::SDK::Domain::Feedbacks] feedbacks
19
19
  # @attr [OnlinePayments::SDK::Domain::FraudFields] fraud_fields
20
+ # @attr [String] hosted_fields_session_id
20
21
  # @attr [String] hosted_tokenization_id
21
22
  # @attr [OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificInput] mobile_payment_method_specific_input
22
23
  # @attr [OnlinePayments::SDK::Domain::Order] order
@@ -32,6 +33,8 @@ module OnlinePayments
32
33
 
33
34
  attr_accessor :fraud_fields
34
35
 
36
+ attr_accessor :hosted_fields_session_id
37
+
35
38
  attr_accessor :hosted_tokenization_id
36
39
 
37
40
  attr_accessor :mobile_payment_method_specific_input
@@ -49,6 +52,7 @@ module OnlinePayments
49
52
  hash['encryptedCustomerInput'] = @encrypted_customer_input unless @encrypted_customer_input.nil?
50
53
  hash['feedbacks'] = @feedbacks.to_h unless @feedbacks.nil?
51
54
  hash['fraudFields'] = @fraud_fields.to_h unless @fraud_fields.nil?
55
+ hash['hostedFieldsSessionId'] = @hosted_fields_session_id unless @hosted_fields_session_id.nil?
52
56
  hash['hostedTokenizationId'] = @hosted_tokenization_id unless @hosted_tokenization_id.nil?
53
57
  hash['mobilePaymentMethodSpecificInput'] = @mobile_payment_method_specific_input.to_h unless @mobile_payment_method_specific_input.nil?
54
58
  hash['order'] = @order.to_h unless @order.nil?
@@ -74,6 +78,9 @@ module OnlinePayments
74
78
  raise TypeError, "value '%s' is not a Hash" % [hash['fraudFields']] unless hash['fraudFields'].is_a? Hash
75
79
  @fraud_fields = OnlinePayments::SDK::Domain::FraudFields.new_from_hash(hash['fraudFields'])
76
80
  end
81
+ if hash.has_key? 'hostedFieldsSessionId'
82
+ @hosted_fields_session_id = hash['hostedFieldsSessionId']
83
+ end
77
84
  if hash.has_key? 'hostedTokenizationId'
78
85
  @hosted_tokenization_id = hash['hostedTokenizationId']
79
86
  end
@@ -10,6 +10,7 @@ module OnlinePayments
10
10
  module Domain
11
11
  # @attr [Integer] allowed_number_of_payment_attempts
12
12
  # @attr [OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInputForHostedCheckout] card_payment_method_specific_input
13
+ # @attr [true/false] is_new_unscheduled_card_on_file_series
13
14
  # @attr [true/false] is_recurring
14
15
  # @attr [String] locale
15
16
  # @attr [OnlinePayments::SDK::Domain::PaymentProductFiltersHostedCheckout] payment_product_filters
@@ -24,6 +25,8 @@ module OnlinePayments
24
25
 
25
26
  attr_accessor :card_payment_method_specific_input
26
27
 
28
+ attr_accessor :is_new_unscheduled_card_on_file_series
29
+
27
30
  attr_accessor :is_recurring
28
31
 
29
32
  attr_accessor :locale
@@ -45,6 +48,7 @@ module OnlinePayments
45
48
  hash = super
46
49
  hash['allowedNumberOfPaymentAttempts'] = @allowed_number_of_payment_attempts unless @allowed_number_of_payment_attempts.nil?
47
50
  hash['cardPaymentMethodSpecificInput'] = @card_payment_method_specific_input.to_h unless @card_payment_method_specific_input.nil?
51
+ hash['isNewUnscheduledCardOnFileSeries'] = @is_new_unscheduled_card_on_file_series unless @is_new_unscheduled_card_on_file_series.nil?
48
52
  hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
49
53
  hash['locale'] = @locale unless @locale.nil?
50
54
  hash['paymentProductFilters'] = @payment_product_filters.to_h unless @payment_product_filters.nil?
@@ -65,6 +69,9 @@ module OnlinePayments
65
69
  raise TypeError, "value '%s' is not a Hash" % [hash['cardPaymentMethodSpecificInput']] unless hash['cardPaymentMethodSpecificInput'].is_a? Hash
66
70
  @card_payment_method_specific_input = OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInputForHostedCheckout.new_from_hash(hash['cardPaymentMethodSpecificInput'])
67
71
  end
72
+ if hash.has_key? 'isNewUnscheduledCardOnFileSeries'
73
+ @is_new_unscheduled_card_on_file_series = hash['isNewUnscheduledCardOnFileSeries']
74
+ end
68
75
  if hash.has_key? 'isRecurring'
69
76
  @is_recurring = hash['isRecurring']
70
77
  end
@@ -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] bin
10
+ # @attr [String] country_code
11
+ # @attr [String] network_token
12
+ # @attr [String] network_token_state
13
+ # @attr [true/false] network_token_used
14
+ # @attr [String] token_expiry_date
15
+ class NetworkTokenEssentials < OnlinePayments::SDK::Domain::DataObject
16
+
17
+ attr_accessor :bin
18
+
19
+ attr_accessor :country_code
20
+
21
+ attr_accessor :network_token
22
+
23
+ attr_accessor :network_token_state
24
+
25
+ attr_accessor :network_token_used
26
+
27
+ attr_accessor :token_expiry_date
28
+
29
+ # @return (Hash)
30
+ def to_h
31
+ hash = super
32
+ hash['bin'] = @bin unless @bin.nil?
33
+ hash['countryCode'] = @country_code unless @country_code.nil?
34
+ hash['networkToken'] = @network_token unless @network_token.nil?
35
+ hash['networkTokenState'] = @network_token_state unless @network_token_state.nil?
36
+ hash['networkTokenUsed'] = @network_token_used unless @network_token_used.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? 'bin'
44
+ @bin = hash['bin']
45
+ end
46
+ if hash.has_key? 'countryCode'
47
+ @country_code = hash['countryCode']
48
+ end
49
+ if hash.has_key? 'networkToken'
50
+ @network_token = hash['networkToken']
51
+ end
52
+ if hash.has_key? 'networkTokenState'
53
+ @network_token_state = hash['networkTokenState']
54
+ end
55
+ if hash.has_key? 'networkTokenUsed'
56
+ @network_token_used = hash['networkTokenUsed']
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
@@ -0,0 +1,44 @@
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] expiry_date
10
+ # @attr [String] masked_token
11
+ # @attr [String] token_state
12
+ class NetworkTokenLinked < OnlinePayments::SDK::Domain::DataObject
13
+
14
+ attr_accessor :expiry_date
15
+
16
+ attr_accessor :masked_token
17
+
18
+ attr_accessor :token_state
19
+
20
+ # @return (Hash)
21
+ def to_h
22
+ hash = super
23
+ hash['expiryDate'] = @expiry_date unless @expiry_date.nil?
24
+ hash['maskedToken'] = @masked_token unless @masked_token.nil?
25
+ hash['tokenState'] = @token_state unless @token_state.nil?
26
+ hash
27
+ end
28
+
29
+ def from_hash(hash)
30
+ super
31
+ if hash.has_key? 'expiryDate'
32
+ @expiry_date = hash['expiryDate']
33
+ end
34
+ if hash.has_key? 'maskedToken'
35
+ @masked_token = hash['maskedToken']
36
+ end
37
+ if hash.has_key? 'tokenState'
38
+ @token_state = hash['tokenState']
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
44
+ 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] app_switch_link
10
+ # @attr [String] payment_request_token
11
+ class PaymentProduct350 < OnlinePayments::SDK::Domain::DataObject
12
+
13
+ attr_accessor :app_switch_link
14
+
15
+ attr_accessor :payment_request_token
16
+
17
+ # @return (Hash)
18
+ def to_h
19
+ hash = super
20
+ hash['appSwitchLink'] = @app_switch_link unless @app_switch_link.nil?
21
+ hash['paymentRequestToken'] = @payment_request_token unless @payment_request_token.nil?
22
+ hash
23
+ end
24
+
25
+ def from_hash(hash)
26
+ super
27
+ if hash.has_key? 'appSwitchLink'
28
+ @app_switch_link = hash['appSwitchLink']
29
+ end
30
+ if hash.has_key? 'paymentRequestToken'
31
+ @payment_request_token = hash['paymentRequestToken']
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -8,6 +8,7 @@ module OnlinePayments
8
8
  module Domain
9
9
  # @attr [String] message
10
10
  # @attr [String] polling_url
11
+ # @deprecated Deprecated by pendingAuthentication. Contains the third party data for payment product 5001 (Bizum)
11
12
  class PaymentProduct5001 < OnlinePayments::SDK::Domain::DataObject
12
13
 
13
14
  attr_accessor :message
@@ -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] polling_url
10
+ class PendingAuthentication < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :polling_url
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['pollingUrl'] = @polling_url unless @polling_url.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'pollingUrl'
24
+ @polling_url = hash['pollingUrl']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -7,14 +7,18 @@ module OnlinePayments
7
7
  module SDK
8
8
  module Domain
9
9
  # @attr [true/false] adjustable_amount
10
+ # @attr [String] beneficiary_id
10
11
  class RedirectPaymentProduct5412SpecificInput < OnlinePayments::SDK::Domain::DataObject
11
12
 
12
13
  attr_accessor :adjustable_amount
13
14
 
15
+ attr_accessor :beneficiary_id
16
+
14
17
  # @return (Hash)
15
18
  def to_h
16
19
  hash = super
17
20
  hash['adjustableAmount'] = @adjustable_amount unless @adjustable_amount.nil?
21
+ hash['beneficiaryId'] = @beneficiary_id unless @beneficiary_id.nil?
18
22
  hash
19
23
  end
20
24
 
@@ -23,6 +27,9 @@ module OnlinePayments
23
27
  if hash.has_key? 'adjustableAmount'
24
28
  @adjustable_amount = hash['adjustableAmount']
25
29
  end
30
+ if hash.has_key? 'beneficiaryId'
31
+ @beneficiary_id = hash['beneficiaryId']
32
+ end
26
33
  end
27
34
  end
28
35
  end
@@ -3,34 +3,44 @@
3
3
  #
4
4
  require 'onlinepayments/sdk/domain/data_object'
5
5
  require 'onlinepayments/sdk/domain/payment_product3012'
6
+ require 'onlinepayments/sdk/domain/payment_product350'
6
7
  require 'onlinepayments/sdk/domain/payment_product5001'
7
8
  require 'onlinepayments/sdk/domain/payment_product5404'
8
9
  require 'onlinepayments/sdk/domain/payment_product5407'
10
+ require 'onlinepayments/sdk/domain/pending_authentication'
9
11
 
10
12
  module OnlinePayments
11
13
  module SDK
12
14
  module Domain
13
15
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct3012] payment_product3012
16
+ # @attr [OnlinePayments::SDK::Domain::PaymentProduct350] payment_product350
14
17
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5001] payment_product5001
15
18
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5404] payment_product5404
16
19
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5407] payment_product5407
20
+ # @attr [OnlinePayments::SDK::Domain::PendingAuthentication] pending_authentication
17
21
  class ShowFormData < OnlinePayments::SDK::Domain::DataObject
18
22
 
19
23
  attr_accessor :payment_product3012
20
24
 
25
+ attr_accessor :payment_product350
26
+
21
27
  attr_accessor :payment_product5001
22
28
 
23
29
  attr_accessor :payment_product5404
24
30
 
25
31
  attr_accessor :payment_product5407
26
32
 
33
+ attr_accessor :pending_authentication
34
+
27
35
  # @return (Hash)
28
36
  def to_h
29
37
  hash = super
30
38
  hash['paymentProduct3012'] = @payment_product3012.to_h unless @payment_product3012.nil?
39
+ hash['paymentProduct350'] = @payment_product350.to_h unless @payment_product350.nil?
31
40
  hash['paymentProduct5001'] = @payment_product5001.to_h unless @payment_product5001.nil?
32
41
  hash['paymentProduct5404'] = @payment_product5404.to_h unless @payment_product5404.nil?
33
42
  hash['paymentProduct5407'] = @payment_product5407.to_h unless @payment_product5407.nil?
43
+ hash['pendingAuthentication'] = @pending_authentication.to_h unless @pending_authentication.nil?
34
44
  hash
35
45
  end
36
46
 
@@ -40,6 +50,10 @@ module OnlinePayments
40
50
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3012']] unless hash['paymentProduct3012'].is_a? Hash
41
51
  @payment_product3012 = OnlinePayments::SDK::Domain::PaymentProduct3012.new_from_hash(hash['paymentProduct3012'])
42
52
  end
53
+ if hash.has_key? 'paymentProduct350'
54
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct350']] unless hash['paymentProduct350'].is_a? Hash
55
+ @payment_product350 = OnlinePayments::SDK::Domain::PaymentProduct350.new_from_hash(hash['paymentProduct350'])
56
+ end
43
57
  if hash.has_key? 'paymentProduct5001'
44
58
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5001']] unless hash['paymentProduct5001'].is_a? Hash
45
59
  @payment_product5001 = OnlinePayments::SDK::Domain::PaymentProduct5001.new_from_hash(hash['paymentProduct5001'])
@@ -52,6 +66,10 @@ module OnlinePayments
52
66
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5407']] unless hash['paymentProduct5407'].is_a? Hash
53
67
  @payment_product5407 = OnlinePayments::SDK::Domain::PaymentProduct5407.new_from_hash(hash['paymentProduct5407'])
54
68
  end
69
+ if hash.has_key? 'pendingAuthentication'
70
+ raise TypeError, "value '%s' is not a Hash" % [hash['pendingAuthentication']] unless hash['pendingAuthentication'].is_a? Hash
71
+ @pending_authentication = OnlinePayments::SDK::Domain::PendingAuthentication.new_from_hash(hash['pendingAuthentication'])
72
+ end
55
73
  end
56
74
  end
57
75
  end
@@ -6,27 +6,20 @@ require 'onlinepayments/sdk/domain/data_object'
6
6
  module OnlinePayments
7
7
  module SDK
8
8
  module Domain
9
- # @attr [String] authorization_mode
10
9
  # @attr [String] subsequent_type
11
10
  class SubsequentPaymentProduct5001SpecificInput < OnlinePayments::SDK::Domain::DataObject
12
11
 
13
- attr_accessor :authorization_mode
14
-
15
12
  attr_accessor :subsequent_type
16
13
 
17
14
  # @return (Hash)
18
15
  def to_h
19
16
  hash = super
20
- hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
21
17
  hash['subsequentType'] = @subsequent_type unless @subsequent_type.nil?
22
18
  hash
23
19
  end
24
20
 
25
21
  def from_hash(hash)
26
22
  super
27
- if hash.has_key? 'authorizationMode'
28
- @authorization_mode = hash['authorizationMode']
29
- end
30
23
  if hash.has_key? 'subsequentType'
31
24
  @subsequent_type = hash['subsequentType']
32
25
  end
@@ -3,6 +3,7 @@
3
3
  #
4
4
  require 'onlinepayments/sdk/domain/data_object'
5
5
  require 'onlinepayments/sdk/domain/external_token_linked'
6
+ require 'onlinepayments/sdk/domain/network_token_linked'
6
7
  require 'onlinepayments/sdk/domain/token_card'
7
8
  require 'onlinepayments/sdk/domain/token_e_wallet'
8
9
 
@@ -14,6 +15,7 @@ module OnlinePayments
14
15
  # @attr [OnlinePayments::SDK::Domain::ExternalTokenLinked] external_token_linked
15
16
  # @attr [String] id
16
17
  # @attr [true/false] is_temporary
18
+ # @attr [OnlinePayments::SDK::Domain::NetworkTokenLinked] network_token_linked
17
19
  # @attr [Integer] payment_product_id
18
20
  class TokenResponse < OnlinePayments::SDK::Domain::DataObject
19
21
 
@@ -27,6 +29,8 @@ module OnlinePayments
27
29
 
28
30
  attr_accessor :is_temporary
29
31
 
32
+ attr_accessor :network_token_linked
33
+
30
34
  attr_accessor :payment_product_id
31
35
 
32
36
  # @return (Hash)
@@ -37,6 +41,7 @@ module OnlinePayments
37
41
  hash['externalTokenLinked'] = @external_token_linked.to_h unless @external_token_linked.nil?
38
42
  hash['id'] = @id unless @id.nil?
39
43
  hash['isTemporary'] = @is_temporary unless @is_temporary.nil?
44
+ hash['networkTokenLinked'] = @network_token_linked.to_h unless @network_token_linked.nil?
40
45
  hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
41
46
  hash
42
47
  end
@@ -61,6 +66,10 @@ module OnlinePayments
61
66
  if hash.has_key? 'isTemporary'
62
67
  @is_temporary = hash['isTemporary']
63
68
  end
69
+ if hash.has_key? 'networkTokenLinked'
70
+ raise TypeError, "value '%s' is not a Hash" % [hash['networkTokenLinked']] unless hash['networkTokenLinked'].is_a? Hash
71
+ @network_token_linked = OnlinePayments::SDK::Domain::NetworkTokenLinked.new_from_hash(hash['networkTokenLinked'])
72
+ end
64
73
  if hash.has_key? 'paymentProductId'
65
74
  @payment_product_id = hash['paymentProductId']
66
75
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'onlinepayments-sdk-ruby'
3
- spec.version = '6.3.1'
3
+ spec.version = '6.4.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: 6.3.1
4
+ version: 6.4.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-10-15 00:00:00.000000000 Z
11
+ date: 2025-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -304,6 +304,8 @@ files:
304
304
  - lib/onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters.rb
305
305
  - lib/onlinepayments/sdk/domain/multiple_payment_information.rb
306
306
  - lib/onlinepayments/sdk/domain/network_token_data.rb
307
+ - lib/onlinepayments/sdk/domain/network_token_essentials.rb
308
+ - lib/onlinepayments/sdk/domain/network_token_linked.rb
307
309
  - lib/onlinepayments/sdk/domain/omnichannel_payout_specific_input.rb
308
310
  - lib/onlinepayments/sdk/domain/omnichannel_refund_specific_input.rb
309
311
  - lib/onlinepayments/sdk/domain/operation_output.rb
@@ -340,6 +342,7 @@ files:
340
342
  - lib/onlinepayments/sdk/domain/payment_product3209_specific_input.rb
341
343
  - lib/onlinepayments/sdk/domain/payment_product3209_specific_output.rb
342
344
  - lib/onlinepayments/sdk/domain/payment_product320_specific_data.rb
345
+ - lib/onlinepayments/sdk/domain/payment_product350.rb
343
346
  - lib/onlinepayments/sdk/domain/payment_product5001.rb
344
347
  - lib/onlinepayments/sdk/domain/payment_product5001_specific_output.rb
345
348
  - lib/onlinepayments/sdk/domain/payment_product5100_specific_input.rb
@@ -372,6 +375,7 @@ files:
372
375
  - lib/onlinepayments/sdk/domain/payout_response.rb
373
376
  - lib/onlinepayments/sdk/domain/payout_result.rb
374
377
  - lib/onlinepayments/sdk/domain/payout_status_output.rb
378
+ - lib/onlinepayments/sdk/domain/pending_authentication.rb
375
379
  - lib/onlinepayments/sdk/domain/personal_information.rb
376
380
  - lib/onlinepayments/sdk/domain/personal_information_token.rb
377
381
  - lib/onlinepayments/sdk/domain/personal_name.rb