connect-sdk-ruby 2.23.0 → 2.24.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: 3073d8bb3d244aa1fbafd6c8a322dad3131e37080afcf895b14d475966925c7a
4
- data.tar.gz: 75c7fa6b5f292dc76b7831be4fa2631897859e8bb3e34500bcb91c19060fd049
3
+ metadata.gz: 043d7b426f2d6ab34d0f1949f364643320c32fc7763f152521cff4a250607f80
4
+ data.tar.gz: f2a43f28b020e313336fe55417d20927e583009541f654d4e1936983b2aad571
5
5
  SHA512:
6
- metadata.gz: 557e215bb0ab3aa8a9f98a90067175384b6a70e9b364b8e603cd1f01815312a04b2f2416589e7d0b5566b1f38b3bb4d52938dcdac3a99ce909c77258805764b2
7
- data.tar.gz: 99a06d9577a7da4d0cd2ec6d59871f31b0d744d2616157eda738f56a3ed4e3eac376697b4c74fa4c97f4f2c77d9344c1cd4a74c96f7a6a9154f4be0970fbd208
6
+ metadata.gz: 17d3926d57355cf9824fea6a8e7f4477509d7ee002ec3ecfcd041a243eb7b4352a91d4accebdce7bd5c23cbe0acddeda591a7bffbef3ecb7e060215f695f1b59
7
+ data.tar.gz: d3dfb9d09d2b05df6239d9077ab75aeaa80908064c5e2aa05dbbd02ebbba25c179b9c28a6082fe595f76a4ab6198e6478dad30cc46b87723beee0cb79e95aef4
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '2.23.0'
3
+ spec.version = '2.24.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}
@@ -8,43 +8,36 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
+ # @attr [String] display_name
11
12
  # @attr [String] integration_type
12
- # @attr [String] merchant_name
13
- # @attr [String] transaction_note
14
- # @attr [String] vpa
13
+ # @attr [String] virtual_payment_address
15
14
  class RedirectPaymentProduct4101SpecificInput < Ingenico::Connect::SDK::DataObject
16
15
 
17
- attr_accessor :integration_type
18
-
19
- attr_accessor :merchant_name
16
+ attr_accessor :display_name
20
17
 
21
- attr_accessor :transaction_note
18
+ attr_accessor :integration_type
22
19
 
23
- attr_accessor :vpa
20
+ attr_accessor :virtual_payment_address
24
21
 
25
22
  # @return (Hash)
26
23
  def to_h
27
24
  hash = super
25
+ hash['displayName'] = @display_name unless @display_name.nil?
28
26
  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?
31
- hash['vpa'] = @vpa unless @vpa.nil?
27
+ hash['virtualPaymentAddress'] = @virtual_payment_address unless @virtual_payment_address.nil?
32
28
  hash
33
29
  end
34
30
 
35
31
  def from_hash(hash)
36
32
  super
33
+ if hash.has_key? 'displayName'
34
+ @display_name = hash['displayName']
35
+ end
37
36
  if hash.has_key? 'integrationType'
38
37
  @integration_type = hash['integrationType']
39
38
  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
46
- if hash.has_key? 'vpa'
47
- @vpa = hash['vpa']
39
+ if hash.has_key? 'virtualPaymentAddress'
40
+ @virtual_payment_address = hash['virtualPaymentAddress']
48
41
  end
49
42
  end
50
43
  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.23.0'
10
+ @@SDK_VERSION = '2.24.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.23.0
4
+ version: 2.24.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-07-20 00:00:00.000000000 Z
11
+ date: 2021-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient