connect-sdk-ruby 2.41.0 → 2.42.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e20d6aa13d9992688be8e8486a3fc96b9a930f6672ccd3e18fc6e0f467103c9c
|
4
|
+
data.tar.gz: 6c9891000e0b3ca4a7f84c38ef28a0bbd03385a54a30cd013c4069068e8762c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fb4b543d25bd8ea3c7c185d80b8005fdb8e1c4a1c7ce69340c28a3e7498cc6a9a233aff42085fe199601232e2410d1277f6fd08d2557e0654c467c9325940f8
|
7
|
+
data.tar.gz: 40ede975dd17efe318ffb3ffd058e13923c46f2587946261acdf93eda34ac75f68bd520e39eee2e79f128dc4e31b31edc1d3802ac09c91fafb56ff477238ad81
|
data/connect-sdk-ruby.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'connect-sdk-ruby'
|
3
|
-
spec.version = '2.
|
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.
|
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.
|
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-
|
11
|
+
date: 2023-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|