connect-sdk-ruby 2.3.0 → 2.4.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: 8def5c0f052a0c1a80f5ff3251d8a7f50ec136e8c20a58038f0ce7e0e0c903fb
|
4
|
+
data.tar.gz: cfe167c5f0eef1c14dd1d0645dd2168f73e7d56ad1e8f70bfc32d25859cefe71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7124b3e6b0c083d9241e23a34c0d3736f4971faf9c7c38f09fbd86dcf5a4be1bf5629d2cdf19dcea1d910e50d0c3aaa11cc53a3f1a8a80ddde4b981e42c9ec0a
|
7
|
+
data.tar.gz: 1f814126892cc98f1259c8060a598442c19bb7aed658355241968380c1027a20fb9aa45147c1471abb7dc9495824d9745e263fb5d5b35afd9ca230478b20785a
|
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.4.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}
|
data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_output.rb
CHANGED
@@ -12,17 +12,21 @@ module Ingenico::Connect::SDK
|
|
12
12
|
|
13
13
|
# @attr [Ingenico::Connect::SDK::Domain::Definitions::FraudResults] fraud_results
|
14
14
|
# @attr [Ingenico::Connect::SDK::Domain::Payment::PaymentProduct771SpecificOutput] payment_product771_specific_output
|
15
|
+
# @attr [String] token
|
15
16
|
class SepaDirectDebitPaymentMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::AbstractPaymentMethodSpecificOutput
|
16
17
|
|
17
18
|
attr_accessor :fraud_results
|
18
19
|
|
19
20
|
attr_accessor :payment_product771_specific_output
|
20
21
|
|
22
|
+
attr_accessor :token
|
23
|
+
|
21
24
|
# @return (Hash)
|
22
25
|
def to_h
|
23
26
|
hash = super
|
24
27
|
hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
|
25
28
|
hash['paymentProduct771SpecificOutput'] = @payment_product771_specific_output.to_h unless @payment_product771_specific_output.nil?
|
29
|
+
hash['token'] = @token unless @token.nil?
|
26
30
|
hash
|
27
31
|
end
|
28
32
|
|
@@ -36,6 +40,9 @@ module Ingenico::Connect::SDK
|
|
36
40
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct771SpecificOutput']] unless hash['paymentProduct771SpecificOutput'].is_a? Hash
|
37
41
|
@payment_product771_specific_output = Ingenico::Connect::SDK::Domain::Payment::PaymentProduct771SpecificOutput.new_from_hash(hash['paymentProduct771SpecificOutput'])
|
38
42
|
end
|
43
|
+
if hash.has_key? 'token'
|
44
|
+
@token = hash['token']
|
45
|
+
end
|
39
46
|
end
|
40
47
|
end
|
41
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.
|
10
|
+
@@SDK_VERSION = '2.4.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.4.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: 2019-08-
|
11
|
+
date: 2019-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|