connect-sdk-ruby 2.21.0 → 2.22.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b5b8f7aa27fc0820c2821ad162c634a592a1aeb3582582120b2c1bcae1c3d0f
4
- data.tar.gz: d4df76e3c026c6ae17ae7285e9c990e7bd66d5fc6d8c7c0b019bd48623dc5a0a
3
+ metadata.gz: cd9456adb9b4baf2b7f80f4fc96d3735929a1b898d142ce011a959f51c1a4307
4
+ data.tar.gz: 9eac7d96809ada5e0400facf432ce81020ad32a889657e5549d155bfeab2330a
5
5
  SHA512:
6
- metadata.gz: 3f1cf43dc3464e888c01c5e412fb28fa3b15795dc396e5275b070d8e6f6ebe580be09bdccff9101a5d08b94c766102251cc8d105557811a46add9f608787781b
7
- data.tar.gz: 7954b53ff1e3e4ee765fb036e67e64f0df73378184607ee5378cf10f127b19d49639b6e249d83ff59694873845d4cb1d9a7cb1aaa14cfa35bb7d949ea1ce05f5
6
+ metadata.gz: d11f7518e42e278611cdfb0b8661847e0b6a7d17e09fe2190d9e1f2776091d6cfb17187989694804f2652a13f39fe355edd8ca48a068b53520640f3418b11642
7
+ data.tar.gz: e4983a30b14a9abaa600bfaef7796903a009b203040c14386fcd4a7ac7b19b4e3fa3e404c26c3ae0ddf232a719fd9fc0882447075311bf992e865bc704ed391f
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '2.21.0'
3
+ spec.version = '2.22.0'
4
4
  spec.authors = ['Ingenico ePayments']
5
5
  spec.email = ['github@epay.ingenico.com']
6
6
  spec.summary = %q{SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API}
@@ -10,17 +10,23 @@ module Ingenico::Connect::SDK
10
10
 
11
11
  # @attr [String] sdk_interface
12
12
  # @attr [String] sdk_ui_type
13
+ # @attr [Array<String>] sdk_ui_types
13
14
  class DeviceRenderOptions < Ingenico::Connect::SDK::DataObject
14
15
 
15
16
  attr_accessor :sdk_interface
16
17
 
18
+ #
19
+ # @deprecated Use deviceRenderOptions.sdkUiTypes instead
17
20
  attr_accessor :sdk_ui_type
18
21
 
22
+ attr_accessor :sdk_ui_types
23
+
19
24
  # @return (Hash)
20
25
  def to_h
21
26
  hash = super
22
27
  hash['sdkInterface'] = @sdk_interface unless @sdk_interface.nil?
23
28
  hash['sdkUiType'] = @sdk_ui_type unless @sdk_ui_type.nil?
29
+ hash['sdkUiTypes'] = @sdk_ui_types unless @sdk_ui_types.nil?
24
30
  hash
25
31
  end
26
32
 
@@ -32,6 +38,13 @@ module Ingenico::Connect::SDK
32
38
  if hash.has_key? 'sdkUiType'
33
39
  @sdk_ui_type = hash['sdkUiType']
34
40
  end
41
+ if hash.has_key? 'sdkUiTypes'
42
+ raise TypeError, "value '%s' is not an Array" % [hash['sdkUiTypes']] unless hash['sdkUiTypes'].is_a? Array
43
+ @sdk_ui_types = []
44
+ hash['sdkUiTypes'].each do |e|
45
+ @sdk_ui_types << e
46
+ end
47
+ end
35
48
  end
36
49
  end
37
50
  end
@@ -9,17 +9,25 @@ module Ingenico::Connect::SDK
9
9
  module Payment
10
10
 
11
11
  # @attr [String] integration_type
12
+ # @attr [String] merchant_name
13
+ # @attr [String] transaction_note
12
14
  # @attr [String] vpa
13
15
  class RedirectPaymentProduct4101SpecificInput < Ingenico::Connect::SDK::DataObject
14
16
 
15
17
  attr_accessor :integration_type
16
18
 
19
+ attr_accessor :merchant_name
20
+
21
+ attr_accessor :transaction_note
22
+
17
23
  attr_accessor :vpa
18
24
 
19
25
  # @return (Hash)
20
26
  def to_h
21
27
  hash = super
22
28
  hash['integrationType'] = @integration_type unless @integration_type.nil?
29
+ hash['merchantName'] = @merchant_name unless @merchant_name.nil?
30
+ hash['transactionNote'] = @transaction_note unless @transaction_note.nil?
23
31
  hash['vpa'] = @vpa unless @vpa.nil?
24
32
  hash
25
33
  end
@@ -29,6 +37,12 @@ module Ingenico::Connect::SDK
29
37
  if hash.has_key? 'integrationType'
30
38
  @integration_type = hash['integrationType']
31
39
  end
40
+ if hash.has_key? 'merchantName'
41
+ @merchant_name = hash['merchantName']
42
+ end
43
+ if hash.has_key? 'transactionNote'
44
+ @transaction_note = hash['transactionNote']
45
+ end
32
46
  if hash.has_key? 'vpa'
33
47
  @vpa = hash['vpa']
34
48
  end
@@ -7,7 +7,7 @@ module Ingenico::Connect::SDK
7
7
  #
8
8
  # @attr_reader [Array<Ingenico::Connect::SDK::RequestHeader>] meta_data_headers List of headers that should be used in all requests.
9
9
  class MetaDataProvider
10
- @@SDK_VERSION = '2.21.0'
10
+ @@SDK_VERSION = '2.22.0'
11
11
  @@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
12
12
  @@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
13
13
  'Date', 'Content-Type', 'Authorization'].sort!.freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connect-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.21.0
4
+ version: 2.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ingenico ePayments
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-09 00:00:00.000000000 Z
11
+ date: 2021-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient