onlinepayments-sdk-ruby 8.5.0 → 8.6.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: b9615a0a08130de6acdf0931dc3aaa0b275add41b0498db178c0db5464ee3742
4
- data.tar.gz: d172cd906ca8936a073cd5c72ba8146e62915f55e621abc28a8c864d76ee02a1
3
+ metadata.gz: 7dbc41a189bd24dbd41be3a4dd120f8cb8c976ecd02be85bdd472cf16fb6022a
4
+ data.tar.gz: 16c7662bb19abd1ec6d45ac7ce5241d85d35fbfe243de62abe0550f90672757a
5
5
  SHA512:
6
- metadata.gz: dfc3fddbd4e31be6a676a25c04457c147053aed5923b90742b7f029c6520aae2b355f97ad447f9d44a05003fa8ee5889fa0bec6b2e28ecaa81e71e82d398cbc8
7
- data.tar.gz: cfb1d50eaee277265581fd4e353116b36c3a70b2bd78dce7bd3c5d7e02d537d937fd989f43d5b9cd09146c73272f23a721876675767c5762de4d2744368065c5
6
+ metadata.gz: 2cbd5e1408e53b749522fd6dfab0c6849260a3a444c5fffc1e052156a7e4abc7ebb87a1eea52b18a8a30015fb05ec48424045cefef91bbbdf70ab2e92aba3425
7
+ data.tar.gz: 183c7d927aab289e181687e30c4ceafa0ad11d8318d0caec34c4544acbeb1de68faec1e88955f1fa2c04fef2f9afd8018a32d414dcd0cc9c77dce872ecbf6174
@@ -13,7 +13,7 @@ module OnlinePayments
13
13
  class MetadataProvider
14
14
  private
15
15
 
16
- SDK_VERSION = '8.5.0'.freeze
16
+ SDK_VERSION = '8.6.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
@@ -1,6 +1,7 @@
1
1
  #
2
2
  # This file was automatically generated.
3
3
  #
4
+ require 'onlinepayments/sdk/domain/auto_capture'
4
5
  require 'onlinepayments/sdk/domain/data_object'
5
6
  require 'onlinepayments/sdk/domain/decrypted_payment_data'
6
7
  require 'onlinepayments/sdk/domain/mobile_payment_product302_specific_input'
@@ -10,6 +11,7 @@ module OnlinePayments
10
11
  module SDK
11
12
  module Domain
12
13
  # @attr [String] authorization_mode
14
+ # @attr [OnlinePayments::SDK::Domain::AutoCapture] auto_capture
13
15
  # @attr [OnlinePayments::SDK::Domain::DecryptedPaymentData] decrypted_payment_data
14
16
  # @attr [String] encrypted_payment_data
15
17
  # @attr [String] ephemeral_key
@@ -22,6 +24,8 @@ module OnlinePayments
22
24
 
23
25
  attr_accessor :authorization_mode
24
26
 
27
+ attr_accessor :auto_capture
28
+
25
29
  attr_accessor :decrypted_payment_data
26
30
 
27
31
  attr_accessor :encrypted_payment_data
@@ -42,6 +46,7 @@ module OnlinePayments
42
46
  def to_h
43
47
  hash = super
44
48
  hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
49
+ hash['autoCapture'] = @auto_capture.to_h unless @auto_capture.nil?
45
50
  hash['decryptedPaymentData'] = @decrypted_payment_data.to_h unless @decrypted_payment_data.nil?
46
51
  hash['encryptedPaymentData'] = @encrypted_payment_data unless @encrypted_payment_data.nil?
47
52
  hash['ephemeralKey'] = @ephemeral_key unless @ephemeral_key.nil?
@@ -58,6 +63,10 @@ module OnlinePayments
58
63
  if hash.has_key? 'authorizationMode'
59
64
  @authorization_mode = hash['authorizationMode']
60
65
  end
66
+ if hash.has_key? 'autoCapture'
67
+ raise TypeError, "value '%s' is not a Hash" % [hash['autoCapture']] unless hash['autoCapture'].is_a? Hash
68
+ @auto_capture = OnlinePayments::SDK::Domain::AutoCapture.new_from_hash(hash['autoCapture'])
69
+ end
61
70
  if hash.has_key? 'decryptedPaymentData'
62
71
  raise TypeError, "value '%s' is not a Hash" % [hash['decryptedPaymentData']] unless hash['decryptedPaymentData'].is_a? Hash
63
72
  @decrypted_payment_data = OnlinePayments::SDK::Domain::DecryptedPaymentData.new_from_hash(hash['decryptedPaymentData'])
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'onlinepayments-sdk-ruby'
3
- spec.version = '8.5.0'
3
+ spec.version = '8.6.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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlinepayments-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.5.0
4
+ version: 8.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Worldline Direct support team