onlinepayments-sdk-ruby 4.14.0 → 4.16.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: c5bbb5c6a0448fddc02ac54770da4b4a7bacd4e1f15e33417f8b5bcbe58d9952
4
- data.tar.gz: 7cdb64f718370887abef35caca2f1336b3aa947d3e4d0fcc9c0917508bd40076
3
+ metadata.gz: f0bb67c94bd5f8e000fb9688e71e346837dde955160058f9b6db9950797ebc5a
4
+ data.tar.gz: 4aadeaeba5d777d2c857bf082fe142349b61c6fe7f4d29b169b20d6dadd7b5c8
5
5
  SHA512:
6
- metadata.gz: a6ec4a40ad926b7ca7134b1f972f87d268edfc79d76b4632eabb1e219a454d4cc6e124899e33e4b2ea1342cf3b7fc638d89067bc511d37b56b71114dbf03246d
7
- data.tar.gz: 3dec01511a445546da079d052cce9fa8c393e12829d512062e44f8609ae074a351105ab80500eb6c4bd8b3e26951b2a19f7ca3b12b979f11d5b4415974af454a
6
+ metadata.gz: 30f4dfeb625a981c46c9955d9087a44c6e3938695e07b912b1b40fe6b4989d2cc39c0daf822238f1968f37f4be6915f00b39ed19f1aac3e52876ca119fb83d45
7
+ data.tar.gz: 7b2ca1a1b946893ec1044e19104a112158a087500adab1049295d00cf86ac2da9130a44f9ceeb47f3ae405e19fa7866fdbe3b9b12a2b4a3daf0761d50dc849a3
@@ -22,6 +22,7 @@ module OnlinePayments::SDK
22
22
  # @attr [OnlinePayments::SDK::Domain::ExternalTokenLinked] external_token_linked
23
23
  # @attr [OnlinePayments::SDK::Domain::CardFraudResults] fraud_results
24
24
  # @attr [String] initial_scheme_transaction_id
25
+ # @attr [String] payment_account_reference
25
26
  # @attr [String] payment_option
26
27
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct3208SpecificOutput] payment_product3208_specific_output
27
28
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct3209SpecificOutput] payment_product3209_specific_output
@@ -38,6 +39,7 @@ module OnlinePayments::SDK
38
39
  attr_accessor :external_token_linked
39
40
  attr_accessor :fraud_results
40
41
  attr_accessor :initial_scheme_transaction_id
42
+ attr_accessor :payment_account_reference
41
43
  attr_accessor :payment_option
42
44
  attr_accessor :payment_product3208_specific_output
43
45
  attr_accessor :payment_product3209_specific_output
@@ -57,6 +59,7 @@ module OnlinePayments::SDK
57
59
  hash['externalTokenLinked'] = @external_token_linked.to_h if @external_token_linked
58
60
  hash['fraudResults'] = @fraud_results.to_h if @fraud_results
59
61
  hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
62
+ hash['paymentAccountReference'] = @payment_account_reference unless @payment_account_reference.nil?
60
63
  hash['paymentOption'] = @payment_option unless @payment_option.nil?
61
64
  hash['paymentProduct3208SpecificOutput'] = @payment_product3208_specific_output.to_h if @payment_product3208_specific_output
62
65
  hash['paymentProduct3209SpecificOutput'] = @payment_product3209_specific_output.to_h if @payment_product3209_specific_output
@@ -92,6 +95,7 @@ module OnlinePayments::SDK
92
95
  @fraud_results = OnlinePayments::SDK::Domain::CardFraudResults.new_from_hash(hash['fraudResults'])
93
96
  end
94
97
  @initial_scheme_transaction_id = hash['initialSchemeTransactionId'] if hash.key? 'initialSchemeTransactionId'
98
+ @payment_account_reference = hash['paymentAccountReference'] if hash.key? 'paymentAccountReference'
95
99
  @payment_option = hash['paymentOption'] if hash.key? 'paymentOption'
96
100
  if hash.key? 'paymentProduct3208SpecificOutput'
97
101
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3208SpecificOutput']] unless hash['paymentProduct3208SpecificOutput'].is_a? Hash
@@ -4,6 +4,7 @@
4
4
  require 'onlinepayments/sdk/data_object'
5
5
  require 'onlinepayments/sdk/domain/redirect_payment_product3306_specific_input'
6
6
  require 'onlinepayments/sdk/domain/redirect_payment_product5406_specific_input'
7
+ require 'onlinepayments/sdk/domain/redirect_payment_product5408_specific_input'
7
8
  require 'onlinepayments/sdk/domain/redirect_payment_product809_specific_input'
8
9
  require 'onlinepayments/sdk/domain/redirect_payment_product840_specific_input'
9
10
  require 'onlinepayments/sdk/domain/redirection_data'
@@ -14,6 +15,7 @@ module OnlinePayments::SDK
14
15
  # @attr [String] payment_option
15
16
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3306SpecificInput] payment_product3306_specific_input
16
17
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput] payment_product5406_specific_input
18
+ # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5408SpecificInput] payment_product5408_specific_input
17
19
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct809SpecificInput] payment_product809_specific_input
18
20
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct840SpecificInput] payment_product840_specific_input
19
21
  # @attr [Integer] payment_product_id
@@ -25,6 +27,7 @@ module OnlinePayments::SDK
25
27
  attr_accessor :payment_option
26
28
  attr_accessor :payment_product3306_specific_input
27
29
  attr_accessor :payment_product5406_specific_input
30
+ attr_accessor :payment_product5408_specific_input
28
31
  attr_accessor :payment_product809_specific_input
29
32
  attr_accessor :payment_product840_specific_input
30
33
  attr_accessor :payment_product_id
@@ -39,6 +42,7 @@ module OnlinePayments::SDK
39
42
  hash['paymentOption'] = @payment_option unless @payment_option.nil?
40
43
  hash['paymentProduct3306SpecificInput'] = @payment_product3306_specific_input.to_h if @payment_product3306_specific_input
41
44
  hash['paymentProduct5406SpecificInput'] = @payment_product5406_specific_input.to_h if @payment_product5406_specific_input
45
+ hash['paymentProduct5408SpecificInput'] = @payment_product5408_specific_input.to_h if @payment_product5408_specific_input
42
46
  hash['paymentProduct809SpecificInput'] = @payment_product809_specific_input.to_h if @payment_product809_specific_input
43
47
  hash['paymentProduct840SpecificInput'] = @payment_product840_specific_input.to_h if @payment_product840_specific_input
44
48
  hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
@@ -60,6 +64,10 @@ module OnlinePayments::SDK
60
64
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5406SpecificInput']] unless hash['paymentProduct5406SpecificInput'].is_a? Hash
61
65
  @payment_product5406_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput.new_from_hash(hash['paymentProduct5406SpecificInput'])
62
66
  end
67
+ if hash.key? 'paymentProduct5408SpecificInput'
68
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5408SpecificInput']] unless hash['paymentProduct5408SpecificInput'].is_a? Hash
69
+ @payment_product5408_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5408SpecificInput.new_from_hash(hash['paymentProduct5408SpecificInput'])
70
+ end
63
71
  if hash.key? 'paymentProduct809SpecificInput'
64
72
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct809SpecificInput']] unless hash['paymentProduct809SpecificInput'].is_a? Hash
65
73
  @payment_product809_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct809SpecificInput.new_from_hash(hash['paymentProduct809SpecificInput'])
@@ -12,6 +12,7 @@ require 'onlinepayments/sdk/domain/payment_product840_specific_output'
12
12
  module OnlinePayments::SDK
13
13
  module Domain
14
14
 
15
+ # @attr [String] authorisation_code
15
16
  # @attr [OnlinePayments::SDK::Domain::CustomerBankAccount] customer_bank_account
16
17
  # @attr [OnlinePayments::SDK::Domain::FraudResults] fraud_results
17
18
  # @attr [String] payment_option
@@ -22,6 +23,7 @@ module OnlinePayments::SDK
22
23
  # @attr [Integer] payment_product_id
23
24
  # @attr [String] token
24
25
  class RedirectPaymentMethodSpecificOutput < OnlinePayments::SDK::DataObject
26
+ attr_accessor :authorisation_code
25
27
  attr_accessor :customer_bank_account
26
28
  attr_accessor :fraud_results
27
29
  attr_accessor :payment_option
@@ -35,6 +37,7 @@ module OnlinePayments::SDK
35
37
  # @return (Hash)
36
38
  def to_h
37
39
  hash = super
40
+ hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
38
41
  hash['customerBankAccount'] = @customer_bank_account.to_h if @customer_bank_account
39
42
  hash['fraudResults'] = @fraud_results.to_h if @fraud_results
40
43
  hash['paymentOption'] = @payment_option unless @payment_option.nil?
@@ -49,6 +52,7 @@ module OnlinePayments::SDK
49
52
 
50
53
  def from_hash(hash)
51
54
  super
55
+ @authorisation_code = hash['authorisationCode'] if hash.key? 'authorisationCode'
52
56
  if hash.key? 'customerBankAccount'
53
57
  raise TypeError, "value '%s' is not a Hash" % [hash['customerBankAccount']] unless hash['customerBankAccount'].is_a? Hash
54
58
  @customer_bank_account = OnlinePayments::SDK::Domain::CustomerBankAccount.new_from_hash(hash['customerBankAccount'])
@@ -0,0 +1,34 @@
1
+ #
2
+ # This class was auto-generated.
3
+ #
4
+ require 'onlinepayments/sdk/data_object'
5
+ require 'onlinepayments/sdk/domain/customer_bank_account'
6
+
7
+ module OnlinePayments::SDK
8
+ module Domain
9
+
10
+ # @attr [OnlinePayments::SDK::Domain::CustomerBankAccount] customer_bank_account
11
+ # @attr [true/false] instant_payment_only
12
+ class RedirectPaymentProduct5408SpecificInput < OnlinePayments::SDK::DataObject
13
+ attr_accessor :customer_bank_account
14
+ attr_accessor :instant_payment_only
15
+
16
+ # @return (Hash)
17
+ def to_h
18
+ hash = super
19
+ hash['customerBankAccount'] = @customer_bank_account.to_h if @customer_bank_account
20
+ hash['instantPaymentOnly'] = @instant_payment_only unless @instant_payment_only.nil?
21
+ hash
22
+ end
23
+
24
+ def from_hash(hash)
25
+ super
26
+ if hash.key? 'customerBankAccount'
27
+ raise TypeError, "value '%s' is not a Hash" % [hash['customerBankAccount']] unless hash['customerBankAccount'].is_a? Hash
28
+ @customer_bank_account = OnlinePayments::SDK::Domain::CustomerBankAccount.new_from_hash(hash['customerBankAccount'])
29
+ end
30
+ @instant_payment_only = hash['instantPaymentOnly'] if hash.key? 'instantPaymentOnly'
31
+ end
32
+ end
33
+ end
34
+ end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'onlinepayments-sdk-ruby'
3
- spec.version = '4.14.0'
3
+ spec.version = '4.16.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.14.0
4
+ version: 4.16.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: 2023-08-24 00:00:00.000000000 Z
11
+ date: 2023-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -331,6 +331,7 @@ files:
331
331
  - lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb
332
332
  - lib/onlinepayments/sdk/domain/redirect_payment_product3306_specific_input.rb
333
333
  - lib/onlinepayments/sdk/domain/redirect_payment_product5406_specific_input.rb
334
+ - lib/onlinepayments/sdk/domain/redirect_payment_product5408_specific_input.rb
334
335
  - lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb
335
336
  - lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb
336
337
  - lib/onlinepayments/sdk/domain/redirection_data.rb