onlinepayments-sdk-ruby 8.1.0 → 8.2.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: 28cf4df20be3d38dc13d78392aae4c8f36b89b2c677f457ca51c83c741c11f49
4
- data.tar.gz: ce7b031f3a454cdb8ce16bc098e2fd3f9d6fb21e545028c62bea3e18c7b427fc
3
+ metadata.gz: 2c1812c5895b2a6d8893f0e57882b6de4106db352bcc4298c0da32da05530b68
4
+ data.tar.gz: 794085eb6a33b45b3663ee688f0249493107268fd448b42d59a551eaa42e33bb
5
5
  SHA512:
6
- metadata.gz: d4e2d7327af859a6982e27f779c6a8f3ee3e8e9714c3d62972ad81202f246df6075a5de8c64ed9e9d155ec61406ec87f810e07f641bfe71dcef3dd8b67b52576
7
- data.tar.gz: 517508d4a828fa2ee89713879f26a4201353f2fcca7a1d70dfeac92f9ba9af2f73465777388cf4bb8f89167bd70130cec87ce4ac37ee06c36dd9406ca2a3da60
6
+ metadata.gz: cb7f8523c051ff997ee7fdf1879c34d2bbe8ef81c52e781a840a46cdb34412a2377d0892bafe127739d2c3e47d23250e197637168201c8215dec606aed58e0a6
7
+ data.tar.gz: 0ef5ea22f7aeddf9cef5e10b51f2ee2dc4d452bd67eb767692b68898bd7f3e8e469509934421ad068c49f87e7822a2ec41a44680a8becb97fc9735394f4b1f45
@@ -13,7 +13,7 @@ module OnlinePayments
13
13
  class MetadataProvider
14
14
  private
15
15
 
16
- SDK_VERSION = '8.1.0'.freeze
16
+ SDK_VERSION = '8.2.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/market_place'
6
7
 
@@ -8,6 +9,7 @@ module OnlinePayments
8
9
  module SDK
9
10
  module Domain
10
11
  # @attr [String] authorization_mode
12
+ # @attr [OnlinePayments::SDK::Domain::AutoCapture] auto_capture
11
13
  # @attr [OnlinePayments::SDK::Domain::MarketPlace] market_place
12
14
  # @attr [Integer] payment_number
13
15
  # @attr [String] scheme_reference_data
@@ -18,6 +20,8 @@ module OnlinePayments
18
20
 
19
21
  attr_accessor :authorization_mode
20
22
 
23
+ attr_accessor :auto_capture
24
+
21
25
  attr_accessor :market_place
22
26
 
23
27
  attr_accessor :payment_number
@@ -36,6 +40,7 @@ module OnlinePayments
36
40
  def to_h
37
41
  hash = super
38
42
  hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
43
+ hash['autoCapture'] = @auto_capture.to_h unless @auto_capture.nil?
39
44
  hash['marketPlace'] = @market_place.to_h unless @market_place.nil?
40
45
  hash['paymentNumber'] = @payment_number unless @payment_number.nil?
41
46
  hash['schemeReferenceData'] = @scheme_reference_data unless @scheme_reference_data.nil?
@@ -50,6 +55,10 @@ module OnlinePayments
50
55
  if hash.has_key? 'authorizationMode'
51
56
  @authorization_mode = hash['authorizationMode']
52
57
  end
58
+ if hash.has_key? 'autoCapture'
59
+ raise TypeError, "value '%s' is not a Hash" % [hash['autoCapture']] unless hash['autoCapture'].is_a? Hash
60
+ @auto_capture = OnlinePayments::SDK::Domain::AutoCapture.new_from_hash(hash['autoCapture'])
61
+ end
53
62
  if hash.has_key? 'marketPlace'
54
63
  raise TypeError, "value '%s' is not a Hash" % [hash['marketPlace']] unless hash['marketPlace'].is_a? Hash
55
64
  @market_place = OnlinePayments::SDK::Domain::MarketPlace.new_from_hash(hash['marketPlace'])
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'onlinepayments-sdk-ruby'
3
- spec.version = '8.1.0'
3
+ spec.version = '8.2.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.1.0
4
+ version: 8.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Worldline Direct support team