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: 34b83f0bb3325ca4bb7462aaddcfcc5c5aedb2bfdcbe05bf53575f98c1913c94
4
- data.tar.gz: 2878d672a704e22c03271a54ee942cfc91a35d9319fb12c9016b742a2cc7d10d
3
+ metadata.gz: 8def5c0f052a0c1a80f5ff3251d8a7f50ec136e8c20a58038f0ce7e0e0c903fb
4
+ data.tar.gz: cfe167c5f0eef1c14dd1d0645dd2168f73e7d56ad1e8f70bfc32d25859cefe71
5
5
  SHA512:
6
- metadata.gz: 788abc707aeb0c8703194955e5dfb01dabb4f903eabc84be61cdf9fe2e9810e36899ac354f6e3e2146443060bbdac8ca9e2626082e5a8656ae084ce92fd508c6
7
- data.tar.gz: 46e0dc78eabb1b233fa94164527b6234f3f6861ccd79244d9399cffb5a215973fa8779d57cde5ed809db77c10ef3c0e759e7a6a45fac2a0aa7e23c058f992d14
6
+ metadata.gz: 7124b3e6b0c083d9241e23a34c0d3736f4971faf9c7c38f09fbd86dcf5a4be1bf5629d2cdf19dcea1d910e50d0c3aaa11cc53a3f1a8a80ddde4b981e42c9ec0a
7
+ data.tar.gz: 1f814126892cc98f1259c8060a598442c19bb7aed658355241968380c1027a20fb9aa45147c1471abb7dc9495824d9745e263fb5d5b35afd9ca230478b20785a
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '2.3.0'
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}
@@ -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.3.0'
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.3.0
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-08 00:00:00.000000000 Z
11
+ date: 2019-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient