connect-sdk-ruby 2.41.0 → 2.42.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: 83d223cc9f1bfaa4816a663a2d956acb31bc824040555feb2c52b302141aa4b9
4
- data.tar.gz: 8cc332fa3ec1f5aeadef7b5a8974112816849346ed067cc84e39f4dc1ba067e8
3
+ metadata.gz: e20d6aa13d9992688be8e8486a3fc96b9a930f6672ccd3e18fc6e0f467103c9c
4
+ data.tar.gz: 6c9891000e0b3ca4a7f84c38ef28a0bbd03385a54a30cd013c4069068e8762c9
5
5
  SHA512:
6
- metadata.gz: 8577eb5cc025a722d4f098d9de0d6b754daf0da769ecb300001954c610bcd0433afecfcb9445b1d1c38ff54521fd62bb11d4b1aa30c04d857131a5b80eb95065
7
- data.tar.gz: 552e9c5ac59e4d209dffce4da7b21b1ba8a9c2ced074ac1eff0dc069bcbd2894ca45e01991dd99b0928d6080faa0a1a153fb91d4d92799feef8b98156423a2c4
6
+ metadata.gz: 0fb4b543d25bd8ea3c7c185d80b8005fdb8e1c4a1c7ce69340c28a3e7498cc6a9a233aff42085fe199601232e2410d1277f6fd08d2557e0654c467c9325940f8
7
+ data.tar.gz: 40ede975dd17efe318ffb3ffd058e13923c46f2587946261acdf93eda34ac75f68bd520e39eee2e79f128dc4e31b31edc1d3802ac09c91fafb56ff477238ad81
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '2.41.0'
3
+ spec.version = '2.42.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}
@@ -2,6 +2,7 @@
2
2
  # This class was auto-generated from the API references found at
3
3
  # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
+ require 'ingenico/connect/sdk/domain/definitions/card_essentials'
5
6
  require 'ingenico/connect/sdk/domain/payment/refund_method_specific_output'
6
7
 
7
8
  module Ingenico::Connect::SDK
@@ -9,14 +10,18 @@ module Ingenico::Connect::SDK
9
10
  module Payment
10
11
 
11
12
  # @attr [String] authorisation_code
13
+ # @attr [Ingenico::Connect::SDK::Domain::Definitions::CardEssentials] card
12
14
  class RefundCardMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::RefundMethodSpecificOutput
13
15
 
14
16
  attr_accessor :authorisation_code
15
17
 
18
+ attr_accessor :card
19
+
16
20
  # @return (Hash)
17
21
  def to_h
18
22
  hash = super
19
23
  hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
24
+ hash['card'] = @card.to_h unless @card.nil?
20
25
  hash
21
26
  end
22
27
 
@@ -25,6 +30,10 @@ module Ingenico::Connect::SDK
25
30
  if hash.has_key? 'authorisationCode'
26
31
  @authorisation_code = hash['authorisationCode']
27
32
  end
33
+ if hash.has_key? 'card'
34
+ raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
35
+ @card = Ingenico::Connect::SDK::Domain::Definitions::CardEssentials.new_from_hash(hash['card'])
36
+ end
28
37
  end
29
38
  end
30
39
  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.41.0'
10
+ @@SDK_VERSION = '2.42.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.41.0
4
+ version: 2.42.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: 2023-07-14 00:00:00.000000000 Z
11
+ date: 2023-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient